| Server IP : 35.236.43.222 / Your IP : 216.73.216.143 Web Server : Apache System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64 User : deploy ( 1002) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/google-cloud-sdk/lib/surface/logging/metrics/__pycache__/ |
Upload File : |
�
�� � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl m
Z
ddlmZ G d � d
ej
� � Zddd
�e_ dS )z!'logging metrics delete' command.� )�absolute_import)�division)�unicode_literals)�util)�base)�log)�
console_ioc �. � e Zd ZdZed� � � Zd� ZdS )�DeletezDelete a logs-based metric.c �4 � | � dd�� � dS )z Register flags for this command.�metric_namez!The name of the metric to delete.)�helpN)�add_argument)�parsers �%lib/surface/logging/metrics/delete.py�ArgszDelete.Args s6 � � ����?� � A� A� A� A� A� c �h � t j d|j z d�� � t j � � j � t j � � � t j t j
� � d|j � � �� � � � t j |j � � dS )z�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.
zReally delete metric [%s]?T)�cancel_on_no�metrics)�
metricNameN)
r �PromptContinuer
r � GetClient�projects_metricsr �GetMessages�#LoggingProjectsMetricsDeleteRequest�CreateResourceName�GetCurrentProjectParentr �DeletedResource)�self�argss r �Runz
Delete.Run% s� � � ��$�t�'7�7�d�L� L� L� L� �N���%�,�,�����>�>��.��,�.�.� �4�;K�M� M� ?� N� N�O� O� O� ���(�)�)�)�)�)r N)�__name__�
__module__�__qualname__�__doc__�staticmethodr r"