huaweicloudsdkcae 3.1.71__py2.py3-none-any.whl → 3.1.73__py2.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.
Potentially problematic release.
This version of huaweicloudsdkcae might be problematic. Click here for more details.
- huaweicloudsdkcae/v1/__init__.py +10 -0
- huaweicloudsdkcae/v1/cae_async_client.py +207 -0
- huaweicloudsdkcae/v1/cae_client.py +207 -0
- huaweicloudsdkcae/v1/model/__init__.py +10 -0
- huaweicloudsdkcae/v1/model/configuration_data_spec.py +232 -58
- huaweicloudsdkcae/v1/model/create_monitor_system_request.py +168 -0
- huaweicloudsdkcae/v1/model/create_monitor_system_response.py +85 -0
- huaweicloudsdkcae/v1/model/monitor_system_kind_obj.py +87 -0
- huaweicloudsdkcae/v1/model/monitor_system_request_body.py +161 -0
- huaweicloudsdkcae/v1/model/monitor_system_request_body_spec.py +313 -0
- huaweicloudsdkcae/v1/model/show_monitor_system_request.py +143 -0
- huaweicloudsdkcae/v1/model/show_monitor_system_response.py +162 -0
- huaweicloudsdkcae/v1/model/show_monitor_system_response_body_spec.py +430 -0
- huaweicloudsdkcae/v1/model/update_monitor_system_request.py +196 -0
- huaweicloudsdkcae/v1/model/update_monitor_system_response.py +85 -0
- {huaweicloudsdkcae-3.1.71.dist-info → huaweicloudsdkcae-3.1.73.dist-info}/METADATA +2 -2
- {huaweicloudsdkcae-3.1.71.dist-info → huaweicloudsdkcae-3.1.73.dist-info}/RECORD +20 -10
- {huaweicloudsdkcae-3.1.71.dist-info → huaweicloudsdkcae-3.1.73.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcae-3.1.71.dist-info → huaweicloudsdkcae-3.1.73.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcae-3.1.71.dist-info → huaweicloudsdkcae-3.1.73.dist-info}/top_level.txt +0 -0
|
@@ -38,11 +38,17 @@ class ConfigurationDataSpec:
|
|
|
38
38
|
'post_start': 'ConfigurationDataSpecPostStart',
|
|
39
39
|
'pre_stop': 'ConfigurationDataSpecPreStop',
|
|
40
40
|
'log_paths': 'list[str]',
|
|
41
|
+
'instrumentation': 'str',
|
|
42
|
+
'apm_application': 'str',
|
|
43
|
+
'type': 'str',
|
|
44
|
+
'app_name': 'str',
|
|
45
|
+
'instance_name': 'str',
|
|
46
|
+
'env_name': 'str',
|
|
47
|
+
'image_pull_policy': 'str',
|
|
48
|
+
'version': 'str',
|
|
41
49
|
'access_key': 'str',
|
|
42
50
|
'access_value': 'str',
|
|
43
51
|
'business': 'str',
|
|
44
|
-
'image_pull_policy': 'str',
|
|
45
|
-
'version': 'str',
|
|
46
52
|
'path': 'str',
|
|
47
53
|
'port': 'str',
|
|
48
54
|
'metrics': 'list[str]'
|
|
@@ -70,17 +76,23 @@ class ConfigurationDataSpec:
|
|
|
70
76
|
'post_start': 'postStart',
|
|
71
77
|
'pre_stop': 'preStop',
|
|
72
78
|
'log_paths': 'log_paths',
|
|
79
|
+
'instrumentation': 'instrumentation',
|
|
80
|
+
'apm_application': 'apm_application',
|
|
81
|
+
'type': 'type',
|
|
82
|
+
'app_name': 'app_name',
|
|
83
|
+
'instance_name': 'instance_name',
|
|
84
|
+
'env_name': 'env_name',
|
|
85
|
+
'image_pull_policy': 'image_pull_policy',
|
|
86
|
+
'version': 'version',
|
|
73
87
|
'access_key': 'access_key',
|
|
74
88
|
'access_value': 'access_value',
|
|
75
89
|
'business': 'business',
|
|
76
|
-
'image_pull_policy': 'image_pull_policy',
|
|
77
|
-
'version': 'version',
|
|
78
90
|
'path': 'path',
|
|
79
91
|
'port': 'port',
|
|
80
92
|
'metrics': 'metrics'
|
|
81
93
|
}
|
|
82
94
|
|
|
83
|
-
def __init__(self, rds_id=None, rds_db_name=None, rds_address=None, rds_username=None, rds_password=None, rds_port=None, config_center_addr=None, service_center_addr=None, cse_id=None, envs=None, ip=None, items=None, max_replica_count=None, triggers=None, volumes=None, liveness_probe=None, startup_probe=None, readiness_probe=None, post_start=None, pre_stop=None, log_paths=None,
|
|
95
|
+
def __init__(self, rds_id=None, rds_db_name=None, rds_address=None, rds_username=None, rds_password=None, rds_port=None, config_center_addr=None, service_center_addr=None, cse_id=None, envs=None, ip=None, items=None, max_replica_count=None, triggers=None, volumes=None, liveness_probe=None, startup_probe=None, readiness_probe=None, post_start=None, pre_stop=None, log_paths=None, instrumentation=None, apm_application=None, type=None, app_name=None, instance_name=None, env_name=None, image_pull_policy=None, version=None, access_key=None, access_value=None, business=None, path=None, port=None, metrics=None):
|
|
84
96
|
"""ConfigurationDataSpec
|
|
85
97
|
|
|
86
98
|
The model defined in huaweicloud sdk
|
|
@@ -127,16 +139,28 @@ class ConfigurationDataSpec:
|
|
|
127
139
|
:type pre_stop: :class:`huaweicloudsdkcae.v1.ConfigurationDataSpecPreStop`
|
|
128
140
|
:param log_paths: - type为\"log\"时,配置此参数。 - 参数含义:自定义日志路径数组。
|
|
129
141
|
:type log_paths: list[str]
|
|
130
|
-
:param
|
|
142
|
+
:param instrumentation: - type为\"apm2\"时,配置此参数。 - 参数含义:探针注入方式。
|
|
143
|
+
:type instrumentation: str
|
|
144
|
+
:param apm_application: - 参数含义:type为\"apm2\"时,性能管理配置应用。
|
|
145
|
+
:type apm_application: str
|
|
146
|
+
:param type: - 参数含义:type为\"apm2\"时,监控系统类别,包括apm2和opentelemetry。
|
|
147
|
+
:type type: str
|
|
148
|
+
:param app_name: - 参数含义:type为\"apm2\"时,apm2组件。
|
|
149
|
+
:type app_name: str
|
|
150
|
+
:param instance_name: - 参数含义:type为\"apm2\"时,apm2实例。
|
|
151
|
+
:type instance_name: str
|
|
152
|
+
:param env_name: - 参数含义:type为\"apm2\"时,apm2环境。
|
|
153
|
+
:type env_name: str
|
|
154
|
+
:param image_pull_policy: - 参数含义:已废弃,迁移到监控系统,type为\"apm2\"时,性能管理配置升级策略。 - Always,重启自动升级:每次都尝试重新下载镜像。 - IfNotPresent,手动升级: 如果本地有该镜像,则继续使用本地镜像,不下载镜像。
|
|
155
|
+
:type image_pull_policy: str
|
|
156
|
+
:param version: - type为\"apm2\"时,配置此参数。 - 参数含义:已废弃,迁移到监控系统,type为\"apm2\"时,性能管理配置探针版本。
|
|
157
|
+
:type version: str
|
|
158
|
+
:param access_key: - 参数含义:已废弃,迁移到监控系统,type为\"apm2\"时,性能管理配置访问密钥Key。
|
|
131
159
|
:type access_key: str
|
|
132
|
-
:param access_value: - type为\"apm2\"
|
|
160
|
+
:param access_value: - 参数含义:已废弃,迁移到监控系统,type为\"apm2\"时,性能管理配置访问密钥value。
|
|
133
161
|
:type access_value: str
|
|
134
|
-
:param business: - type为\"apm2\"
|
|
162
|
+
:param business: - 参数含义:已废弃,type为\"apm2\"时,性能管理配置应用,同apm_application。
|
|
135
163
|
:type business: str
|
|
136
|
-
:param image_pull_policy: - type为\"apm2\"时,配置此参数。 - 参数含义:性能管理配置升级策略。 - 重启自动升级:每次都尝试重新下载镜像。 - 手动升级: 如果本地有该镜像,则继续使用本地镜像,不下载镜像。
|
|
137
|
-
:type image_pull_policy: str
|
|
138
|
-
:param version: - type为\"apm2\"时,配置此参数。 - 参数含义:性能管理配置探针版本。
|
|
139
|
-
:type version: str
|
|
140
164
|
:param path: - type为\"customMetric\"时,配置此参数。 - 参数含义:自定义监控指标配置采集路径。
|
|
141
165
|
:type path: str
|
|
142
166
|
:param port: - type为\"customMetric\"时,配置此参数。 - 参数含义:自定义监控指标配置采集端口。
|
|
@@ -168,11 +192,17 @@ class ConfigurationDataSpec:
|
|
|
168
192
|
self._post_start = None
|
|
169
193
|
self._pre_stop = None
|
|
170
194
|
self._log_paths = None
|
|
195
|
+
self._instrumentation = None
|
|
196
|
+
self._apm_application = None
|
|
197
|
+
self._type = None
|
|
198
|
+
self._app_name = None
|
|
199
|
+
self._instance_name = None
|
|
200
|
+
self._env_name = None
|
|
201
|
+
self._image_pull_policy = None
|
|
202
|
+
self._version = None
|
|
171
203
|
self._access_key = None
|
|
172
204
|
self._access_value = None
|
|
173
205
|
self._business = None
|
|
174
|
-
self._image_pull_policy = None
|
|
175
|
-
self._version = None
|
|
176
206
|
self._path = None
|
|
177
207
|
self._port = None
|
|
178
208
|
self._metrics = None
|
|
@@ -220,16 +250,28 @@ class ConfigurationDataSpec:
|
|
|
220
250
|
self.pre_stop = pre_stop
|
|
221
251
|
if log_paths is not None:
|
|
222
252
|
self.log_paths = log_paths
|
|
253
|
+
if instrumentation is not None:
|
|
254
|
+
self.instrumentation = instrumentation
|
|
255
|
+
if apm_application is not None:
|
|
256
|
+
self.apm_application = apm_application
|
|
257
|
+
if type is not None:
|
|
258
|
+
self.type = type
|
|
259
|
+
if app_name is not None:
|
|
260
|
+
self.app_name = app_name
|
|
261
|
+
if instance_name is not None:
|
|
262
|
+
self.instance_name = instance_name
|
|
263
|
+
if env_name is not None:
|
|
264
|
+
self.env_name = env_name
|
|
265
|
+
if image_pull_policy is not None:
|
|
266
|
+
self.image_pull_policy = image_pull_policy
|
|
267
|
+
if version is not None:
|
|
268
|
+
self.version = version
|
|
223
269
|
if access_key is not None:
|
|
224
270
|
self.access_key = access_key
|
|
225
271
|
if access_value is not None:
|
|
226
272
|
self.access_value = access_value
|
|
227
273
|
if business is not None:
|
|
228
274
|
self.business = business
|
|
229
|
-
if image_pull_policy is not None:
|
|
230
|
-
self.image_pull_policy = image_pull_policy
|
|
231
|
-
if version is not None:
|
|
232
|
-
self.version = version
|
|
233
275
|
if path is not None:
|
|
234
276
|
self.path = path
|
|
235
277
|
if port is not None:
|
|
@@ -680,76 +722,142 @@ class ConfigurationDataSpec:
|
|
|
680
722
|
self._log_paths = log_paths
|
|
681
723
|
|
|
682
724
|
@property
|
|
683
|
-
def
|
|
684
|
-
"""Gets the
|
|
725
|
+
def instrumentation(self):
|
|
726
|
+
"""Gets the instrumentation of this ConfigurationDataSpec.
|
|
685
727
|
|
|
686
|
-
- type为\"apm2\"时,配置此参数。 -
|
|
728
|
+
- type为\"apm2\"时,配置此参数。 - 参数含义:探针注入方式。
|
|
687
729
|
|
|
688
|
-
:return: The
|
|
730
|
+
:return: The instrumentation of this ConfigurationDataSpec.
|
|
689
731
|
:rtype: str
|
|
690
732
|
"""
|
|
691
|
-
return self.
|
|
733
|
+
return self._instrumentation
|
|
692
734
|
|
|
693
|
-
@
|
|
694
|
-
def
|
|
695
|
-
"""Sets the
|
|
735
|
+
@instrumentation.setter
|
|
736
|
+
def instrumentation(self, instrumentation):
|
|
737
|
+
"""Sets the instrumentation of this ConfigurationDataSpec.
|
|
696
738
|
|
|
697
|
-
- type为\"apm2\"时,配置此参数。 -
|
|
739
|
+
- type为\"apm2\"时,配置此参数。 - 参数含义:探针注入方式。
|
|
698
740
|
|
|
699
|
-
:param
|
|
700
|
-
:type
|
|
741
|
+
:param instrumentation: The instrumentation of this ConfigurationDataSpec.
|
|
742
|
+
:type instrumentation: str
|
|
701
743
|
"""
|
|
702
|
-
self.
|
|
744
|
+
self._instrumentation = instrumentation
|
|
703
745
|
|
|
704
746
|
@property
|
|
705
|
-
def
|
|
706
|
-
"""Gets the
|
|
747
|
+
def apm_application(self):
|
|
748
|
+
"""Gets the apm_application of this ConfigurationDataSpec.
|
|
707
749
|
|
|
708
|
-
- type为\"apm2\"
|
|
750
|
+
- 参数含义:type为\"apm2\"时,性能管理配置应用。
|
|
709
751
|
|
|
710
|
-
:return: The
|
|
752
|
+
:return: The apm_application of this ConfigurationDataSpec.
|
|
711
753
|
:rtype: str
|
|
712
754
|
"""
|
|
713
|
-
return self.
|
|
755
|
+
return self._apm_application
|
|
714
756
|
|
|
715
|
-
@
|
|
716
|
-
def
|
|
717
|
-
"""Sets the
|
|
757
|
+
@apm_application.setter
|
|
758
|
+
def apm_application(self, apm_application):
|
|
759
|
+
"""Sets the apm_application of this ConfigurationDataSpec.
|
|
718
760
|
|
|
719
|
-
- type为\"apm2\"
|
|
761
|
+
- 参数含义:type为\"apm2\"时,性能管理配置应用。
|
|
720
762
|
|
|
721
|
-
:param
|
|
722
|
-
:type
|
|
763
|
+
:param apm_application: The apm_application of this ConfigurationDataSpec.
|
|
764
|
+
:type apm_application: str
|
|
723
765
|
"""
|
|
724
|
-
self.
|
|
766
|
+
self._apm_application = apm_application
|
|
725
767
|
|
|
726
768
|
@property
|
|
727
|
-
def
|
|
728
|
-
"""Gets the
|
|
769
|
+
def type(self):
|
|
770
|
+
"""Gets the type of this ConfigurationDataSpec.
|
|
729
771
|
|
|
730
|
-
- type为\"apm2\"
|
|
772
|
+
- 参数含义:type为\"apm2\"时,监控系统类别,包括apm2和opentelemetry。
|
|
731
773
|
|
|
732
|
-
:return: The
|
|
774
|
+
:return: The type of this ConfigurationDataSpec.
|
|
733
775
|
:rtype: str
|
|
734
776
|
"""
|
|
735
|
-
return self.
|
|
777
|
+
return self._type
|
|
736
778
|
|
|
737
|
-
@
|
|
738
|
-
def
|
|
739
|
-
"""Sets the
|
|
779
|
+
@type.setter
|
|
780
|
+
def type(self, type):
|
|
781
|
+
"""Sets the type of this ConfigurationDataSpec.
|
|
740
782
|
|
|
741
|
-
- type为\"apm2\"
|
|
783
|
+
- 参数含义:type为\"apm2\"时,监控系统类别,包括apm2和opentelemetry。
|
|
742
784
|
|
|
743
|
-
:param
|
|
744
|
-
:type
|
|
785
|
+
:param type: The type of this ConfigurationDataSpec.
|
|
786
|
+
:type type: str
|
|
745
787
|
"""
|
|
746
|
-
self.
|
|
788
|
+
self._type = type
|
|
789
|
+
|
|
790
|
+
@property
|
|
791
|
+
def app_name(self):
|
|
792
|
+
"""Gets the app_name of this ConfigurationDataSpec.
|
|
793
|
+
|
|
794
|
+
- 参数含义:type为\"apm2\"时,apm2组件。
|
|
795
|
+
|
|
796
|
+
:return: The app_name of this ConfigurationDataSpec.
|
|
797
|
+
:rtype: str
|
|
798
|
+
"""
|
|
799
|
+
return self._app_name
|
|
800
|
+
|
|
801
|
+
@app_name.setter
|
|
802
|
+
def app_name(self, app_name):
|
|
803
|
+
"""Sets the app_name of this ConfigurationDataSpec.
|
|
804
|
+
|
|
805
|
+
- 参数含义:type为\"apm2\"时,apm2组件。
|
|
806
|
+
|
|
807
|
+
:param app_name: The app_name of this ConfigurationDataSpec.
|
|
808
|
+
:type app_name: str
|
|
809
|
+
"""
|
|
810
|
+
self._app_name = app_name
|
|
811
|
+
|
|
812
|
+
@property
|
|
813
|
+
def instance_name(self):
|
|
814
|
+
"""Gets the instance_name of this ConfigurationDataSpec.
|
|
815
|
+
|
|
816
|
+
- 参数含义:type为\"apm2\"时,apm2实例。
|
|
817
|
+
|
|
818
|
+
:return: The instance_name of this ConfigurationDataSpec.
|
|
819
|
+
:rtype: str
|
|
820
|
+
"""
|
|
821
|
+
return self._instance_name
|
|
822
|
+
|
|
823
|
+
@instance_name.setter
|
|
824
|
+
def instance_name(self, instance_name):
|
|
825
|
+
"""Sets the instance_name of this ConfigurationDataSpec.
|
|
826
|
+
|
|
827
|
+
- 参数含义:type为\"apm2\"时,apm2实例。
|
|
828
|
+
|
|
829
|
+
:param instance_name: The instance_name of this ConfigurationDataSpec.
|
|
830
|
+
:type instance_name: str
|
|
831
|
+
"""
|
|
832
|
+
self._instance_name = instance_name
|
|
833
|
+
|
|
834
|
+
@property
|
|
835
|
+
def env_name(self):
|
|
836
|
+
"""Gets the env_name of this ConfigurationDataSpec.
|
|
837
|
+
|
|
838
|
+
- 参数含义:type为\"apm2\"时,apm2环境。
|
|
839
|
+
|
|
840
|
+
:return: The env_name of this ConfigurationDataSpec.
|
|
841
|
+
:rtype: str
|
|
842
|
+
"""
|
|
843
|
+
return self._env_name
|
|
844
|
+
|
|
845
|
+
@env_name.setter
|
|
846
|
+
def env_name(self, env_name):
|
|
847
|
+
"""Sets the env_name of this ConfigurationDataSpec.
|
|
848
|
+
|
|
849
|
+
- 参数含义:type为\"apm2\"时,apm2环境。
|
|
850
|
+
|
|
851
|
+
:param env_name: The env_name of this ConfigurationDataSpec.
|
|
852
|
+
:type env_name: str
|
|
853
|
+
"""
|
|
854
|
+
self._env_name = env_name
|
|
747
855
|
|
|
748
856
|
@property
|
|
749
857
|
def image_pull_policy(self):
|
|
750
858
|
"""Gets the image_pull_policy of this ConfigurationDataSpec.
|
|
751
859
|
|
|
752
|
-
- type为\"apm2\"
|
|
860
|
+
- 参数含义:已废弃,迁移到监控系统,type为\"apm2\"时,性能管理配置升级策略。 - Always,重启自动升级:每次都尝试重新下载镜像。 - IfNotPresent,手动升级: 如果本地有该镜像,则继续使用本地镜像,不下载镜像。
|
|
753
861
|
|
|
754
862
|
:return: The image_pull_policy of this ConfigurationDataSpec.
|
|
755
863
|
:rtype: str
|
|
@@ -760,7 +868,7 @@ class ConfigurationDataSpec:
|
|
|
760
868
|
def image_pull_policy(self, image_pull_policy):
|
|
761
869
|
"""Sets the image_pull_policy of this ConfigurationDataSpec.
|
|
762
870
|
|
|
763
|
-
- type为\"apm2\"
|
|
871
|
+
- 参数含义:已废弃,迁移到监控系统,type为\"apm2\"时,性能管理配置升级策略。 - Always,重启自动升级:每次都尝试重新下载镜像。 - IfNotPresent,手动升级: 如果本地有该镜像,则继续使用本地镜像,不下载镜像。
|
|
764
872
|
|
|
765
873
|
:param image_pull_policy: The image_pull_policy of this ConfigurationDataSpec.
|
|
766
874
|
:type image_pull_policy: str
|
|
@@ -771,7 +879,7 @@ class ConfigurationDataSpec:
|
|
|
771
879
|
def version(self):
|
|
772
880
|
"""Gets the version of this ConfigurationDataSpec.
|
|
773
881
|
|
|
774
|
-
- type为\"apm2\"时,配置此参数。 -
|
|
882
|
+
- type为\"apm2\"时,配置此参数。 - 参数含义:已废弃,迁移到监控系统,type为\"apm2\"时,性能管理配置探针版本。
|
|
775
883
|
|
|
776
884
|
:return: The version of this ConfigurationDataSpec.
|
|
777
885
|
:rtype: str
|
|
@@ -782,13 +890,79 @@ class ConfigurationDataSpec:
|
|
|
782
890
|
def version(self, version):
|
|
783
891
|
"""Sets the version of this ConfigurationDataSpec.
|
|
784
892
|
|
|
785
|
-
- type为\"apm2\"时,配置此参数。 -
|
|
893
|
+
- type为\"apm2\"时,配置此参数。 - 参数含义:已废弃,迁移到监控系统,type为\"apm2\"时,性能管理配置探针版本。
|
|
786
894
|
|
|
787
895
|
:param version: The version of this ConfigurationDataSpec.
|
|
788
896
|
:type version: str
|
|
789
897
|
"""
|
|
790
898
|
self._version = version
|
|
791
899
|
|
|
900
|
+
@property
|
|
901
|
+
def access_key(self):
|
|
902
|
+
"""Gets the access_key of this ConfigurationDataSpec.
|
|
903
|
+
|
|
904
|
+
- 参数含义:已废弃,迁移到监控系统,type为\"apm2\"时,性能管理配置访问密钥Key。
|
|
905
|
+
|
|
906
|
+
:return: The access_key of this ConfigurationDataSpec.
|
|
907
|
+
:rtype: str
|
|
908
|
+
"""
|
|
909
|
+
return self._access_key
|
|
910
|
+
|
|
911
|
+
@access_key.setter
|
|
912
|
+
def access_key(self, access_key):
|
|
913
|
+
"""Sets the access_key of this ConfigurationDataSpec.
|
|
914
|
+
|
|
915
|
+
- 参数含义:已废弃,迁移到监控系统,type为\"apm2\"时,性能管理配置访问密钥Key。
|
|
916
|
+
|
|
917
|
+
:param access_key: The access_key of this ConfigurationDataSpec.
|
|
918
|
+
:type access_key: str
|
|
919
|
+
"""
|
|
920
|
+
self._access_key = access_key
|
|
921
|
+
|
|
922
|
+
@property
|
|
923
|
+
def access_value(self):
|
|
924
|
+
"""Gets the access_value of this ConfigurationDataSpec.
|
|
925
|
+
|
|
926
|
+
- 参数含义:已废弃,迁移到监控系统,type为\"apm2\"时,性能管理配置访问密钥value。
|
|
927
|
+
|
|
928
|
+
:return: The access_value of this ConfigurationDataSpec.
|
|
929
|
+
:rtype: str
|
|
930
|
+
"""
|
|
931
|
+
return self._access_value
|
|
932
|
+
|
|
933
|
+
@access_value.setter
|
|
934
|
+
def access_value(self, access_value):
|
|
935
|
+
"""Sets the access_value of this ConfigurationDataSpec.
|
|
936
|
+
|
|
937
|
+
- 参数含义:已废弃,迁移到监控系统,type为\"apm2\"时,性能管理配置访问密钥value。
|
|
938
|
+
|
|
939
|
+
:param access_value: The access_value of this ConfigurationDataSpec.
|
|
940
|
+
:type access_value: str
|
|
941
|
+
"""
|
|
942
|
+
self._access_value = access_value
|
|
943
|
+
|
|
944
|
+
@property
|
|
945
|
+
def business(self):
|
|
946
|
+
"""Gets the business of this ConfigurationDataSpec.
|
|
947
|
+
|
|
948
|
+
- 参数含义:已废弃,type为\"apm2\"时,性能管理配置应用,同apm_application。
|
|
949
|
+
|
|
950
|
+
:return: The business of this ConfigurationDataSpec.
|
|
951
|
+
:rtype: str
|
|
952
|
+
"""
|
|
953
|
+
return self._business
|
|
954
|
+
|
|
955
|
+
@business.setter
|
|
956
|
+
def business(self, business):
|
|
957
|
+
"""Sets the business of this ConfigurationDataSpec.
|
|
958
|
+
|
|
959
|
+
- 参数含义:已废弃,type为\"apm2\"时,性能管理配置应用,同apm_application。
|
|
960
|
+
|
|
961
|
+
:param business: The business of this ConfigurationDataSpec.
|
|
962
|
+
:type business: str
|
|
963
|
+
"""
|
|
964
|
+
self._business = business
|
|
965
|
+
|
|
792
966
|
@property
|
|
793
967
|
def path(self):
|
|
794
968
|
"""Gets the path of this ConfigurationDataSpec.
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CreateMonitorSystemRequest:
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
Attributes:
|
|
12
|
+
openapi_types (dict): The key is attribute name
|
|
13
|
+
and the value is attribute type.
|
|
14
|
+
attribute_map (dict): The key is attribute name
|
|
15
|
+
and the value is json key in definition.
|
|
16
|
+
"""
|
|
17
|
+
sensitive_list = []
|
|
18
|
+
|
|
19
|
+
openapi_types = {
|
|
20
|
+
'x_enterprise_project_id': 'str',
|
|
21
|
+
'x_environment_id': 'str',
|
|
22
|
+
'body': 'MonitorSystemRequestBody'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
attribute_map = {
|
|
26
|
+
'x_enterprise_project_id': 'X-Enterprise-Project-ID',
|
|
27
|
+
'x_environment_id': 'X-Environment-ID',
|
|
28
|
+
'body': 'body'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
def __init__(self, x_enterprise_project_id=None, x_environment_id=None, body=None):
|
|
32
|
+
"""CreateMonitorSystemRequest
|
|
33
|
+
|
|
34
|
+
The model defined in huaweicloud sdk
|
|
35
|
+
|
|
36
|
+
:param x_enterprise_project_id: 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
37
|
+
:type x_enterprise_project_id: str
|
|
38
|
+
:param x_environment_id: 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
39
|
+
:type x_environment_id: str
|
|
40
|
+
:param body: Body of the CreateMonitorSystemRequest
|
|
41
|
+
:type body: :class:`huaweicloudsdkcae.v1.MonitorSystemRequestBody`
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
self._x_enterprise_project_id = None
|
|
47
|
+
self._x_environment_id = None
|
|
48
|
+
self._body = None
|
|
49
|
+
self.discriminator = None
|
|
50
|
+
|
|
51
|
+
if x_enterprise_project_id is not None:
|
|
52
|
+
self.x_enterprise_project_id = x_enterprise_project_id
|
|
53
|
+
self.x_environment_id = x_environment_id
|
|
54
|
+
if body is not None:
|
|
55
|
+
self.body = body
|
|
56
|
+
|
|
57
|
+
@property
|
|
58
|
+
def x_enterprise_project_id(self):
|
|
59
|
+
"""Gets the x_enterprise_project_id of this CreateMonitorSystemRequest.
|
|
60
|
+
|
|
61
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
62
|
+
|
|
63
|
+
:return: The x_enterprise_project_id of this CreateMonitorSystemRequest.
|
|
64
|
+
:rtype: str
|
|
65
|
+
"""
|
|
66
|
+
return self._x_enterprise_project_id
|
|
67
|
+
|
|
68
|
+
@x_enterprise_project_id.setter
|
|
69
|
+
def x_enterprise_project_id(self, x_enterprise_project_id):
|
|
70
|
+
"""Sets the x_enterprise_project_id of this CreateMonitorSystemRequest.
|
|
71
|
+
|
|
72
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
73
|
+
|
|
74
|
+
:param x_enterprise_project_id: The x_enterprise_project_id of this CreateMonitorSystemRequest.
|
|
75
|
+
:type x_enterprise_project_id: str
|
|
76
|
+
"""
|
|
77
|
+
self._x_enterprise_project_id = x_enterprise_project_id
|
|
78
|
+
|
|
79
|
+
@property
|
|
80
|
+
def x_environment_id(self):
|
|
81
|
+
"""Gets the x_environment_id of this CreateMonitorSystemRequest.
|
|
82
|
+
|
|
83
|
+
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
84
|
+
|
|
85
|
+
:return: The x_environment_id of this CreateMonitorSystemRequest.
|
|
86
|
+
:rtype: str
|
|
87
|
+
"""
|
|
88
|
+
return self._x_environment_id
|
|
89
|
+
|
|
90
|
+
@x_environment_id.setter
|
|
91
|
+
def x_environment_id(self, x_environment_id):
|
|
92
|
+
"""Sets the x_environment_id of this CreateMonitorSystemRequest.
|
|
93
|
+
|
|
94
|
+
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
95
|
+
|
|
96
|
+
:param x_environment_id: The x_environment_id of this CreateMonitorSystemRequest.
|
|
97
|
+
:type x_environment_id: str
|
|
98
|
+
"""
|
|
99
|
+
self._x_environment_id = x_environment_id
|
|
100
|
+
|
|
101
|
+
@property
|
|
102
|
+
def body(self):
|
|
103
|
+
"""Gets the body of this CreateMonitorSystemRequest.
|
|
104
|
+
|
|
105
|
+
:return: The body of this CreateMonitorSystemRequest.
|
|
106
|
+
:rtype: :class:`huaweicloudsdkcae.v1.MonitorSystemRequestBody`
|
|
107
|
+
"""
|
|
108
|
+
return self._body
|
|
109
|
+
|
|
110
|
+
@body.setter
|
|
111
|
+
def body(self, body):
|
|
112
|
+
"""Sets the body of this CreateMonitorSystemRequest.
|
|
113
|
+
|
|
114
|
+
:param body: The body of this CreateMonitorSystemRequest.
|
|
115
|
+
:type body: :class:`huaweicloudsdkcae.v1.MonitorSystemRequestBody`
|
|
116
|
+
"""
|
|
117
|
+
self._body = body
|
|
118
|
+
|
|
119
|
+
def to_dict(self):
|
|
120
|
+
"""Returns the model properties as a dict"""
|
|
121
|
+
result = {}
|
|
122
|
+
|
|
123
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
124
|
+
value = getattr(self, attr)
|
|
125
|
+
if isinstance(value, list):
|
|
126
|
+
result[attr] = list(map(
|
|
127
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
128
|
+
value
|
|
129
|
+
))
|
|
130
|
+
elif hasattr(value, "to_dict"):
|
|
131
|
+
result[attr] = value.to_dict()
|
|
132
|
+
elif isinstance(value, dict):
|
|
133
|
+
result[attr] = dict(map(
|
|
134
|
+
lambda item: (item[0], item[1].to_dict())
|
|
135
|
+
if hasattr(item[1], "to_dict") else item,
|
|
136
|
+
value.items()
|
|
137
|
+
))
|
|
138
|
+
else:
|
|
139
|
+
if attr in self.sensitive_list:
|
|
140
|
+
result[attr] = "****"
|
|
141
|
+
else:
|
|
142
|
+
result[attr] = value
|
|
143
|
+
|
|
144
|
+
return result
|
|
145
|
+
|
|
146
|
+
def to_str(self):
|
|
147
|
+
"""Returns the string representation of the model"""
|
|
148
|
+
import simplejson as json
|
|
149
|
+
if six.PY2:
|
|
150
|
+
import sys
|
|
151
|
+
reload(sys)
|
|
152
|
+
sys.setdefaultencoding("utf-8")
|
|
153
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
154
|
+
|
|
155
|
+
def __repr__(self):
|
|
156
|
+
"""For `print`"""
|
|
157
|
+
return self.to_str()
|
|
158
|
+
|
|
159
|
+
def __eq__(self, other):
|
|
160
|
+
"""Returns true if both objects are equal"""
|
|
161
|
+
if not isinstance(other, CreateMonitorSystemRequest):
|
|
162
|
+
return False
|
|
163
|
+
|
|
164
|
+
return self.__dict__ == other.__dict__
|
|
165
|
+
|
|
166
|
+
def __ne__(self, other):
|
|
167
|
+
"""Returns true if both objects are not equal"""
|
|
168
|
+
return not self == other
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class CreateMonitorSystemResponse(SdkResponse):
|
|
10
|
+
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
openapi_types (dict): The key is attribute name
|
|
14
|
+
and the value is attribute type.
|
|
15
|
+
attribute_map (dict): The key is attribute name
|
|
16
|
+
and the value is json key in definition.
|
|
17
|
+
"""
|
|
18
|
+
sensitive_list = []
|
|
19
|
+
|
|
20
|
+
openapi_types = {
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
def __init__(self):
|
|
27
|
+
"""CreateMonitorSystemResponse
|
|
28
|
+
|
|
29
|
+
The model defined in huaweicloud sdk
|
|
30
|
+
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
super(CreateMonitorSystemResponse, self).__init__()
|
|
34
|
+
self.discriminator = None
|
|
35
|
+
|
|
36
|
+
def to_dict(self):
|
|
37
|
+
"""Returns the model properties as a dict"""
|
|
38
|
+
result = {}
|
|
39
|
+
|
|
40
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
41
|
+
value = getattr(self, attr)
|
|
42
|
+
if isinstance(value, list):
|
|
43
|
+
result[attr] = list(map(
|
|
44
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
45
|
+
value
|
|
46
|
+
))
|
|
47
|
+
elif hasattr(value, "to_dict"):
|
|
48
|
+
result[attr] = value.to_dict()
|
|
49
|
+
elif isinstance(value, dict):
|
|
50
|
+
result[attr] = dict(map(
|
|
51
|
+
lambda item: (item[0], item[1].to_dict())
|
|
52
|
+
if hasattr(item[1], "to_dict") else item,
|
|
53
|
+
value.items()
|
|
54
|
+
))
|
|
55
|
+
else:
|
|
56
|
+
if attr in self.sensitive_list:
|
|
57
|
+
result[attr] = "****"
|
|
58
|
+
else:
|
|
59
|
+
result[attr] = value
|
|
60
|
+
|
|
61
|
+
return result
|
|
62
|
+
|
|
63
|
+
def to_str(self):
|
|
64
|
+
"""Returns the string representation of the model"""
|
|
65
|
+
import simplejson as json
|
|
66
|
+
if six.PY2:
|
|
67
|
+
import sys
|
|
68
|
+
reload(sys)
|
|
69
|
+
sys.setdefaultencoding("utf-8")
|
|
70
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
71
|
+
|
|
72
|
+
def __repr__(self):
|
|
73
|
+
"""For `print`"""
|
|
74
|
+
return self.to_str()
|
|
75
|
+
|
|
76
|
+
def __eq__(self, other):
|
|
77
|
+
"""Returns true if both objects are equal"""
|
|
78
|
+
if not isinstance(other, CreateMonitorSystemResponse):
|
|
79
|
+
return False
|
|
80
|
+
|
|
81
|
+
return self.__dict__ == other.__dict__
|
|
82
|
+
|
|
83
|
+
def __ne__(self, other):
|
|
84
|
+
"""Returns true if both objects are not equal"""
|
|
85
|
+
return not self == other
|