parameters: (args: GetPlayMetricsArgs)
docstring: Returns metrics for play counts
  
      Args:
          args: GetPlayMetrics the parsed args from the request
  
      Returns:
          Array of dictionaries with the play counts and timestamp
docstring_summary: Returns metrics for play counts
docstring_tokens: Returns metrics for play counts
function: 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)
function_tokens: 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 )