Skip to content

Commit 14743ae

Browse files
author
BitsAdmin
committed
Merge branch 'volc_observe-Python-2018-01-01-online-971-2025_02_17_15_39_36' into 'integration_2025-02-20_759006862850'
feat: [development task] Volc_Observe-971-Python (1027636) See merge request iaasng/volcengine-python-sdk!513
2 parents 4d7497e + 5102859 commit 14743ae

10 files changed

+816
-4
lines changed

volcenginesdkvolcobserve/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@
8989
from volcenginesdkvolcobserve.models.get_top_data_response import GetTopDataResponse
9090
from volcenginesdkvolcobserve.models.instance_for_get_metric_data_input import InstanceForGetMetricDataInput
9191
from volcenginesdkvolcobserve.models.instance_for_get_top_data_input import InstanceForGetTopDataInput
92+
from volcenginesdkvolcobserve.models.level_condition_for_create_rule_input import LevelConditionForCreateRuleInput
93+
from volcenginesdkvolcobserve.models.level_condition_for_list_rules_by_ids_output import LevelConditionForListRulesByIdsOutput
94+
from volcenginesdkvolcobserve.models.level_condition_for_list_rules_output import LevelConditionForListRulesOutput
95+
from volcenginesdkvolcobserve.models.level_condition_for_update_rule_input import LevelConditionForUpdateRuleInput
9296
from volcenginesdkvolcobserve.models.list_alert_group_request import ListAlertGroupRequest
9397
from volcenginesdkvolcobserve.models.list_alert_group_response import ListAlertGroupResponse
9498
from volcenginesdkvolcobserve.models.list_contact_group_by_ids_request import ListContactGroupByIdsRequest

volcenginesdkvolcobserve/models/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@
8585
from volcenginesdkvolcobserve.models.get_top_data_response import GetTopDataResponse
8686
from volcenginesdkvolcobserve.models.instance_for_get_metric_data_input import InstanceForGetMetricDataInput
8787
from volcenginesdkvolcobserve.models.instance_for_get_top_data_input import InstanceForGetTopDataInput
88+
from volcenginesdkvolcobserve.models.level_condition_for_create_rule_input import LevelConditionForCreateRuleInput
89+
from volcenginesdkvolcobserve.models.level_condition_for_list_rules_by_ids_output import LevelConditionForListRulesByIdsOutput
90+
from volcenginesdkvolcobserve.models.level_condition_for_list_rules_output import LevelConditionForListRulesOutput
91+
from volcenginesdkvolcobserve.models.level_condition_for_update_rule_input import LevelConditionForUpdateRuleInput
8892
from volcenginesdkvolcobserve.models.list_alert_group_request import ListAlertGroupRequest
8993
from volcenginesdkvolcobserve.models.list_alert_group_response import ListAlertGroupResponse
9094
from volcenginesdkvolcobserve.models.list_contact_group_by_ids_request import ListContactGroupByIdsRequest

volcenginesdkvolcobserve/models/create_rule_request.py

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@ class CreateRuleRequest(object):
4444
'enable_state': 'str',
4545
'evaluation_count': 'int',
4646
'level': 'str',
47+
'level_conditions': 'list[LevelConditionForCreateRuleInput]',
4748
'multiple_conditions': 'bool',
4849
'namespace': 'str',
4950
'no_data': 'NoDataForCreateRuleInput',
51+
'notification_id': 'str',
5052
'original_dimensions': 'dict(str, list[str])',
5153
'project_name': 'str',
5254
'recovery_notify': 'RecoveryNotifyForCreateRuleInput',
@@ -71,9 +73,11 @@ class CreateRuleRequest(object):
7173
'enable_state': 'EnableState',
7274
'evaluation_count': 'EvaluationCount',
7375
'level': 'Level',
76+
'level_conditions': 'LevelConditions',
7477
'multiple_conditions': 'MultipleConditions',
7578
'namespace': 'Namespace',
7679
'no_data': 'NoData',
80+
'notification_id': 'NotificationId',
7781
'original_dimensions': 'OriginalDimensions',
7882
'project_name': 'ProjectName',
7983
'recovery_notify': 'RecoveryNotify',
@@ -86,7 +90,7 @@ class CreateRuleRequest(object):
8690
'webhook_ids': 'WebhookIds'
8791
}
8892

89-
def __init__(self, alert_methods=None, condition_operator=None, conditions=None, contact_group_ids=None, description=None, dimension_conditions=None, effect_end_at=None, effect_start_at=None, enable_state=None, evaluation_count=None, level=None, multiple_conditions=None, namespace=None, no_data=None, original_dimensions=None, project_name=None, recovery_notify=None, regions=None, rule_name=None, rule_type=None, silence_time=None, sub_namespace=None, webhook=None, webhook_ids=None, _configuration=None): # noqa: E501
93+
def __init__(self, alert_methods=None, condition_operator=None, conditions=None, contact_group_ids=None, description=None, dimension_conditions=None, effect_end_at=None, effect_start_at=None, enable_state=None, evaluation_count=None, level=None, level_conditions=None, multiple_conditions=None, namespace=None, no_data=None, notification_id=None, original_dimensions=None, project_name=None, recovery_notify=None, regions=None, rule_name=None, rule_type=None, silence_time=None, sub_namespace=None, webhook=None, webhook_ids=None, _configuration=None): # noqa: E501
9094
"""CreateRuleRequest - a model defined in Swagger""" # noqa: E501
9195
if _configuration is None:
9296
_configuration = Configuration()
@@ -103,9 +107,11 @@ def __init__(self, alert_methods=None, condition_operator=None, conditions=None,
103107
self._enable_state = None
104108
self._evaluation_count = None
105109
self._level = None
110+
self._level_conditions = None
106111
self._multiple_conditions = None
107112
self._namespace = None
108113
self._no_data = None
114+
self._notification_id = None
109115
self._original_dimensions = None
110116
self._project_name = None
111117
self._recovery_notify = None
@@ -135,11 +141,15 @@ def __init__(self, alert_methods=None, condition_operator=None, conditions=None,
135141
self.enable_state = enable_state
136142
self.evaluation_count = evaluation_count
137143
self.level = level
144+
if level_conditions is not None:
145+
self.level_conditions = level_conditions
138146
if multiple_conditions is not None:
139147
self.multiple_conditions = multiple_conditions
140148
self.namespace = namespace
141149
if no_data is not None:
142150
self.no_data = no_data
151+
if notification_id is not None:
152+
self.notification_id = notification_id
143153
if original_dimensions is not None:
144154
self.original_dimensions = original_dimensions
145155
if project_name is not None:
@@ -406,6 +416,27 @@ def level(self, level):
406416

407417
self._level = level
408418

419+
@property
420+
def level_conditions(self):
421+
"""Gets the level_conditions of this CreateRuleRequest. # noqa: E501
422+
423+
424+
:return: The level_conditions of this CreateRuleRequest. # noqa: E501
425+
:rtype: list[LevelConditionForCreateRuleInput]
426+
"""
427+
return self._level_conditions
428+
429+
@level_conditions.setter
430+
def level_conditions(self, level_conditions):
431+
"""Sets the level_conditions of this CreateRuleRequest.
432+
433+
434+
:param level_conditions: The level_conditions of this CreateRuleRequest. # noqa: E501
435+
:type: list[LevelConditionForCreateRuleInput]
436+
"""
437+
438+
self._level_conditions = level_conditions
439+
409440
@property
410441
def multiple_conditions(self):
411442
"""Gets the multiple_conditions of this CreateRuleRequest. # noqa: E501
@@ -471,6 +502,27 @@ def no_data(self, no_data):
471502

472503
self._no_data = no_data
473504

505+
@property
506+
def notification_id(self):
507+
"""Gets the notification_id of this CreateRuleRequest. # noqa: E501
508+
509+
510+
:return: The notification_id of this CreateRuleRequest. # noqa: E501
511+
:rtype: str
512+
"""
513+
return self._notification_id
514+
515+
@notification_id.setter
516+
def notification_id(self, notification_id):
517+
"""Sets the notification_id of this CreateRuleRequest.
518+
519+
520+
:param notification_id: The notification_id of this CreateRuleRequest. # noqa: E501
521+
:type: str
522+
"""
523+
524+
self._notification_id = notification_id
525+
474526
@property
475527
def original_dimensions(self):
476528
"""Gets the original_dimensions of this CreateRuleRequest. # noqa: E501

volcenginesdkvolcobserve/models/data_for_list_rules_by_ids_output.py

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ class DataForListRulesByIdsOutput(object):
4747
'evaluation_count': 'int',
4848
'id': 'str',
4949
'level': 'str',
50+
'level_conditions': 'list[LevelConditionForListRulesByIdsOutput]',
5051
'multiple_conditions': 'bool',
5152
'namespace': 'str',
53+
'notification_id': 'str',
5254
'original_dimensions': 'dict(str, list[str])',
5355
'project_name': 'str',
5456
'recovery_notify': 'RecoveryNotifyForListRulesByIdsOutput',
@@ -77,8 +79,10 @@ class DataForListRulesByIdsOutput(object):
7779
'evaluation_count': 'EvaluationCount',
7880
'id': 'Id',
7981
'level': 'Level',
82+
'level_conditions': 'LevelConditions',
8083
'multiple_conditions': 'MultipleConditions',
8184
'namespace': 'Namespace',
85+
'notification_id': 'NotificationId',
8286
'original_dimensions': 'OriginalDimensions',
8387
'project_name': 'ProjectName',
8488
'recovery_notify': 'RecoveryNotify',
@@ -92,7 +96,7 @@ class DataForListRulesByIdsOutput(object):
9296
'webhook_ids': 'WebhookIds'
9397
}
9498

95-
def __init__(self, alert_methods=None, alert_state=None, condition_operator=None, conditions=None, contact_group_ids=None, created_at=None, description=None, dimension_conditions=None, effect_end_at=None, effect_start_at=None, enable_state=None, evaluation_count=None, id=None, level=None, multiple_conditions=None, namespace=None, original_dimensions=None, project_name=None, recovery_notify=None, regions=None, rule_name=None, rule_type=None, silence_time=None, sub_namespace=None, updated_at=None, web_hook=None, webhook_ids=None, _configuration=None): # noqa: E501
99+
def __init__(self, alert_methods=None, alert_state=None, condition_operator=None, conditions=None, contact_group_ids=None, created_at=None, description=None, dimension_conditions=None, effect_end_at=None, effect_start_at=None, enable_state=None, evaluation_count=None, id=None, level=None, level_conditions=None, multiple_conditions=None, namespace=None, notification_id=None, original_dimensions=None, project_name=None, recovery_notify=None, regions=None, rule_name=None, rule_type=None, silence_time=None, sub_namespace=None, updated_at=None, web_hook=None, webhook_ids=None, _configuration=None): # noqa: E501
96100
"""DataForListRulesByIdsOutput - a model defined in Swagger""" # noqa: E501
97101
if _configuration is None:
98102
_configuration = Configuration()
@@ -112,8 +116,10 @@ def __init__(self, alert_methods=None, alert_state=None, condition_operator=None
112116
self._evaluation_count = None
113117
self._id = None
114118
self._level = None
119+
self._level_conditions = None
115120
self._multiple_conditions = None
116121
self._namespace = None
122+
self._notification_id = None
117123
self._original_dimensions = None
118124
self._project_name = None
119125
self._recovery_notify = None
@@ -155,10 +161,14 @@ def __init__(self, alert_methods=None, alert_state=None, condition_operator=None
155161
self.id = id
156162
if level is not None:
157163
self.level = level
164+
if level_conditions is not None:
165+
self.level_conditions = level_conditions
158166
if multiple_conditions is not None:
159167
self.multiple_conditions = multiple_conditions
160168
if namespace is not None:
161169
self.namespace = namespace
170+
if notification_id is not None:
171+
self.notification_id = notification_id
162172
if original_dimensions is not None:
163173
self.original_dimensions = original_dimensions
164174
if project_name is not None:
@@ -476,6 +486,27 @@ def level(self, level):
476486

477487
self._level = level
478488

489+
@property
490+
def level_conditions(self):
491+
"""Gets the level_conditions of this DataForListRulesByIdsOutput. # noqa: E501
492+
493+
494+
:return: The level_conditions of this DataForListRulesByIdsOutput. # noqa: E501
495+
:rtype: list[LevelConditionForListRulesByIdsOutput]
496+
"""
497+
return self._level_conditions
498+
499+
@level_conditions.setter
500+
def level_conditions(self, level_conditions):
501+
"""Sets the level_conditions of this DataForListRulesByIdsOutput.
502+
503+
504+
:param level_conditions: The level_conditions of this DataForListRulesByIdsOutput. # noqa: E501
505+
:type: list[LevelConditionForListRulesByIdsOutput]
506+
"""
507+
508+
self._level_conditions = level_conditions
509+
479510
@property
480511
def multiple_conditions(self):
481512
"""Gets the multiple_conditions of this DataForListRulesByIdsOutput. # noqa: E501
@@ -518,6 +549,27 @@ def namespace(self, namespace):
518549

519550
self._namespace = namespace
520551

552+
@property
553+
def notification_id(self):
554+
"""Gets the notification_id of this DataForListRulesByIdsOutput. # noqa: E501
555+
556+
557+
:return: The notification_id of this DataForListRulesByIdsOutput. # noqa: E501
558+
:rtype: str
559+
"""
560+
return self._notification_id
561+
562+
@notification_id.setter
563+
def notification_id(self, notification_id):
564+
"""Sets the notification_id of this DataForListRulesByIdsOutput.
565+
566+
567+
:param notification_id: The notification_id of this DataForListRulesByIdsOutput. # noqa: E501
568+
:type: str
569+
"""
570+
571+
self._notification_id = notification_id
572+
521573
@property
522574
def original_dimensions(self):
523575
"""Gets the original_dimensions of this DataForListRulesByIdsOutput. # noqa: E501

volcenginesdkvolcobserve/models/data_for_list_rules_output.py

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ class DataForListRulesOutput(object):
4747
'evaluation_count': 'int',
4848
'id': 'str',
4949
'level': 'str',
50+
'level_conditions': 'list[LevelConditionForListRulesOutput]',
5051
'multiple_conditions': 'bool',
5152
'namespace': 'str',
53+
'notification_id': 'str',
5254
'original_dimensions': 'dict(str, list[str])',
5355
'project_name': 'str',
5456
'recovery_notify': 'RecoveryNotifyForListRulesOutput',
@@ -77,8 +79,10 @@ class DataForListRulesOutput(object):
7779
'evaluation_count': 'EvaluationCount',
7880
'id': 'Id',
7981
'level': 'Level',
82+
'level_conditions': 'LevelConditions',
8083
'multiple_conditions': 'MultipleConditions',
8184
'namespace': 'Namespace',
85+
'notification_id': 'NotificationId',
8286
'original_dimensions': 'OriginalDimensions',
8387
'project_name': 'ProjectName',
8488
'recovery_notify': 'RecoveryNotify',
@@ -92,7 +96,7 @@ class DataForListRulesOutput(object):
9296
'webhook_ids': 'WebhookIds'
9397
}
9498

95-
def __init__(self, alert_methods=None, alert_state=None, condition_operator=None, conditions=None, contact_group_ids=None, created_at=None, description=None, dimension_conditions=None, effect_end_at=None, effect_start_at=None, enable_state=None, evaluation_count=None, id=None, level=None, multiple_conditions=None, namespace=None, original_dimensions=None, project_name=None, recovery_notify=None, regions=None, rule_name=None, rule_type=None, silence_time=None, sub_namespace=None, updated_at=None, web_hook=None, webhook_ids=None, _configuration=None): # noqa: E501
99+
def __init__(self, alert_methods=None, alert_state=None, condition_operator=None, conditions=None, contact_group_ids=None, created_at=None, description=None, dimension_conditions=None, effect_end_at=None, effect_start_at=None, enable_state=None, evaluation_count=None, id=None, level=None, level_conditions=None, multiple_conditions=None, namespace=None, notification_id=None, original_dimensions=None, project_name=None, recovery_notify=None, regions=None, rule_name=None, rule_type=None, silence_time=None, sub_namespace=None, updated_at=None, web_hook=None, webhook_ids=None, _configuration=None): # noqa: E501
96100
"""DataForListRulesOutput - a model defined in Swagger""" # noqa: E501
97101
if _configuration is None:
98102
_configuration = Configuration()
@@ -112,8 +116,10 @@ def __init__(self, alert_methods=None, alert_state=None, condition_operator=None
112116
self._evaluation_count = None
113117
self._id = None
114118
self._level = None
119+
self._level_conditions = None
115120
self._multiple_conditions = None
116121
self._namespace = None
122+
self._notification_id = None
117123
self._original_dimensions = None
118124
self._project_name = None
119125
self._recovery_notify = None
@@ -155,10 +161,14 @@ def __init__(self, alert_methods=None, alert_state=None, condition_operator=None
155161
self.id = id
156162
if level is not None:
157163
self.level = level
164+
if level_conditions is not None:
165+
self.level_conditions = level_conditions
158166
if multiple_conditions is not None:
159167
self.multiple_conditions = multiple_conditions
160168
if namespace is not None:
161169
self.namespace = namespace
170+
if notification_id is not None:
171+
self.notification_id = notification_id
162172
if original_dimensions is not None:
163173
self.original_dimensions = original_dimensions
164174
if project_name is not None:
@@ -476,6 +486,27 @@ def level(self, level):
476486

477487
self._level = level
478488

489+
@property
490+
def level_conditions(self):
491+
"""Gets the level_conditions of this DataForListRulesOutput. # noqa: E501
492+
493+
494+
:return: The level_conditions of this DataForListRulesOutput. # noqa: E501
495+
:rtype: list[LevelConditionForListRulesOutput]
496+
"""
497+
return self._level_conditions
498+
499+
@level_conditions.setter
500+
def level_conditions(self, level_conditions):
501+
"""Sets the level_conditions of this DataForListRulesOutput.
502+
503+
504+
:param level_conditions: The level_conditions of this DataForListRulesOutput. # noqa: E501
505+
:type: list[LevelConditionForListRulesOutput]
506+
"""
507+
508+
self._level_conditions = level_conditions
509+
479510
@property
480511
def multiple_conditions(self):
481512
"""Gets the multiple_conditions of this DataForListRulesOutput. # noqa: E501
@@ -518,6 +549,27 @@ def namespace(self, namespace):
518549

519550
self._namespace = namespace
520551

552+
@property
553+
def notification_id(self):
554+
"""Gets the notification_id of this DataForListRulesOutput. # noqa: E501
555+
556+
557+
:return: The notification_id of this DataForListRulesOutput. # noqa: E501
558+
:rtype: str
559+
"""
560+
return self._notification_id
561+
562+
@notification_id.setter
563+
def notification_id(self, notification_id):
564+
"""Sets the notification_id of this DataForListRulesOutput.
565+
566+
567+
:param notification_id: The notification_id of this DataForListRulesOutput. # noqa: E501
568+
:type: str
569+
"""
570+
571+
self._notification_id = notification_id
572+
521573
@property
522574
def original_dimensions(self):
523575
"""Gets the original_dimensions of this DataForListRulesOutput. # noqa: E501

0 commit comments

Comments
 (0)