
                             d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ  G d dej                        Z
d	d
de
_        y)z#'logging metrics describe' command.    )absolute_import)division)unicode_literals)util)basec                   &    e Zd ZdZed        Zd Zy)Describez.Display the definition of a logs-based metric.c                 *    | j                  dd       y)z Register flags for this command.metric_namezThe name of the metric.)helpN)add_argument)parsers    'lib/surface/logging/metrics/describe.pyArgszDescribe.Args   s     5  7    c           	         t        j                         j                  j                  t        j                         j                  t        j                  t        j                         d|j                                    S )a
  This 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   RunzDescribe.Run#   sh     >>,,00;;..,,.	4;K;KM 	< 	NO Or   N)__name__
__module____qualname____doc__staticmethodr   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>r,      sA     * &  ' / (Ot## O4		 r   