
    9iOV                     D   S r  " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S	 S
\5      r " S S\5      r " S S\5      r	 " S S\5      r
 " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S \5      r " S! S"\5      r " S# S$\5      r " S% S&\5      r " S' S(\5      r " S) S*\5      r " S+ S,\5      r " S- S.\5      r " S/ S0\5      r " S1 S2\5      r " S3 S4\5      rg5)6z-
This module provides a model class for BCM.
c                   0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )CustomDimensionModel   z%
This class define custom dimension.
c                 B   > [         [        U ]  5         XS'   X S'   X0S'   g)z
:param name:
    custom dimension name.
:type name: string

:param alias:
    custom dimension alias.
:type alias: string

:param order:
    custom dimension order.
:type order: int
nameorderaliasN)superr   __init__)selfr   r   r   	__class__s       _/var/www/html/land-doc-ocr/venv/lib/python3.13/site-packages/baidubce/services/bcm/bcm_model.pyr
   CustomDimensionModel.__init__   s(     	"D24VWW      __name__
__module____qualname____firstlineno____doc__r
   __static_attributes____classcell__r   s   @r   r   r      s     r   r   c                   T    \ rS rSrSrSrSrSrSr\\\\4r	\
S 5       r\
S 5       rS	rg
)
EventLevel+   z 
This class define event level.
NOTICEWARNINGMAJORCRITICALc                 $    XR                   ;   a  gg)zy
whether event_level is valid

:param event_level:
    event level
:type event_level: string

:return:
:rtype true/false
TF_EventLevel__all_members)clsevent_levels     r   containsEventLevel.contains5   s     +++r   c                     U R                   $ )z-
get all event levels

:return:
:rtype tuple
r$   )r&   s    r   all_event_levelsEventLevel.all_event_levelsE   s        r   r   N)r   r   r   r   r   r   r    r!   r"   r%   classmethodr(   r+   r   r   r   r   r   r   +   sQ     FGEHWeX6M  ! !r   r   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )DisableTimeP   z 
This class define disable time
c                 :   > [         [        U ]  5         XS'   X S'   g)z

:param from_time: disable start time, such as 08:00:00
:type from_time: string
:param to_time: disable end time, such as 08:00:00
:type to_time: string
fromtoN)r	   r/   r
   )r   	from_timeto_timer   s      r   r
   DisableTime.__init__U   s      	k4)+ VT
r   r   r   r   s   @r   r/   r/   P   s    
 
r   r/   c                   0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )Notificationb   z 
This class define notification
c                 :   > [         [        U ]  5         XS'   X S'   g)zm

:param type: enum, EMAIL, SMS, PHONE
:type type: string
:param receiver: receiver id
:type receiver string
typereceiverN)r	   r8   r
   )r   r;   r<   r   s      r   r
   Notification.__init__g   s!     	lD*,V#Zr   r   r   r   r   s   @r   r8   r8   b   s    
$ 
$r   r8   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )Membert   z
This class define member
c                 B   > [         [        U ]  5         XS'   X S'   X0S'   g)z

:param type: enum, notifyParty or notifyGroup
:type type: string
:param id: receiver id
:type id string
:param name: receiver's name
:type name: string
r;   idr   N)r	   r?   r
   )r   r;   rB   r   r   s       r   r
   Member.__init__y   s'     	fd$&VT
Vr   r   r   r   s   @r   r?   r?   t   s     r   r?   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )ApplicationAlarmRule   z3
This class define application alarm policy config
c
                 |   > [         [        U ]  5         XS'   X S'   X0S'   X@S'   XPS'   SU S'   X`S'   XpS	'   XS
'   XS'   g)a  

:param metric: metric identifier
:type metric: string
:param metric_alias: metric name
:type metric_alias: string
:param cycle: period, second
:type cycle: int
:param statistics: statistics, enum: average, minimum, maximum, sum
:type statistics: string
:param threshold:
:type threshold: float
:param comparison_operator: operator, enum: ">", "<", ">=", "<="
:type: string
:param count:
:type count: int
:param sequence: rule's sequence, begin with 0
:type sequence: int
:param metric_dimensions: dimensions
:type metric_dimensions: list
metricmetricAliascycle
statistics	threshold	THRESHOLDfunctioncomparisonOperatorcountsequencemetricDimensionsN)r	   rE   r
   )r   rH   metric_aliasrJ   rK   rL   comparison_operatorrP   rQ   metric_dimensionsr   s             r   r
   ApplicationAlarmRule.__init__   sd    . 	"D24X*]W'\%[&Z%8!"W#Z#4 r   r   r   r   s   @r   rE   rE      s    !5 !5r   rE   c                   0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )ApplicationObjectView   zF
This class define the monitorObjectView in application monitor alarm
c                 B   > [         [        U ]  5         XS'   X S'   X0S'   g)z

:param monitor_object_name: taskName
:type monitor_object_name: string
:param monitor_object_name_view: displayed name
:type monitor_object_name_view: string
:param metric_dimension_view:
:type string
monitorObjectNamemonitorObjectNameViewmetricDimensionViewN)r	   rX   r
   )r   monitor_object_namemonitor_object_name_viewmetric_dimension_viewr   s       r   r
   ApplicationObjectView.__init__   s.     	#T35$7 !(@$%&;"#r   r   )r   r   r   r   s   @r   rX   rX      s    < <r   rX   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )ApplicationMonitorObject   z.
This class define application monitor object
c                 :   > [         [        U ]  5         XS'   X S'   g)z

:param monitor_object_type: enum: APP, SERVICE
:type monitor_object_type: string
:param monitor_object_view: monitor object
:type monitor_object_view: list
monitorObjectTypemonitorObjectViewN)r	   rc   r
   )r   monitor_object_typemonitor_object_viewr   s      r   r
   !ApplicationMonitorObject.__init__   s%     	&68$7 !$7 !r   r   r   r   s   @r   rc   rc      s    
8 
8r   rc   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )	Dimension   z
This class define dimension.
c                 :   > [         [        U ]  5         XS'   X S'   g)ze
:param name: dimension name.
:type name: string

:param value: dimension value.
:type value: string
r   valueN)r	   rl   r
   )r   r   ro   r   s      r   r
   Dimension.__init__   s      	i')VWr   r   r   r   s   @r   rl   rl          
 
r   rl   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )KV   z
This class define kv.
c                 :   > [         [        U ]  5         XS'   X S'   g)zX
:param key: key.
:type key: string

:param value: dimension value.
:type value: string
keyro   N)r	   rs   r
   )r   rv   ro   r   s      r   r
   KV.__init__   s      	b$ "UWr   r   r   r   s   @r   rs   rs      rq   r   rs   c                   0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )PolicyResource   z$
This class define policy resource.
c                 D   > [         [        U ]  5         Uc  / nXS'   X S'   g)z
:param identifiers: identifiers.
:type identifiers: Dimension array

:param metric_dimensions: metric dimensions.
:type metric_dimensions: Dimension array
NidentifiersrR   )r	   ry   r
   )r   r|   rU   r   s      r   r
   PolicyResource.__init__   s/     	nd,.$ ")]#4 r   r   Nr   r   s   @r   ry   ry      s    5 5r   ry   c                   0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )MonitorObjecti  z#
This class define monitor object.
c                 T   > [         [        U ]  5         Uc  / nXS'   X S'   X0S'   X@S'   g)a  
:param object_type: monitor object type.
:type object_type: string

:param names: monitor object names.
:type names: string array

:param resources: monitor object resources.
:type resources: PolicyResource array

:param type_name: monitor object typename.
:type type_name: string
Nr;   names	resourcestypeName)r	   r   r
   )r   object_typer   r   	type_namer   s        r   r
   MonitorObject.__init__  s;     	mT+-I"VW%[$Zr   r   )NInstancer   r   s   @r   r   r     s    % %r   r   c                   2   ^  \ rS rSrSr SU 4S jjrSrU =r$ )	AlarmRulei)  a  

private Long index;
private String metric;
private Long periodInSecond;
private String statistics;
private String threshold;
private String comparisonOperator;
private Integer evaluationPeriodCount;
private List<Dimension> metricDimensions;

This class define alarm rule.
c	                 t   > [         [        U ]  5         Uc  / nXS'   X S'   X0S'   X@S'   XPS'   X`S'   XpS'   XS	'   g)
a  
:param index: alarm rule index.
:type index: int

:param metric: metric name.
:type metric: string

:param period: period in second.
:type period: int

:param statistics: statistics.
:type statistics: string

:param threshold: threshold.
:type threshold: string

:param operator: comparison operator.
:type operator: string

:param evaluation_count: evaluation period count.
:type evaluation_count: int

:param metric_dimensions: metric dimensions.
:type metric_dimensions: Dimension array
NindexrH   periodInSecondrK   rL   rO   evaluationPeriodCountrR   )r	   r   r
   )
r   r   rH   periodrK   rL   operatorevaluation_countrU   r   s
            r   r
   AlarmRule.__init__7  s`    6 	i')$ "WX!''\%[%-!"(8$%#4 r   r   r~   r   r   s   @r   r   r   )  s     $(%5 %5r   r   c                   0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )AlarmActioni_  z!
This class define alarm action.
c                 :   > [         [        U ]  5         XS'   X S'   g)zV
:param name: action name.
:type name: string

:param id: action id.
:type id: string
r   rB   N)r	   r   r
   )r   r   	action_idr   s      r   r
   AlarmAction.__init__c  s      	k4)+VT
r   r   r   r   r   s   @r   r   r   _  s    
 
r   r   c                   0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )AlarmConfigRuleip  z&
This class define alarm config rule.
c                 d   > [         [        U ]  5         Uc  / nXS'   X S'   X0S'   X@S'   XPS'   X`S'   g)aW  
:param metric_name: metric name.
:type metric_name: string

:param operator: operator.
:type operator: string

:param statistics: statistics.
:type statistics: string

:param threshold: threshold.
:type threshold: float

:param window: window.
:type window: int

:param metric_dimensions: metric dimensions.
:type metric_dimensions: KV array
N
metricNamer   rK   rL   windowrR   )r	   r   r
   )r   metric_namer   rK   rL   r   rU   r   s          r   r
   AlarmConfigRule.__init__t  sN    ( 	ot-/$ "(\#Z'\%[X#4 r   r   )<   Nr   r   s   @r   r   r   p  s    5 5r   r   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )AlarmConfigPolicyi  z(
This class define alarm config policy.
c                 :   > [         [        U ]  5         XS'   X S'   g)z
:param rules: alarm config rules.
:type rules: AlarmConfigRule array

:param alarm_pending_count: alarm pending period count.
:type alarm_pending_count: int
rulesalarmPendingPeriodCountN)r	   r   r
   )r   r   alarm_pending_countr   s      r   r
   AlarmConfigPolicy.__init__  s#     	/1W*=&'r   r   r   r   s   @r   r   r     s    
> 
>r   r   c                   0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )TargetInstancei  z8
This class define alarm config policy target instance.
c                 L   > [         [        U ]  5         Uc  / nXS'   X S'   X0S'   g)z
:param region: region.
:type region: string

:param identifiers: identifiers.
:type identifiers: KV array

:param metric_dimensions: metric dimensions.
:type metric_dimensions: KV array
Nregionr|   rR   )r	   r   r
   )r   r   r|   rU   r   s       r   r
   TargetInstance.__init__  s6     	nd,.$ "X)]#4 r   r   r~   r   r   s   @r   r   r     s    5 5r   r   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )EventFilteri  z 
This class define event filter
c                 B   > [         [        U ]  5         XS'   X S'   X0S'   g)a  
:param event_level: event level, enum: NOTICE, WARNING, MAJOR, CRITICAL, * means all
:type event_level: string
:param event_type_list: event type list, * means all
:type event_type_list: list
:param eventAliasNames: event alias name list, * means all
:type eventAliasNames: list

eventLeveleventTypeListeventAliasNamesN)r	   r   r
   )r   r'   event_type_listr   r   s       r   r
   EventFilter.__init__  s+     	k4)+(\ /_"1r   r   r   r   s   @r   r   r     s    2 2r   r   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )EventResourceFilteri  z)
This class define event resource filter
c                 J   > [         [        U ]  5         XS'   X S'   X0S'   X@S'   g)a)  

:param region: region
:type region: string
:param type: resource type, enum: APP, SERVICE
:type type: string
:param monitor_object_type: monitor object type, enum: ALL, TAG
:type monitor_object_type: string
:param resources: resource list of EventResource
:type resources: list of EventResource
r   r;   rf   r   N)r	   r   r
   )r   r   r;   rh   r   r   s        r   r
   EventResourceFilter.__init__  s2     	!413XV$7 !%[r   r   r   r   s   @r   r   r     s    & &r   r   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )EventResourcei  z"
This class define event resource
c                 2   > [         [        U ]  5         XS'   g)zO
:param identifiers: resource identifiers
:type identifiers: list of Dimension
r|   N)r	   r   r
   )r   r|   r   s     r   r
   EventResource.__init__  s    
 	mT+-)]r   r   r   r   s   @r   r   r     s    * *r   r   c                   4   ^  \ rS rSrSr  SU 4S jjrSrU =r$ )MonitorResourcei  z$
This class define monitor resource
c	                 j   > [         [        U ]  5         XS'   X S'   X0S'   X@S'   XPS'   X`S'   XpS'   XS'   g	)
a  
:param user_id: user id
:type user_id: string
:param region: region
:type region: string
:param service_name: service name
:type service_name: string
:param type_name: type name
:type type_name: string
:param resource_id: resource id
:type resource_id: string
:param identifiers: identifier list
:type identifiers: list of Dimension
:param properties: property list
:type properties: list of Dimension
:param tags: tag list
:type tags: list of Dimension
userIdr   serviceNamer   
resourceIdr|   
propertiestagsN)r	   r   r
   )
r   user_idr   service_namer   resource_idr|   r   r   r   s
            r   r
   MonitorResource.__init__  sO    ( 	ot-/ XX*]$Z(\)]'\Vr   r   )NNNr   r   s   @r   r   r     s     [_'+ r   r   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )MetricDatumi  z
This class metric datum.
c                 J   > [         [        U ]  5         XS'   X S'   X0S'   X@S'   g)z
:param metric_name: metric_name
:type  metric_name: string
:param dimensions: dimensions
:type  dimensions: list
:param value: value
:type value: double
:param timestamp: timestamp
:type  timestamp: string
r   
dimensionsro   	timestampN)r	   r   r
   )r   r   r   ro   r   r   s        r   r
   MetricDatum.__init__  s1     	k4)+(\'\W%[r   r   r   r   s   @r   r   r     s    & &r   r   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )SiteAlarmRulei0  z,
This class define site alarm policy config
c                    > [         [        U ]  5         XS'   X S'   X0S'   X@S'   XPS'   SU S'   X`S'   XpS	'   XS
'   XS'   XS'   g)aF  

:param metric: metric identifier
:type metric: string
:param metric_alias: metric name
:type metric_alias: string
:param cycle: period, second
:type cycle: int
:param statistics: statistics, enum: average, minimum, maximum, sum
:type statistics: string
:param threshold:
:type threshold: float
:param comparison_operator: operator, enum: ">", "<", ">=", "<="
:type: string
:param count:
:type count: int
:param function:
:type function: string
:param act_on_idcs:
:type act_on_idcs: list
:param act_on_isps:
:type act_on_isps: list
:param version_site:
:type version_site: string
rH   rI   rJ   rK   rL   rM   rN   rO   rP   	actOnIdcs	actOnIspsversionSiteN)r	   r   r
   )r   rH   rS   rJ   rK   rL   rT   rP   rN   act_on_idcsact_on_ispsversion_siter   s               r   r
   SiteAlarmRule.__init__5  sj    6 	mT+-X*]W'\%[&Z%8!"W'['[*]r   r   r   r   s   @r   r   r   0  s    &+ &+r   r   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )CustomAlarmRulei^  z.
This class define custom alarm policy config
c	                 t   > [         [        U ]  5         XS'   X S'   X0S'   X@S'   SU S'   XPS'   X`S'   XpS	'   XS
'   g)a  

:param metric: metric identifier
:type metric: string
:param cycle: period, second
:type cycle: int
:param statistics: statistics, enum: average, minimum, maximum, sum
:type statistics: string
:param threshold:
:type threshold: float
:param comparison_operator: operator, enum: ">", "<", ">=", "<="
:type: string
:param count:
:type count: int
:param index: rule's sequence, begin with 0
:type index: int
:param metric_dimensions: dimensions
:type metric_dimensions: list
r   rJ   rK   rL   rM   rN   rO   rP   r   rR   N)r	   r   r
   )
r   rH   rJ   rK   rL   rT   rP   r   rU   r   s
            r   r
   CustomAlarmRule.__init__c  s[    * 	ot-/#\W'\%[&Z%8!"WW#4 r   r   r   r   s   @r   r   r   ^  s    5 5r   r   c                   6   ^  \ rS rSrSr   SU 4S jjrSrU =r$ )SiteOnceConfigi  z$
This class define site once config
c                    > [         [        U ]  5         XS'   X S'   X0S'   X@S'   XPS'   X`S'   XpS'   XS'   XS	'   XS
'   XS'   XS'   XS'   XS'   g)a"  

:param anonymous_login: anonymous login
:type anonymous_login: bool
:param method: method, enum: get, post, put, delete, patch
:type method: string
:param post_content: post content
:type post_content: string
:param kidnap_white: kidnap white
:type kidnap_white: bool
:param resolve_type: resolve type
:type resolve_type: string
:param server: server
:type server: string
:param packet_count: packet count
:type packet_count: int
:param port: port
:type port: int
:param input_type: input type
:type input_type: string
:param input_data: input data
:type input_data: string
:param output_type: output type
:type output_type: string
:param expected_output: expected output
:type expected_output: string
:param username: username
:type username: string
:param password: password
:type password: string
anonymousLoginmethodpostContentkidnapWhiteresolveTypeserverpacketCountport	inputTypeinput
outputTypeexpectedOutputusernamepasswordN)r	   r   r
   )r   anonymous_loginr   post_contentkidnap_whiteresolve_typer   packet_countr   
input_type
input_dataoutput_typeexpected_outputr   r   r   s                  r   r
   SiteOnceConfig.__init__  s    D 	nd,.!0X*]*]*]X*]V&["W(\!0#Z#Zr   r   )NNNNNNNNNNNNNNr   r   s   @r   r   r     s     nrjn?C0$ 0$r   r   c                   6   ^  \ rS rSrSr   SU 4S jjrSrU =r$ )AdvancedConfigi  z-
This class define advanced site once config
c                    > [         [        U ]  5         XS'   X S'   X0S'   X@S'   XPS'   X`S'   XpS'   XS'   XS	'   XS
'   XS'   g)aY  
:param cookies: cookies
:type cookies: string
:param user_agent: user agent
:type user_agent: string
:param host: host
:type host: string
:param response_code: response code
:type response_code: int
:param response_check: response check
:type response_check: bool
:param username: username
:type username: string
:param password: password
:type password: string
:param input_type: input type
:type input_type: string
:param input_data: input data
:type input_data: string
:param output_type: output type
:type output_type: string
:param expected_output: expected output
:type expected_output: string
cookies	userAgenthostresponseCoderesponseCheckr   r   r   r   r   r   N)r	   r   r
   )r   r   
user_agentr   response_coderesponse_checkr   r   r   r   r   r   r   s               r   r
   AdvancedConfig.__init__  sh    6 	nd,.!Y&[V,^ ._#Z#Z&["W(\!0r   r   )NNNNNNNNNNNr   r   s   @r   r   r     s     PTOSDH&1 &1r   r   N)r   dictr   objectr   r/   r8   r?   rE   rX   rc   rl   rs   ry   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   <module>r     sJ  
4 2"! "!J$ $$4 $$T *&54 &5R<D <*8t 8$ " "5T 5&%D %635 35l$ " 5d  5F> >"5T 5.2$ 2(&$ &0*D *!d !F&$ &0++D ++\#5d #5L5$T 5$p+1T +1r   