
    Write a function to determine if a sequence of vehicle performance metrics consistently indicates deterioration or improvement over time, helping maintenance teams identify clear maintenance trends. The function should analyze whether the collected maintenance metrics form a strictly increasing or strictly decreasing pattern, which is essential for accurate maintenance scheduling and resource allocation.
    

    
def is_Monotonic(A):
    """
    Write a function to determine if a sequence of vehicle performance metrics consistently indicates deterioration or improvement over time, helping maintenance teams identify clear maintenance trends. The function should analyze whether the collected maintenance metrics form a strictly increasing or strictly decreasing pattern, which is essential for accurate maintenance scheduling and resource allocation.
    

    """
def is_Monotonic(A):
    """
    Write a function to determine if a sequence of vehicle performance metrics consistently indicates deterioration or improvement over time, helping maintenance teams identify clear maintenance trends. The function should analyze whether the collected maintenance metrics form a strictly increasing or strictly decreasing pattern, which is essential for accurate maintenance scheduling and resource allocation.
    

    """
    return all((A[i] <= A[i + 1] for i in range(len(A) - 1))) or all((A[i] >= A[i + 1] for i in range(len(A) - 1)))