(args: GetPlayMetricsArgs)
Returns metrics for play counts

    Args:
        args: GetPlayMetrics the parsed args from the request

    Returns:
        Array of dictionaries with the play counts and timestamp
Returns metrics for play counts
Returns metrics for play counts
def get_plays_metrics(args: GetPlayMetricsArgs):
    """
    Returns metrics for play counts

    Args:
        args: GetPlayMetrics the parsed args from the request

    Returns:
        Array of dictionaries with the play counts and timestamp
    """
    db = db_session.get_db_read_replica()
    with db.scoped_session() as session:
        return _get_plays_metrics(session, args)
def get_plays_metrics ( args : GetPlayMetricsArgs ) : db = db_session . get_db_read_replica ( ) with db . scoped_session ( ) as session : return _get_plays_metrics ( session , args )