
    Write a function to determine if a sequence of social media engagement metrics follows a strictly increasing or decreasing pattern over time, which helps identify viral or declining content trends. The function should analyze the time-ordered engagement values and return true if the metrics are consistently rising or falling, and false otherwise.
    

    
def is_Monotonic(A):
    """
    Write a function to determine if a sequence of social media engagement metrics follows a strictly increasing or decreasing pattern over time, which helps identify viral or declining content trends. The function should analyze the time-ordered engagement values and return true if the metrics are consistently rising or falling, and false otherwise.
    

    """
def is_Monotonic(A):
    """
    Write a function to determine if a sequence of social media engagement metrics follows a strictly increasing or decreasing pattern over time, which helps identify viral or declining content trends. The function should analyze the time-ordered engagement values and return true if the metrics are consistently rising or falling, and false otherwise.
    

    """
    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)))