
                             S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr   " S S\R                  5      r
S	S
S.\
l        g)z#'logging metrics describe' command.    )absolute_import)division)unicode_literals)util)basec                   .    \ rS rSrSr\S 5       rS rSrg)Describe   z.Display the definition of a logs-based metric.c                 $    U R                  SSS9  g)z Register flags for this command.metric_namezThe name of the metric.)helpN)add_argument)parsers    'lib/surface/logging/metrics/describe.pyArgsDescribe.Args   s     5  7    c           	         [         R                  " 5       R                  R                  [         R                  " 5       R                  [         R                  " [         R                  " 5       SUR                  5      S95      $ )zThis is what gets called when the user runs this command.

Args:
  args: an argparse namespace. All the arguments that were provided to this
    command invocation.

Returns:
  The specified metric with its description and configured filter.
metrics)
metricName)	r   	GetClientprojects_metricsGetGetMessages LoggingProjectsMetricsGetRequestCreateResourceNameGetCurrentProjectParentr   )selfargss     r   RunDescribe.Run#   sh     >>,,00;;..,,.	4;K;KM 	< 	NO Or    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r    __static_attributes__r"   r   r   r	   r	      s    67 7
Or   r	   z8        Show the definition of a logs-based metric.
    z{        To show the definition of a metric called high_severity_count, run:

          $ {command} high_severity_count
    )DESCRIPTIONEXAMPLESN)r'   
__future__r   r   r   googlecloudsdk.api_lib.loggingr   googlecloudsdk.callioper   DescribeCommandr	   detailed_helpr"   r   r   <module>r1      sA     * &  ' / (Ot## O4		 r   