baiducloud-python-sdk-cprom 0.0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- baiducloud_python_sdk_cprom/__init__.py +5 -0
- baiducloud_python_sdk_cprom/api/__init__.py +0 -0
- baiducloud_python_sdk_cprom/api/cprom_client.py +1197 -0
- baiducloud_python_sdk_cprom/models/__init__.py +90 -0
- baiducloud_python_sdk_cprom/models/bind_cluster_request.py +72 -0
- baiducloud_python_sdk_cprom/models/bind_cluster_response.py +61 -0
- baiducloud_python_sdk_cprom/models/callback_config.py +68 -0
- baiducloud_python_sdk_cprom/models/claim_alert_event_request.py +68 -0
- baiducloud_python_sdk_cprom/models/claim_alert_event_response.py +78 -0
- baiducloud_python_sdk_cprom/models/claim_condition.py +58 -0
- baiducloud_python_sdk_cprom/models/claimed_info.py +82 -0
- baiducloud_python_sdk_cprom/models/create_alert_request.py +142 -0
- baiducloud_python_sdk_cprom/models/create_alert_response.py +61 -0
- baiducloud_python_sdk_cprom/models/create_custom_scrape_task_request.py +72 -0
- baiducloud_python_sdk_cprom/models/create_custom_scrape_task_response.py +61 -0
- baiducloud_python_sdk_cprom/models/create_instance_request.py +117 -0
- baiducloud_python_sdk_cprom/models/create_notification_policy_request.py +149 -0
- baiducloud_python_sdk_cprom/models/create_notification_policy_response.py +61 -0
- baiducloud_python_sdk_cprom/models/create_podmonitor_request.py +98 -0
- baiducloud_python_sdk_cprom/models/create_podmonitor_response.py +61 -0
- baiducloud_python_sdk_cprom/models/create_service_monitor_request.py +98 -0
- baiducloud_python_sdk_cprom/models/create_service_monitor_response.py +61 -0
- baiducloud_python_sdk_cprom/models/delete_alert_request.py +64 -0
- baiducloud_python_sdk_cprom/models/delete_custom_scrape_task_request.py +70 -0
- baiducloud_python_sdk_cprom/models/delete_instance_request.py +64 -0
- baiducloud_python_sdk_cprom/models/delete_notification_policy_request.py +58 -0
- baiducloud_python_sdk_cprom/models/delete_podmonitor_request.py +70 -0
- baiducloud_python_sdk_cprom/models/delete_service_monitor_request.py +70 -0
- baiducloud_python_sdk_cprom/models/endpoint.py +82 -0
- baiducloud_python_sdk_cprom/models/escalate_param.py +78 -0
- baiducloud_python_sdk_cprom/models/event.py +216 -0
- baiducloud_python_sdk_cprom/models/event_claim_detail.py +74 -0
- baiducloud_python_sdk_cprom/models/generate_instance_token_request.py +72 -0
- baiducloud_python_sdk_cprom/models/get_alert_detail_request.py +64 -0
- baiducloud_python_sdk_cprom/models/get_alert_detail_response.py +136 -0
- baiducloud_python_sdk_cprom/models/get_alert_event_detail_request.py +58 -0
- baiducloud_python_sdk_cprom/models/get_alert_event_detail_response.py +218 -0
- baiducloud_python_sdk_cprom/models/get_cluster_bind_status_request.py +58 -0
- baiducloud_python_sdk_cprom/models/get_cluster_bind_status_response.py +77 -0
- baiducloud_python_sdk_cprom/models/get_notification_policy_request.py +58 -0
- baiducloud_python_sdk_cprom/models/get_notification_policy_response.py +167 -0
- baiducloud_python_sdk_cprom/models/label_selector.py +58 -0
- baiducloud_python_sdk_cprom/models/list_alert_events_request.py +159 -0
- baiducloud_python_sdk_cprom/models/list_alert_events_response.py +102 -0
- baiducloud_python_sdk_cprom/models/list_alert_templates_response.py +62 -0
- baiducloud_python_sdk_cprom/models/list_alerts_request.py +82 -0
- baiducloud_python_sdk_cprom/models/list_alerts_response.py +128 -0
- baiducloud_python_sdk_cprom/models/list_bindable_cloud_products_response.py +62 -0
- baiducloud_python_sdk_cprom/models/list_instances_request.py +82 -0
- baiducloud_python_sdk_cprom/models/list_instances_response.py +102 -0
- baiducloud_python_sdk_cprom/models/list_notification_policies_request.py +76 -0
- baiducloud_python_sdk_cprom/models/list_notification_policies_response.py +128 -0
- baiducloud_python_sdk_cprom/models/list_pod_monitors_request.py +110 -0
- baiducloud_python_sdk_cprom/models/list_pod_monitors_response.py +137 -0
- baiducloud_python_sdk_cprom/models/list_related_cloud_products_request.py +58 -0
- baiducloud_python_sdk_cprom/models/list_related_cloud_products_response.py +61 -0
- baiducloud_python_sdk_cprom/models/list_service_monitors_request.py +110 -0
- baiducloud_python_sdk_cprom/models/list_service_monitors_response.py +137 -0
- baiducloud_python_sdk_cprom/models/mentioned_user_config.py +66 -0
- baiducloud_python_sdk_cprom/models/monitor_instance.py +135 -0
- baiducloud_python_sdk_cprom/models/namespace_selector.py +58 -0
- baiducloud_python_sdk_cprom/models/notify_action.py +96 -0
- baiducloud_python_sdk_cprom/models/notify_rule.py +179 -0
- baiducloud_python_sdk_cprom/models/object_meta.py +66 -0
- baiducloud_python_sdk_cprom/models/pod_metrics_endpoint.py +74 -0
- baiducloud_python_sdk_cprom/models/pod_monitor.py +86 -0
- baiducloud_python_sdk_cprom/models/pod_monitor_item.py +92 -0
- baiducloud_python_sdk_cprom/models/pod_monitor_spec.py +80 -0
- baiducloud_python_sdk_cprom/models/remote_read_request.py +90 -0
- baiducloud_python_sdk_cprom/models/remote_read_response.py +127 -0
- baiducloud_python_sdk_cprom/models/remote_write_request.py +90 -0
- baiducloud_python_sdk_cprom/models/repeat_notify_config.py +90 -0
- baiducloud_python_sdk_cprom/models/rule_detail.py +142 -0
- baiducloud_python_sdk_cprom/models/rule_template.py +82 -0
- baiducloud_python_sdk_cprom/models/scope_detail.py +74 -0
- baiducloud_python_sdk_cprom/models/service_monitor.py +86 -0
- baiducloud_python_sdk_cprom/models/service_monitor_endpoint.py +74 -0
- baiducloud_python_sdk_cprom/models/service_monitor_item.py +92 -0
- baiducloud_python_sdk_cprom/models/service_monitor_spec.py +80 -0
- baiducloud_python_sdk_cprom/models/status.py +74 -0
- baiducloud_python_sdk_cprom/models/toggle_pod_monitor_service_request.py +70 -0
- baiducloud_python_sdk_cprom/models/toggle_service_monitor_service_request.py +70 -0
- baiducloud_python_sdk_cprom/models/update_alert_request.py +149 -0
- baiducloud_python_sdk_cprom/models/update_notification_policy_request.py +156 -0
- baiducloud_python_sdk_cprom/models/update_pod_monitor_request.py +87 -0
- baiducloud_python_sdk_cprom/models/update_related_cloud_products_request.py +66 -0
- baiducloud_python_sdk_cprom/models/update_service_monitor_request.py +87 -0
- baiducloud_python_sdk_cprom/models/user.py +90 -0
- baiducloud_python_sdk_cprom/models/user_group.py +74 -0
- baiducloud_python_sdk_cprom/models/webhook_detail.py +102 -0
- baiducloud_python_sdk_cprom-0.0.1.dist-info/LICENSE +177 -0
- baiducloud_python_sdk_cprom-0.0.1.dist-info/METADATA +76 -0
- baiducloud_python_sdk_cprom-0.0.1.dist-info/RECORD +95 -0
- baiducloud_python_sdk_cprom-0.0.1.dist-info/WHEEL +5 -0
- baiducloud_python_sdk_cprom-0.0.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for CreatePodmonitorRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
from baiducloud_python_sdk_cprom.models.object_meta import ObjectMeta
|
|
7
|
+
from baiducloud_python_sdk_cprom.models.pod_monitor_spec import PodMonitorSpec
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class CreatePodmonitorRequest(AbstractModel):
|
|
11
|
+
"""
|
|
12
|
+
Request entity for CreatePodmonitorRequest operation.
|
|
13
|
+
|
|
14
|
+
This class encapsulates all parameters for the API request.
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
def __init__(self, instance_id, agent_id, api_version, kind, metadata, spec):
|
|
18
|
+
"""
|
|
19
|
+
Initialize CreatePodmonitorRequest request entity.
|
|
20
|
+
|
|
21
|
+
:param instance_id: instance_id parameter
|
|
22
|
+
:type instance_id: str (required)
|
|
23
|
+
|
|
24
|
+
:param agent_id: agent_id parameter
|
|
25
|
+
:type agent_id: str (required)
|
|
26
|
+
|
|
27
|
+
:param api_version: 固定值:monitoring.coreos.com/v1
|
|
28
|
+
:type api_version: str (required)
|
|
29
|
+
|
|
30
|
+
:param kind: 固定值:PodMonitor
|
|
31
|
+
:type kind: str (required)
|
|
32
|
+
|
|
33
|
+
:param metadata: metadata parameter
|
|
34
|
+
:type metadata: ObjectMeta (required)
|
|
35
|
+
|
|
36
|
+
:param spec: spec parameter
|
|
37
|
+
:type spec: PodMonitorSpec (required)
|
|
38
|
+
"""
|
|
39
|
+
super().__init__()
|
|
40
|
+
self.instance_id = instance_id
|
|
41
|
+
self.agent_id = agent_id
|
|
42
|
+
self.api_version = api_version
|
|
43
|
+
self.kind = kind
|
|
44
|
+
self.metadata = metadata
|
|
45
|
+
self.spec = spec
|
|
46
|
+
|
|
47
|
+
def to_dict(self):
|
|
48
|
+
"""
|
|
49
|
+
Convert the request entity to a dictionary representation.
|
|
50
|
+
|
|
51
|
+
Nested model objects are recursively converted to dictionaries.
|
|
52
|
+
|
|
53
|
+
:return: Dictionary representation of the request
|
|
54
|
+
:rtype: dict
|
|
55
|
+
"""
|
|
56
|
+
_map = super().to_dict()
|
|
57
|
+
if _map is not None:
|
|
58
|
+
return _map
|
|
59
|
+
result = dict()
|
|
60
|
+
if self.api_version is not None:
|
|
61
|
+
result['apiVersion'] = self.api_version
|
|
62
|
+
if self.kind is not None:
|
|
63
|
+
result['kind'] = self.kind
|
|
64
|
+
if self.metadata is not None:
|
|
65
|
+
result['metadata'] = self.metadata.to_dict()
|
|
66
|
+
if self.spec is not None:
|
|
67
|
+
result['spec'] = self.spec.to_dict()
|
|
68
|
+
return result
|
|
69
|
+
|
|
70
|
+
def from_dict(self, m):
|
|
71
|
+
"""
|
|
72
|
+
Populate the request entity from a dictionary.
|
|
73
|
+
|
|
74
|
+
Nested dictionaries are recursively converted to model objects.
|
|
75
|
+
|
|
76
|
+
:param m: Dictionary containing request data
|
|
77
|
+
:type m: dict
|
|
78
|
+
|
|
79
|
+
:return: Self reference for method chaining
|
|
80
|
+
:rtype: CreatePodmonitorRequest
|
|
81
|
+
|
|
82
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
83
|
+
:raises ValueError: If nested model conversion fails
|
|
84
|
+
"""
|
|
85
|
+
m = m or dict()
|
|
86
|
+
if m.get('instanceId') is not None:
|
|
87
|
+
self.instance_id = m.get('instanceId')
|
|
88
|
+
if m.get('agentId') is not None:
|
|
89
|
+
self.agent_id = m.get('agentId')
|
|
90
|
+
if m.get('apiVersion') is not None:
|
|
91
|
+
self.api_version = m.get('apiVersion')
|
|
92
|
+
if m.get('kind') is not None:
|
|
93
|
+
self.kind = m.get('kind')
|
|
94
|
+
if m.get('metadata') is not None:
|
|
95
|
+
self.metadata = ObjectMeta().from_dict(m.get('metadata'))
|
|
96
|
+
if m.get('spec') is not None:
|
|
97
|
+
self.spec = PodMonitorSpec().from_dict(m.get('spec'))
|
|
98
|
+
return self
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for CreatePodmonitorResponse information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CreatePodmonitorResponse(BceResponse):
|
|
9
|
+
"""
|
|
10
|
+
CreatePodmonitorResponse
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, pod_monitor_name=None):
|
|
14
|
+
"""
|
|
15
|
+
Initialize CreatePodmonitorResponse response.
|
|
16
|
+
|
|
17
|
+
:param pod_monitor_name: Pod Monitor名称
|
|
18
|
+
:type pod_monitor_name: str (optional)
|
|
19
|
+
"""
|
|
20
|
+
super().__init__()
|
|
21
|
+
self.pod_monitor_name = pod_monitor_name
|
|
22
|
+
|
|
23
|
+
def to_dict(self):
|
|
24
|
+
"""
|
|
25
|
+
Convert the response instance to a dictionary representation.
|
|
26
|
+
|
|
27
|
+
Includes metadata from the parent BceResponse class.
|
|
28
|
+
Nested model objects are recursively converted to dictionaries.
|
|
29
|
+
|
|
30
|
+
:return: Dictionary representation of the response
|
|
31
|
+
:rtype: dict
|
|
32
|
+
"""
|
|
33
|
+
_map = super().to_dict()
|
|
34
|
+
if _map is not None:
|
|
35
|
+
return _map
|
|
36
|
+
result = dict()
|
|
37
|
+
if self.metadata is not None:
|
|
38
|
+
result['metadata'] = dict(self.metadata)
|
|
39
|
+
if self.pod_monitor_name is not None:
|
|
40
|
+
result['podMonitorName'] = self.pod_monitor_name
|
|
41
|
+
return result
|
|
42
|
+
|
|
43
|
+
def from_dict(self, m):
|
|
44
|
+
"""
|
|
45
|
+
Populate the response instance from a dictionary.
|
|
46
|
+
|
|
47
|
+
Nested dictionaries are recursively converted to model objects.
|
|
48
|
+
|
|
49
|
+
:param m: Dictionary containing response data
|
|
50
|
+
:type m: dict
|
|
51
|
+
|
|
52
|
+
:return: Self reference for method chaining
|
|
53
|
+
:rtype: CreatePodmonitorResponse
|
|
54
|
+
|
|
55
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
56
|
+
:raises ValueError: If nested model conversion fails
|
|
57
|
+
"""
|
|
58
|
+
m = m or dict()
|
|
59
|
+
if m.get('podMonitorName') is not None:
|
|
60
|
+
self.pod_monitor_name = m.get('podMonitorName')
|
|
61
|
+
return self
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for CreateServiceMonitorRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
from baiducloud_python_sdk_cprom.models.object_meta import ObjectMeta
|
|
7
|
+
from baiducloud_python_sdk_cprom.models.service_monitor_spec import ServiceMonitorSpec
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class CreateServiceMonitorRequest(AbstractModel):
|
|
11
|
+
"""
|
|
12
|
+
Request entity for CreateServiceMonitorRequest operation.
|
|
13
|
+
|
|
14
|
+
This class encapsulates all parameters for the API request.
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
def __init__(self, instance_id, agent_id, api_version, kind, metadata, spec):
|
|
18
|
+
"""
|
|
19
|
+
Initialize CreateServiceMonitorRequest request entity.
|
|
20
|
+
|
|
21
|
+
:param instance_id: instance_id parameter
|
|
22
|
+
:type instance_id: str (required)
|
|
23
|
+
|
|
24
|
+
:param agent_id: agent_id parameter
|
|
25
|
+
:type agent_id: str (required)
|
|
26
|
+
|
|
27
|
+
:param api_version: 固定值:monitoring.coreos.com/v1
|
|
28
|
+
:type api_version: str (required)
|
|
29
|
+
|
|
30
|
+
:param kind: 固定值:ServiceMonitor
|
|
31
|
+
:type kind: str (required)
|
|
32
|
+
|
|
33
|
+
:param metadata: metadata parameter
|
|
34
|
+
:type metadata: ObjectMeta (required)
|
|
35
|
+
|
|
36
|
+
:param spec: spec parameter
|
|
37
|
+
:type spec: ServiceMonitorSpec (required)
|
|
38
|
+
"""
|
|
39
|
+
super().__init__()
|
|
40
|
+
self.instance_id = instance_id
|
|
41
|
+
self.agent_id = agent_id
|
|
42
|
+
self.api_version = api_version
|
|
43
|
+
self.kind = kind
|
|
44
|
+
self.metadata = metadata
|
|
45
|
+
self.spec = spec
|
|
46
|
+
|
|
47
|
+
def to_dict(self):
|
|
48
|
+
"""
|
|
49
|
+
Convert the request entity to a dictionary representation.
|
|
50
|
+
|
|
51
|
+
Nested model objects are recursively converted to dictionaries.
|
|
52
|
+
|
|
53
|
+
:return: Dictionary representation of the request
|
|
54
|
+
:rtype: dict
|
|
55
|
+
"""
|
|
56
|
+
_map = super().to_dict()
|
|
57
|
+
if _map is not None:
|
|
58
|
+
return _map
|
|
59
|
+
result = dict()
|
|
60
|
+
if self.api_version is not None:
|
|
61
|
+
result['apiVersion'] = self.api_version
|
|
62
|
+
if self.kind is not None:
|
|
63
|
+
result['kind'] = self.kind
|
|
64
|
+
if self.metadata is not None:
|
|
65
|
+
result['metadata'] = self.metadata.to_dict()
|
|
66
|
+
if self.spec is not None:
|
|
67
|
+
result['spec'] = self.spec.to_dict()
|
|
68
|
+
return result
|
|
69
|
+
|
|
70
|
+
def from_dict(self, m):
|
|
71
|
+
"""
|
|
72
|
+
Populate the request entity from a dictionary.
|
|
73
|
+
|
|
74
|
+
Nested dictionaries are recursively converted to model objects.
|
|
75
|
+
|
|
76
|
+
:param m: Dictionary containing request data
|
|
77
|
+
:type m: dict
|
|
78
|
+
|
|
79
|
+
:return: Self reference for method chaining
|
|
80
|
+
:rtype: CreateServiceMonitorRequest
|
|
81
|
+
|
|
82
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
83
|
+
:raises ValueError: If nested model conversion fails
|
|
84
|
+
"""
|
|
85
|
+
m = m or dict()
|
|
86
|
+
if m.get('instanceId') is not None:
|
|
87
|
+
self.instance_id = m.get('instanceId')
|
|
88
|
+
if m.get('agentId') is not None:
|
|
89
|
+
self.agent_id = m.get('agentId')
|
|
90
|
+
if m.get('apiVersion') is not None:
|
|
91
|
+
self.api_version = m.get('apiVersion')
|
|
92
|
+
if m.get('kind') is not None:
|
|
93
|
+
self.kind = m.get('kind')
|
|
94
|
+
if m.get('metadata') is not None:
|
|
95
|
+
self.metadata = ObjectMeta().from_dict(m.get('metadata'))
|
|
96
|
+
if m.get('spec') is not None:
|
|
97
|
+
self.spec = ServiceMonitorSpec().from_dict(m.get('spec'))
|
|
98
|
+
return self
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for CreateServiceMonitorResponse information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CreateServiceMonitorResponse(BceResponse):
|
|
9
|
+
"""
|
|
10
|
+
CreateServiceMonitorResponse
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, service_monitor_name=None):
|
|
14
|
+
"""
|
|
15
|
+
Initialize CreateServiceMonitorResponse response.
|
|
16
|
+
|
|
17
|
+
:param service_monitor_name: Service Monitor名称
|
|
18
|
+
:type service_monitor_name: str (optional)
|
|
19
|
+
"""
|
|
20
|
+
super().__init__()
|
|
21
|
+
self.service_monitor_name = service_monitor_name
|
|
22
|
+
|
|
23
|
+
def to_dict(self):
|
|
24
|
+
"""
|
|
25
|
+
Convert the response instance to a dictionary representation.
|
|
26
|
+
|
|
27
|
+
Includes metadata from the parent BceResponse class.
|
|
28
|
+
Nested model objects are recursively converted to dictionaries.
|
|
29
|
+
|
|
30
|
+
:return: Dictionary representation of the response
|
|
31
|
+
:rtype: dict
|
|
32
|
+
"""
|
|
33
|
+
_map = super().to_dict()
|
|
34
|
+
if _map is not None:
|
|
35
|
+
return _map
|
|
36
|
+
result = dict()
|
|
37
|
+
if self.metadata is not None:
|
|
38
|
+
result['metadata'] = dict(self.metadata)
|
|
39
|
+
if self.service_monitor_name is not None:
|
|
40
|
+
result['serviceMonitorName'] = self.service_monitor_name
|
|
41
|
+
return result
|
|
42
|
+
|
|
43
|
+
def from_dict(self, m):
|
|
44
|
+
"""
|
|
45
|
+
Populate the response instance from a dictionary.
|
|
46
|
+
|
|
47
|
+
Nested dictionaries are recursively converted to model objects.
|
|
48
|
+
|
|
49
|
+
:param m: Dictionary containing response data
|
|
50
|
+
:type m: dict
|
|
51
|
+
|
|
52
|
+
:return: Self reference for method chaining
|
|
53
|
+
:rtype: CreateServiceMonitorResponse
|
|
54
|
+
|
|
55
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
56
|
+
:raises ValueError: If nested model conversion fails
|
|
57
|
+
"""
|
|
58
|
+
m = m or dict()
|
|
59
|
+
if m.get('serviceMonitorName') is not None:
|
|
60
|
+
self.service_monitor_name = m.get('serviceMonitorName')
|
|
61
|
+
return self
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for DeleteAlertRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DeleteAlertRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for DeleteAlertRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, alerting_rule_id, instance_id):
|
|
16
|
+
"""
|
|
17
|
+
Initialize DeleteAlertRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param alerting_rule_id: alerting_rule_id parameter
|
|
20
|
+
:type alerting_rule_id: str (required)
|
|
21
|
+
|
|
22
|
+
:param instance_id: instance_id parameter
|
|
23
|
+
:type instance_id: str (required)
|
|
24
|
+
"""
|
|
25
|
+
super().__init__()
|
|
26
|
+
self.alerting_rule_id = alerting_rule_id
|
|
27
|
+
self.instance_id = instance_id
|
|
28
|
+
|
|
29
|
+
def to_dict(self):
|
|
30
|
+
"""
|
|
31
|
+
Convert the request entity to a dictionary representation.
|
|
32
|
+
|
|
33
|
+
Nested model objects are recursively converted to dictionaries.
|
|
34
|
+
|
|
35
|
+
:return: Dictionary representation of the request
|
|
36
|
+
:rtype: dict
|
|
37
|
+
"""
|
|
38
|
+
_map = super().to_dict()
|
|
39
|
+
if _map is not None:
|
|
40
|
+
return _map
|
|
41
|
+
result = dict()
|
|
42
|
+
return result
|
|
43
|
+
|
|
44
|
+
def from_dict(self, m):
|
|
45
|
+
"""
|
|
46
|
+
Populate the request entity from a dictionary.
|
|
47
|
+
|
|
48
|
+
Nested dictionaries are recursively converted to model objects.
|
|
49
|
+
|
|
50
|
+
:param m: Dictionary containing request data
|
|
51
|
+
:type m: dict
|
|
52
|
+
|
|
53
|
+
:return: Self reference for method chaining
|
|
54
|
+
:rtype: DeleteAlertRequest
|
|
55
|
+
|
|
56
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
57
|
+
:raises ValueError: If nested model conversion fails
|
|
58
|
+
"""
|
|
59
|
+
m = m or dict()
|
|
60
|
+
if m.get('alertingRuleId') is not None:
|
|
61
|
+
self.alerting_rule_id = m.get('alertingRuleId')
|
|
62
|
+
if m.get('instanceId') is not None:
|
|
63
|
+
self.instance_id = m.get('instanceId')
|
|
64
|
+
return self
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for DeleteCustomScrapeTaskRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DeleteCustomScrapeTaskRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for DeleteCustomScrapeTaskRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, scrape_job_id, instance_id, agent_id):
|
|
16
|
+
"""
|
|
17
|
+
Initialize DeleteCustomScrapeTaskRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param scrape_job_id: scrape_job_id parameter
|
|
20
|
+
:type scrape_job_id: str (required)
|
|
21
|
+
|
|
22
|
+
:param instance_id: instance_id parameter
|
|
23
|
+
:type instance_id: str (required)
|
|
24
|
+
|
|
25
|
+
:param agent_id: agent_id parameter
|
|
26
|
+
:type agent_id: str (required)
|
|
27
|
+
"""
|
|
28
|
+
super().__init__()
|
|
29
|
+
self.scrape_job_id = scrape_job_id
|
|
30
|
+
self.instance_id = instance_id
|
|
31
|
+
self.agent_id = agent_id
|
|
32
|
+
|
|
33
|
+
def to_dict(self):
|
|
34
|
+
"""
|
|
35
|
+
Convert the request entity to a dictionary representation.
|
|
36
|
+
|
|
37
|
+
Nested model objects are recursively converted to dictionaries.
|
|
38
|
+
|
|
39
|
+
:return: Dictionary representation of the request
|
|
40
|
+
:rtype: dict
|
|
41
|
+
"""
|
|
42
|
+
_map = super().to_dict()
|
|
43
|
+
if _map is not None:
|
|
44
|
+
return _map
|
|
45
|
+
result = dict()
|
|
46
|
+
return result
|
|
47
|
+
|
|
48
|
+
def from_dict(self, m):
|
|
49
|
+
"""
|
|
50
|
+
Populate the request entity from a dictionary.
|
|
51
|
+
|
|
52
|
+
Nested dictionaries are recursively converted to model objects.
|
|
53
|
+
|
|
54
|
+
:param m: Dictionary containing request data
|
|
55
|
+
:type m: dict
|
|
56
|
+
|
|
57
|
+
:return: Self reference for method chaining
|
|
58
|
+
:rtype: DeleteCustomScrapeTaskRequest
|
|
59
|
+
|
|
60
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
61
|
+
:raises ValueError: If nested model conversion fails
|
|
62
|
+
"""
|
|
63
|
+
m = m or dict()
|
|
64
|
+
if m.get('scrapeJobId') is not None:
|
|
65
|
+
self.scrape_job_id = m.get('scrapeJobId')
|
|
66
|
+
if m.get('instanceId') is not None:
|
|
67
|
+
self.instance_id = m.get('instanceId')
|
|
68
|
+
if m.get('agentId') is not None:
|
|
69
|
+
self.agent_id = m.get('agentId')
|
|
70
|
+
return self
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for DeleteInstanceRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DeleteInstanceRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for DeleteInstanceRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, instance_id, delete_grafana=None):
|
|
16
|
+
"""
|
|
17
|
+
Initialize DeleteInstanceRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param instance_id: instance_id parameter
|
|
20
|
+
:type instance_id: str (required)
|
|
21
|
+
|
|
22
|
+
:param delete_grafana: delete_grafana parameter
|
|
23
|
+
:type delete_grafana: bool (optional)
|
|
24
|
+
"""
|
|
25
|
+
super().__init__()
|
|
26
|
+
self.instance_id = instance_id
|
|
27
|
+
self.delete_grafana = delete_grafana
|
|
28
|
+
|
|
29
|
+
def to_dict(self):
|
|
30
|
+
"""
|
|
31
|
+
Convert the request entity to a dictionary representation.
|
|
32
|
+
|
|
33
|
+
Nested model objects are recursively converted to dictionaries.
|
|
34
|
+
|
|
35
|
+
:return: Dictionary representation of the request
|
|
36
|
+
:rtype: dict
|
|
37
|
+
"""
|
|
38
|
+
_map = super().to_dict()
|
|
39
|
+
if _map is not None:
|
|
40
|
+
return _map
|
|
41
|
+
result = dict()
|
|
42
|
+
return result
|
|
43
|
+
|
|
44
|
+
def from_dict(self, m):
|
|
45
|
+
"""
|
|
46
|
+
Populate the request entity from a dictionary.
|
|
47
|
+
|
|
48
|
+
Nested dictionaries are recursively converted to model objects.
|
|
49
|
+
|
|
50
|
+
:param m: Dictionary containing request data
|
|
51
|
+
:type m: dict
|
|
52
|
+
|
|
53
|
+
:return: Self reference for method chaining
|
|
54
|
+
:rtype: DeleteInstanceRequest
|
|
55
|
+
|
|
56
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
57
|
+
:raises ValueError: If nested model conversion fails
|
|
58
|
+
"""
|
|
59
|
+
m = m or dict()
|
|
60
|
+
if m.get('instanceId') is not None:
|
|
61
|
+
self.instance_id = m.get('instanceId')
|
|
62
|
+
if m.get('deleteGrafana') is not None:
|
|
63
|
+
self.delete_grafana = m.get('deleteGrafana')
|
|
64
|
+
return self
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for DeleteNotificationPolicyRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DeleteNotificationPolicyRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for DeleteNotificationPolicyRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, notify_rule_id):
|
|
16
|
+
"""
|
|
17
|
+
Initialize DeleteNotificationPolicyRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param notify_rule_id: notify_rule_id parameter
|
|
20
|
+
:type notify_rule_id: str (required)
|
|
21
|
+
"""
|
|
22
|
+
super().__init__()
|
|
23
|
+
self.notify_rule_id = notify_rule_id
|
|
24
|
+
|
|
25
|
+
def to_dict(self):
|
|
26
|
+
"""
|
|
27
|
+
Convert the request entity to a dictionary representation.
|
|
28
|
+
|
|
29
|
+
Nested model objects are recursively converted to dictionaries.
|
|
30
|
+
|
|
31
|
+
:return: Dictionary representation of the request
|
|
32
|
+
:rtype: dict
|
|
33
|
+
"""
|
|
34
|
+
_map = super().to_dict()
|
|
35
|
+
if _map is not None:
|
|
36
|
+
return _map
|
|
37
|
+
result = dict()
|
|
38
|
+
return result
|
|
39
|
+
|
|
40
|
+
def from_dict(self, m):
|
|
41
|
+
"""
|
|
42
|
+
Populate the request entity from a dictionary.
|
|
43
|
+
|
|
44
|
+
Nested dictionaries are recursively converted to model objects.
|
|
45
|
+
|
|
46
|
+
:param m: Dictionary containing request data
|
|
47
|
+
:type m: dict
|
|
48
|
+
|
|
49
|
+
:return: Self reference for method chaining
|
|
50
|
+
:rtype: DeleteNotificationPolicyRequest
|
|
51
|
+
|
|
52
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
53
|
+
:raises ValueError: If nested model conversion fails
|
|
54
|
+
"""
|
|
55
|
+
m = m or dict()
|
|
56
|
+
if m.get('notifyRuleId') is not None:
|
|
57
|
+
self.notify_rule_id = m.get('notifyRuleId')
|
|
58
|
+
return self
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for DeletePodmonitorRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DeletePodmonitorRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for DeletePodmonitorRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, pod_monitor_name, instance_id, agent_id):
|
|
16
|
+
"""
|
|
17
|
+
Initialize DeletePodmonitorRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param pod_monitor_name: pod_monitor_name parameter
|
|
20
|
+
:type pod_monitor_name: str (required)
|
|
21
|
+
|
|
22
|
+
:param instance_id: instance_id parameter
|
|
23
|
+
:type instance_id: str (required)
|
|
24
|
+
|
|
25
|
+
:param agent_id: agent_id parameter
|
|
26
|
+
:type agent_id: str (required)
|
|
27
|
+
"""
|
|
28
|
+
super().__init__()
|
|
29
|
+
self.pod_monitor_name = pod_monitor_name
|
|
30
|
+
self.instance_id = instance_id
|
|
31
|
+
self.agent_id = agent_id
|
|
32
|
+
|
|
33
|
+
def to_dict(self):
|
|
34
|
+
"""
|
|
35
|
+
Convert the request entity to a dictionary representation.
|
|
36
|
+
|
|
37
|
+
Nested model objects are recursively converted to dictionaries.
|
|
38
|
+
|
|
39
|
+
:return: Dictionary representation of the request
|
|
40
|
+
:rtype: dict
|
|
41
|
+
"""
|
|
42
|
+
_map = super().to_dict()
|
|
43
|
+
if _map is not None:
|
|
44
|
+
return _map
|
|
45
|
+
result = dict()
|
|
46
|
+
return result
|
|
47
|
+
|
|
48
|
+
def from_dict(self, m):
|
|
49
|
+
"""
|
|
50
|
+
Populate the request entity from a dictionary.
|
|
51
|
+
|
|
52
|
+
Nested dictionaries are recursively converted to model objects.
|
|
53
|
+
|
|
54
|
+
:param m: Dictionary containing request data
|
|
55
|
+
:type m: dict
|
|
56
|
+
|
|
57
|
+
:return: Self reference for method chaining
|
|
58
|
+
:rtype: DeletePodmonitorRequest
|
|
59
|
+
|
|
60
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
61
|
+
:raises ValueError: If nested model conversion fails
|
|
62
|
+
"""
|
|
63
|
+
m = m or dict()
|
|
64
|
+
if m.get('podMonitorName') is not None:
|
|
65
|
+
self.pod_monitor_name = m.get('podMonitorName')
|
|
66
|
+
if m.get('instanceId') is not None:
|
|
67
|
+
self.instance_id = m.get('instanceId')
|
|
68
|
+
if m.get('agentId') is not None:
|
|
69
|
+
self.agent_id = m.get('agentId')
|
|
70
|
+
return self
|