diff --git a/docs/aom/api-ref/ALL_META.TXT.json b/docs/aom/api-ref/ALL_META.TXT.json index 68113a8d..f4ee5a6c 100644 --- a/docs/aom/api-ref/ALL_META.TXT.json +++ b/docs/aom/api-ref/ALL_META.TXT.json @@ -1,181 +1,688 @@ [ { - "uri":"aom_04_0000.html", + "dockw":"API Reference" + }, + { + "uri":"en-us_topic_0000001409488734.html", + "node_id":"en-us_topic_0000001409488734.xml", "product_code":"aom", "code":"1", "des":"Public cloud APIs comply with the RESTful API design principles. REST-based web services are organized into resources. Each resource is identified by one or more Uniform ", "doc_type":"api", "kw":"API Usage Guidelines,API Reference", + "search_title":"", + "metedata":[ + { + "IsBot":"Yes", + "prodname":"aom", + "documenttype":"api", + "opensource":"true", + "IsMulti":"Yes" + } + ], "title":"API Usage Guidelines", "githuburl":"" }, { - "uri":"aom_04_1010.html", + "uri":"aom_04_0010.html", + "node_id":"aom_04_0010.xml", "product_code":"aom", "code":"2", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", - "kw":"APIs", - "title":"APIs", + "kw":"API", + "search_title":"", + "metedata":[ + { + "IsBot":"Yes", + "prodname":"aom", + "documenttype":"api", + "opensource":"true", + "IsMulti":"Yes" + } + ], + "title":"API", "githuburl":"" }, { - "uri":"aom_04_1045.html", - "product_code":"aom", + "uri":"aom_04_0045.html", + "node_id":"aom_04_0045.xml", + "product_code":"", "code":"3", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", - "kw":"Monitoring APIs", - "title":"Monitoring APIs", + "kw":"Monitoring", + "search_title":"", + "metedata":[ + { + "documenttype":"api" + } + ], + "title":"Monitoring", "githuburl":"" }, { - "uri":"aom_04_1011.html", - "product_code":"aom", + "uri":"ListSeries.html", + "node_id":"listseries.xml", + "product_code":"", "code":"4", - "des":"This API is used to query the metrics that can be monitored in the system. You can specify the namespace, metric name, dimension, resource ID (format: resType_resId), sta", + "des":"This API is used to query the time series objects that can be monitored in the system. You can specify a namespace, name, dimension, and resource ID (format: resType_resI", "doc_type":"api", - "kw":"Querying Metrics,Monitoring APIs,API Reference", + "kw":"Querying Time Series Objects,Monitoring,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListSeries" + } + ], + "title":"Querying Time Series Objects", + "githuburl":"" + }, + { + "uri":"ListSample.html", + "node_id":"listsample.xml", + "product_code":"", + "code":"5", + "des":"This API is used to query time series data within a specified time period. You can specify a dimension or period to query.POST /v2/{project_id}/samplesStatus code: 200Sta", + "doc_type":"api", + "kw":"Querying Time Series Data,Monitoring,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListSample" + } + ], + "title":"Querying Time Series Data", + "githuburl":"" + }, + { + "uri":"ListMetricItems.html", + "node_id":"listmetricitems.xml", + "product_code":"", + "code":"6", + "des":"This API is used to query the metrics that can be monitored in the system. You can query specific metrics by specifying a namespace, metric name, dimension, and resource ", + "doc_type":"api", + "kw":"Querying Metrics,Monitoring,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListMetricItems" + } + ], "title":"Querying Metrics", "githuburl":"" }, { - "uri":"aom_04_1012.html", - "product_code":"aom", - "code":"5", - "des":"This API is used to query monitoring data of metrics within a specified time period. You can specify a dimension or period to query data.POST /v2/{project_id}/ams/metricd", + "uri":"ShowMetricsData.html", + "node_id":"showmetricsdata.xml", + "product_code":"", + "code":"7", + "des":"This API is used to query monitoring data of metrics within a specified time period. You can specify a dimension or period to query.POST /v1/{project_id}/ams/metricdataSt", "doc_type":"api", - "kw":"Querying Monitoring Data,Monitoring APIs,API Reference", + "kw":"Querying Monitoring Data,Monitoring,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ShowMetricsData" + } + ], "title":"Querying Monitoring Data", "githuburl":"" }, { - "uri":"aom_04_1013.html", - "product_code":"aom", - "code":"6", - "des":"This API is used to add one or more monitoring data records to a server.POST /v2/{project_id}/ams/report/metricdataTable 1 describes the parameters.Request parametersTabl", + "uri":"aom_04_0013.html", + "node_id":"aom_04_0013.xml", + "product_code":"", + "code":"8", + "des":"This API is used to add one or more monitoring data records to a server.POST /v1/{project_id}/ams/report/metricdataStatus code: 200Add a piece of monitoring data to the s", "doc_type":"api", - "kw":"Adding Monitoring Data,Monitoring APIs,API Reference", + "kw":"Adding Monitoring Data,Monitoring,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"AddMetricData" + } + ], "title":"Adding Monitoring Data", "githuburl":"" }, { - "uri":"aom_04_1014.html", - "product_code":"aom", - "code":"7", - "des":"This API is used to add a threshold rule.POST /v2/{project_id}/ams/alarmsRequest parametersTable 1 describes the request parameters.Request headersTable 2 describes the r", + "uri":"AddOrUpdateServiceDiscoveryRules.html", + "node_id":"addorupdateservicediscoveryrules.xml", + "product_code":"", + "code":"9", + "des":"This API is used to add or modify one or more service discovery rules. A maximum of 100 rules can be added to a project.PUT /v1/{project_id}/inv/servicediscoveryrulesStat", "doc_type":"api", - "kw":"Adding a Threshold Rule,Monitoring APIs,API Reference", + "kw":"Adding or Modifying One or More Service Discovery Rules,Monitoring,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"AddOrUpdateServiceDiscoveryRules" + } + ], + "title":"Adding or Modifying One or More Service Discovery Rules", + "githuburl":"" + }, + { + "uri":"DeleteserviceDiscoveryRules.html", + "node_id":"deleteservicediscoveryrules.xml", + "product_code":"", + "code":"10", + "des":"This API is used to delete a service discovery rule.DELETE /v1/{project_id}/inv/servicediscoveryrulesStatus code: 200Delete a service discovery rule with a specified ID.S", + "doc_type":"api", + "kw":"Deleting a Service Discovery Rule,Monitoring,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"DeleteserviceDiscoveryRules" + } + ], + "title":"Deleting a Service Discovery Rule", + "githuburl":"" + }, + { + "uri":"ListServiceDiscoveryRules.html", + "node_id":"listservicediscoveryrules.xml", + "product_code":"", + "code":"11", + "des":"This API is used to query existing service discovery rules in the system.GET /v1/{project_id}/inv/servicediscoveryrulesStatus code: 200Query the application discovery rul", + "doc_type":"api", + "kw":"Querying Existing Service Discovery Rules,Monitoring,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListServiceDiscoveryRules" + } + ], + "title":"Querying Existing Service Discovery Rules", + "githuburl":"" + }, + { + "uri":"AddAlarmRule.html", + "node_id":"addalarmrule.xml", + "product_code":"", + "code":"12", + "des":"This API is used to add a threshold rule.POST /v2/{project_id}/alarm-rulesStatus code: 200Status code: 400Add a threshold rule whose name is testaom, alarm severity is 3,", + "doc_type":"api", + "kw":"Adding a Threshold Rule,Monitoring,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"AddAlarmRule" + } + ], "title":"Adding a Threshold Rule", "githuburl":"" }, { - "uri":"aom_04_1019.html", - "product_code":"aom", - "code":"8", - "des":"This API is used to modify a threshold rule.PUT /v2/{project_id}/ams/alarmsRequest parametersTable 1 describes the request parameters.Request headersTable 2 describes the", + "uri":"ListAlarmRule.html", + "node_id":"listalarmrule.xml", + "product_code":"", + "code":"13", + "des":"This API is used to query the threshold rule list.GET /v2/{project_id}/alarm-rulesStatus code: 200Status code: 400Obtain the alarm rule list of a user whose ID is Project", "doc_type":"api", - "kw":"Modifying a Threshold Rule,Monitoring APIs,API Reference", + "kw":"Querying the Threshold Rule List,Monitoring,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListAlarmRule" + } + ], + "title":"Querying the Threshold Rule List", + "githuburl":"" + }, + { + "uri":"UpdateAlarmRule.html", + "node_id":"updatealarmrule.xml", + "product_code":"", + "code":"14", + "des":"This API is used to modify a threshold rule.PUT /v2/{project_id}/alarm-rulesStatus code: 200Status code: 400Modify a threshold rule whose name is testaom, alarm severity ", + "doc_type":"api", + "kw":"Modifying a Threshold Rule,Monitoring,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"UpdateAlarmRule" + } + ], "title":"Modifying a Threshold Rule", "githuburl":"" }, { - "uri":"aom_04_1015.html", - "product_code":"aom", - "code":"9", - "des":"This API is used to query a threshold rule list.GET /v2/{project_id}/ams/alarmsRequest parametersTable 1 describes the request parameters.Request headersTable 2 describes", + "uri":"DeleteAlarmRule.html", + "node_id":"deletealarmrule.xml", + "product_code":"", + "code":"15", + "des":"This API is used to delete a threshold rule.DELETE /v2/{project_id}/alarm-rules/{alarm_rule_id}Status code: 400Delete a threshold rule.Status code: 400Bad Request: The re", "doc_type":"api", - "kw":"Querying a Threshold Rule List,Monitoring APIs,API Reference", - "title":"Querying a Threshold Rule List", - "githuburl":"" - }, - { - "uri":"aom_04_1016.html", - "product_code":"aom", - "code":"10", - "des":"This API is used to query a threshold rule.GET /v2/{project_id}/ams/alarms/{alarm_id}Request parametersTable 1 describes the request parameters.Request headersTable 2 des", - "doc_type":"api", - "kw":"Querying a Threshold Rule,Monitoring APIs,API Reference", - "title":"Querying a Threshold Rule", - "githuburl":"" - }, - { - "uri":"aom_04_1017.html", - "product_code":"aom", - "code":"11", - "des":"This API is used to delete a threshold rule.DELETE /v2/{project_id}/ams/alarms/{alarm_id}Request parametersTable 1 describes the request parameters.Request headersTable 2", - "doc_type":"api", - "kw":"Deleting a Threshold Rule,Monitoring APIs,API Reference", + "kw":"Deleting a Threshold Rule,Monitoring,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"DeleteAlarmRule" + } + ], "title":"Deleting a Threshold Rule", "githuburl":"" }, { - "uri":"aom_04_1047.html", - "product_code":"aom", - "code":"12", - "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "uri":"ShowAlarmRule.html", + "node_id":"showalarmrule.xml", + "product_code":"", + "code":"16", + "des":"This API is used to query a threshold rule.GET /v2/{project_id}/alarm-rules/{alarm_rule_id}Status code: 200Status code: 400Obtain the details about the alarm rule whose I", "doc_type":"api", - "kw":"Log APIs", - "title":"Log APIs", + "kw":"Querying a Threshold Rule,Monitoring,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ShowAlarmRule" + } + ], + "title":"Querying a Threshold Rule", "githuburl":"" }, { - "uri":"aom_04_1034.html", - "product_code":"aom", - "code":"13", - "des":"This API is used to query logs by different dimensions such as cluster, IP address, or application.POST /v2/{project_id}/als/action?type=querylogsTable 1 describes the p", + "uri":"DeleteAlarmRules.html", + "node_id":"deletealarmrules.xml", + "product_code":"", + "code":"17", + "des":"This API is used to delete threshold rules in batches.POST /v2/{project_id}/alarm-rules/deleteStatus code: 400Delete threshold rules in batches by rule name.Status code: ", "doc_type":"api", - "kw":"Querying Logs,Log APIs,API Reference", + "kw":"Deleting Threshold Rules in Batches,Monitoring,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"DeleteAlarmRules" + } + ], + "title":"Deleting Threshold Rules in Batches", + "githuburl":"" + }, + { + "uri":"aom_04_0047.html", + "node_id":"aom_04_0047.xml", + "product_code":"", + "code":"18", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Log", + "search_title":"", + "metedata":[ + { + "documenttype":"api" + } + ], + "title":"Log", + "githuburl":"" + }, + { + "uri":"ListLogItems.html", + "node_id":"listlogitems.xml", + "product_code":"", + "code":"19", + "des":"This API is used to query logs by different dimensions, such as by cluster, IP address, or application. Pagination queries are supported.POST /v1/{project_id}/als/actionS", + "doc_type":"api", + "kw":"Querying Logs,Log,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListLogItems" + } + ], "title":"Querying Logs", "githuburl":"" }, { - "uri":"aom_04_0066.html", + "uri":"aom_04_0079.html", + "node_id":"aom_04_0079.xml", + "product_code":"", + "code":"20", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Alarm", + "search_title":"", + "metedata":[ + { + "documenttype":"api" + } + ], + "title":"Alarm", + "githuburl":"" + }, + { + "uri":"ListEvents.html", + "node_id":"listevents.xml", + "product_code":"", + "code":"21", + "des":"This API is used to query events and alarms of a user.POST /v2/{project_id}/eventsStatus code: 200Status code: 400Status code: 401Status code: 403Status code: 500Status c", + "doc_type":"api", + "kw":"Querying Events and Alarms,Alarm,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListEvents" + } + ], + "title":"Querying Events and Alarms", + "githuburl":"" + }, + { + "uri":"CountEvents.html", + "node_id":"countevents.xml", + "product_code":"", + "code":"22", + "des":"This API is used to count events and alarms that meet specified conditions.POST /v2/{project_id}/events/statisticStatus code: 200Status code: 400Status code: 401Status co", + "doc_type":"api", + "kw":"Counting Events and Alarms,Alarm,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"CountEvents" + } + ], + "title":"Counting Events and Alarms", + "githuburl":"" + }, + { + "uri":"PushEvents.html", + "node_id":"pushevents.xml", + "product_code":"", + "code":"23", + "des":"This API is used to report events and alarms of a user.PUT /v2/{project_id}/push/eventsNoneReport an alarm named \"test\".NoneSee Error Codes.", + "doc_type":"api", + "kw":"Reporting Events and Alarms,Alarm,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"PushEvents" + } + ], + "title":"Reporting Events and Alarms", + "githuburl":"" + }, + { + "uri":"aom_04_0061.html", + "node_id":"aom_04_0061.xml", "product_code":"aom", - "code":"14", + "code":"24", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Permissions Policies and Supported Actions", + "search_title":"", + "metedata":[ + { + "IsBot":"Yes", + "prodname":"aom", + "documenttype":"api", + "opensource":"true", + "IsMulti":"Yes" + } + ], + "title":"Permissions Policies and Supported Actions", + "githuburl":"" + }, + { + "uri":"aom_04_0022.html", + "node_id":"aom_04_0022.xml", + "product_code":"aom", + "code":"25", + "des":"This section describes fine-grained permissions management for AOM. If your cloud account does not need individual IAM users, then you may skip over this section.By defau", + "doc_type":"api", + "kw":"Introduction,Permissions Policies and Supported Actions,API Reference", + "search_title":"", + "metedata":[ + { + "IsBot":"Yes", + "prodname":"aom", + "documenttype":"api", + "opensource":"true", + "IsMulti":"Yes" + } + ], + "title":"Introduction", + "githuburl":"" + }, + { + "uri":"aom_04_0062.html", + "node_id":"aom_04_0062.xml", + "product_code":"aom", + "code":"26", + "des":"√: supported; x: not supported", + "doc_type":"api", + "kw":"Monitoring Actions,Permissions Policies and Supported Actions,API Reference", + "search_title":"", + "metedata":[ + { + "IsBot":"Yes", + "prodname":"aom", + "documenttype":"api", + "opensource":"true", + "IsMulti":"Yes" + } + ], + "title":"Monitoring Actions", + "githuburl":"" + }, + { + "uri":"aom_04_0064.html", + "node_id":"aom_04_0064.xml", + "product_code":"aom", + "code":"27", + "des":"√: supported; x: not supported", + "doc_type":"api", + "kw":"Log Actions,Permissions Policies and Supported Actions,API Reference", + "search_title":"", + "metedata":[ + { + "IsBot":"Yes", + "prodname":"aom", + "documenttype":"api", + "opensource":"true", + "IsMulti":"Yes" + } + ], + "title":"Log Actions", + "githuburl":"" + }, + { + "uri":"aom_04_0065.html", + "node_id":"aom_04_0065.xml", + "product_code":"aom", + "code":"28", + "des":"√: supported; x: not supported", + "doc_type":"api", + "kw":"Alarm Actions,Permissions Policies and Supported Actions,API Reference", + "search_title":"", + "metedata":[ + { + "IsBot":"Yes", + "prodname":"aom", + "documenttype":"api", + "opensource":"true", + "IsMulti":"Yes" + } + ], + "title":"Alarm Actions", + "githuburl":"" + }, + { + "uri":"aom_04_0066.html", + "node_id":"aom_04_0066.xml", + "product_code":"aom", + "code":"29", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Appendix", + "search_title":"", + "metedata":[ + { + "IsBot":"Yes", + "prodname":"aom", + "documenttype":"api", + "opensource":"true", + "IsMulti":"Yes" + } + ], "title":"Appendix", "githuburl":"" }, { "uri":"aom_04_0018.html", + "node_id":"aom_04_0018.xml", "product_code":"aom", - "code":"15", - "des":"Table 1 describes the status codes.", + "code":"30", + "des":"Table 1 describes status codes.", "doc_type":"api", "kw":"Status Codes,Appendix,API Reference", + "search_title":"", + "metedata":[ + { + "IsBot":"Yes", + "prodname":"aom", + "documenttype":"api", + "opensource":"true", + "IsMulti":"Yes" + } + ], "title":"Status Codes", "githuburl":"" }, { - "uri":"aom_04_0008.html", + "uri":"ErrorCode.html", + "node_id":"errorcode_1.xml", + "product_code":"", + "code":"31", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Error Codes,Appendix,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api" + } + ], + "title":"Error Codes", + "githuburl":"" + }, + { + "uri":"en-us_topic_0000001409328750.html", + "node_id":"en-us_topic_0000001409328750.xml", "product_code":"aom", - "code":"16", + "code":"32", + "des":"When making API calls, you may need to enter the username, user ID, project name, and project ID in some URIs. You can obtain them on the My Credentials page.", + "doc_type":"api", + "kw":"Obtaining an Account ID and Project ID,Appendix,API Reference", + "search_title":"", + "metedata":[ + { + "IsBot":"Yes", + "prodname":"aom", + "documenttype":"api", + "opensource":"true", + "IsMulti":"Yes" + } + ], + "title":"Obtaining an Account ID and Project ID", + "githuburl":"" + }, + { + "uri":"aom_04_0008.html", + "node_id":"aom_04_0008.xml", + "product_code":"aom", + "code":"33", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Common Request Headers,Appendix,API Reference", + "search_title":"", + "metedata":[ + { + "IsBot":"Yes", + "prodname":"aom", + "documenttype":"api", + "opensource":"true", + "IsMulti":"Yes" + } + ], "title":"Common Request Headers", "githuburl":"" }, { "uri":"aom_04_0009.html", + "node_id":"aom_04_0009.xml", "product_code":"aom", - "code":"17", + "code":"34", "des":"A response usually contains the following headers:", "doc_type":"api", "kw":"Common Response Headers,Appendix,API Reference", + "search_title":"", + "metedata":[ + { + "IsBot":"Yes", + "prodname":"aom", + "documenttype":"api", + "opensource":"true", + "IsMulti":"Yes" + } + ], "title":"Common Response Headers", "githuburl":"" }, { "uri":"aom_04_0020.html", + "node_id":"aom_04_0020.xml", "product_code":"aom", - "code":"18", + "code":"35", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Change History,API Reference", + "search_title":"", + "metedata":[ + { + "IsBot":"Yes", + "prodname":"aom", + "documenttype":"api", + "opensource":"true", + "IsMulti":"Yes" + } + ], "title":"Change History", "githuburl":"" } diff --git a/docs/aom/api-ref/AddAlarmRule.html b/docs/aom/api-ref/AddAlarmRule.html new file mode 100644 index 00000000..f33cb73c --- /dev/null +++ b/docs/aom/api-ref/AddAlarmRule.html @@ -0,0 +1,458 @@ + + +
This API is used to add a threshold rule.
+POST /v2/{project_id}/alarm-rules
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID obtained from IAM. Generally, a project ID contains 32 characters. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. + |
+
Content-Type + |
+Yes + |
+String + |
+Content type, which is application/json. +Enumeration values: +
|
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
action_enabled + |
+No + |
+Boolean + |
+Whether to enable notification. + |
+
alarm_actions + |
+No + |
+Array of strings + |
+List of alarm notifications. + |
+
alarm_advice + |
+No + |
+String + |
+Alarm clearance suggestion. +Minimum: 0 +Maximum: 255 + |
+
alarm_description + |
+No + |
+String + |
+Threshold rule description. +Minimum: 0 +Maximum: 1024 + |
+
alarm_level + |
+Yes + |
+Integer + |
+Alarm severity. Values: 1 (critical), 2 (major), 3 (minor), and 4 (warning). +Enumeration values: +
|
+
alarm_rule_name + |
+Yes + |
+String + |
+Threshold rule name. Enter a maximum of 100 characters and do not start or end with a special character. Only letters, digits, underscores (_), and hyphens (-) are allowed. + |
+
comparison_operator + |
+Yes + |
+String + |
+Comparison operator. Options: <: less than the threshold; >: greater than the threshold; <=: less than or equal to the threshold; >=: greater than or equal to the threshold. +Enumeration values: +
|
+
dimensions + |
+Yes + |
+Array of Dimension objects + |
+List of time series dimensions. + |
+
evaluation_periods + |
+Yes + |
+Integer + |
+Interval. +Minimum: 1 +Maximum: 5 + |
+
id_turn_on + |
+No + |
+Boolean + |
+Whether to enable the threshold rule. + |
+
insufficient_data_actions + |
+No + |
+Array of strings + |
+List of insufficient data notifications. + |
+
metric_name + |
+Yes + |
+String + |
+Time series name. Length: 1 to 255 characters. + |
+
namespace + |
+Yes + |
+String + |
+Time series objects' namespace. + |
+
ok_actions + |
+No + |
+Array of strings + |
+List of normal status notifications. + |
+
period + |
+Yes + |
+Integer + |
+Statistical period. Options: 60000: one minute; 300000: five minutes; 900000: 15 minutes; 3600000: one hour. +Enumeration values: +
|
+
statistic + |
+Yes + |
+String + |
+Statistic. +Enumeration values: +
|
+
threshold + |
+Yes + |
+String + |
+Threshold value. + |
+
unit + |
+Yes + |
+String + |
+Time series unit. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
alarm_rule_id + |
+Long + |
+Threshold rule ID. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
error_type + |
+String + |
+Error type. + |
+
trace_id + |
+String + |
+Trace ID, which is used to search for logs and locate faults. If 2xx is returned, trace_id is empty. If 4xx, trace_id is not empty. + |
+
Add a threshold rule whose name is testaom, alarm severity is 3, namespace is PAAS.CONTAINER, and statistical mode is average.
+https://{Endpoint}/v2/{project_id}/alarm-rules + +{ + "id_turn_on" : true, + "action_enabled" : false, + "alarm_actions" : [ ], + "alarm_advice" : "", + "alarm_description" : "", + "alarm_level" : 3, + "alarm_rule_name" : "aom_rule", + "comparison_operator" : ">=", + "dimensions" : [ { + "name" : "appName", + "value" : "rhm-broker" + } ], + "evaluation_periods" : 1, + "insufficient_data_actions" : [ ], + "metric_name" : "cpuCoreLimit", + "namespace" : "PAAS.CONTAINER", + "ok_actions" : [ ], + "period" : 60000, + "statistic" : "average", + "threshold" : 0, + "unit" : "Core" +}+
Status code: 200
+OK: The request is successful.
+{ + "alarm_rule_id" : 1134050083814244400 +}+
Status code: 400
+Bad Request: The request is invalid. The client should not repeat the request without modifications.
+{ + "error_code" : "AOM.02001AOM.02001SVCSTG_AMS_4000115", + "error_msg" : "Invalid request parameter", + "error_type" : "BAD_REQUEST", + "trace_id" : "" +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+OK: The request is successful. + |
+
400 + |
+Bad Request: The request is invalid. The client should not repeat the request without modifications. + |
+
401 + |
+Unauthorized: The authentication information is incorrect or invalid. + |
+
403 + |
+Forbidden: The request is rejected. The server has received the request and understood it, but the server refuses to respond to it. The client should not repeat the request without modifications. + |
+
500 + |
+Internal Server Error: The server is able to receive the request but unable to understand the request. + |
+
503 + |
+Service Unavailable: The requested service is invalid. The client should not repeat the request without modifications. + |
+
See Error Codes.
+This API is used to add or modify one or more service discovery rules. A maximum of 100 rules can be added to a project.
+PUT /v1/{project_id}/inv/servicediscoveryrules
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID obtained from IAM. Generally, a project ID contains 32 characters. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. + |
+
Content-Type + |
+Yes + |
+String + |
+Content type, which is application/json. +Enumeration values: +
|
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
appRules + |
+No + |
+Array of AppRules objects + |
+Service parameters. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
createTime + |
+No + |
+String + |
+Creation time. When creating a service discovery rule, leave this parameter blank. When modifying a service discovery rule, enter the returned createTime. +Default: 1599098476654 + |
+
enable + |
+Yes + |
+Boolean + |
+Whether a rule is enabled. Values: true and false. + |
+
eventName + |
+Yes + |
+String + |
+aom_inventory_rules_event Rule event name. For service discovery, the fixed value is aom_inventory_rules_event. + |
+
hostid + |
+No + |
+Array of strings + |
+Host ID. Currently, this parameter is not used and can be left blank. + |
+
id + |
+Yes + |
+String + |
+Rule ID. When creating a service discovery rule, leave this parameter blank. When modifying a service discovery rule, enter a rule ID. + |
+
name + |
+Yes + |
+String + |
+Rule name, which contains a maximum of 64 characters. It must start with a lowercase letter but cannot end with a hyphen (-). Only digits, lowercase letters, and hyphens are allowed. + |
+
projectid + |
+Yes + |
+String + |
+Project ID obtained from IAM. Generally, a project ID contains 32 characters. + |
+
spec + |
+Yes + |
+AppRulesSpec object + |
+Rule details. + |
+
desc + |
+No + |
+String + |
+Custom description + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
appType + |
+Yes + |
+String + |
+Service type, which is used only for rule classification and UI display. You can enter any field. For example, enter Java or Python by technology stack, or enter collector or database by function. + |
+
attrList + |
+No + |
+Array of strings + |
+Attribute list. Currently, this parameter is not used and can be left blank. Values: cmdLine and env. + |
+
detectLog + |
+Yes + |
+String + |
+Whether to enable log collection. Values: true and false. + |
+
discoveryRule + |
+Yes + |
+Array of DiscoveryRule objects + |
+Discovery rule. If the array contains multiple conditions, only the processes that meet all the conditions will be matched. If the value of checkType is cmdLine, set the value of checkMode to contain. checkContent is in the format of ["xxx"], indicating that the process must contain the xxx parameter. If the value of checkType is env, set the value of checkMode to contain. checkContent is in the format of ["k1","v1"], indicating that the process must contain the environment variable whose name is k1 and value is v1. If the value of checkType is scope, set the value of checkMode to equals. checkContent is in the format of ["hostId1","hostId2"], indicating that the rule takes effect only on specified nodes. If no nodes are specified, the rule applies to all nodes of the project. + |
+
isDefaultRule + |
+Yes + |
+String + |
+Whether the rule is the default one. Values: true and false. + |
+
isDetect + |
+Yes + |
+String + |
+Whether the scenario is a pre-check scenario. No rules will be saved in the pre-check scenario. This scenario is designed only to check whether a rule can detect node processes before it is delivered. Values: true and false. + |
+
logFileFix + |
+Yes + |
+Array of strings + |
+Log file suffix. Values: log, trace, and out. + |
+
logPathRule + |
+No + |
+Array of LogPathRule objects + |
+Log path configuration rule. If cmdLineHash is a fixed string, logs in the specified log path or log file are collected. Otherwise, only the files whose names end with .log or .trace are collected. If the value of nameType is cmdLineHash, args is in the format of ["00001"] and value is in the format of ["/xxx/xx.log"], indicating that the log path is /xxx/xx.log when the startup command is 00001. + |
+
nameRule + |
+Yes + |
+NameRule object + |
+Naming rules for discovered services and applications. + |
+
priority + |
+Yes + |
+Integer + |
+Rule priority. Value range: 1 to 9999. Default value: 9999. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
checkContent + |
+Yes + |
+Array of strings + |
+Matched value. + |
+
checkMode + |
+Yes + |
+String + |
+Match condition. Values: contain and equals. + |
+
checkType + |
+Yes + |
+String + |
+Match type. Values: cmdLine, env, and scope. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
args + |
+Yes + |
+Array of strings + |
+Command. + |
+
nameType + |
+Yes + |
+String + |
+Value type, which can be cmdLineHash. + |
+
value + |
+Yes + |
+Array of strings + |
+Log path. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
appNameRule + |
+Yes + |
+Array of AppNameRule objects + |
+Service name rule. If there are multiple objects in the array, the character strings extracted from these objects constitute the service name. If the value of nameType is cmdLine, args is in the format of ["start", "end"], indicating that the characters between start and end in the command are extracted.If the value of nameType is cmdLine, args is in the format of ["aa"], indicating that the environment variable named aa is extracted.If the value of nameType is str, args is in the format of ["fix"], indicating that the service name is suffixed with fix.If the value of nameType is cmdLineHash, args is in the format of ["0001"] and value is in the format of ["ser"], indicating that the service name is ser when the startup command is 0001. + |
+
applicationNameRule + |
+Yes + |
+Array of ApplicationNameRule objects + |
+Application name rule.If the value of nameType is cmdLine, args is in the format of ["start", "end"], indicating that the characters between start and end in the command are extracted.If the value of nameType is cmdLine, args is in the format of ["aa"], indicating that the environment variable named aa is extracted.If the value of nameType is str, args is in the format of ["fix"], indicating that the service name is suffixed with fix.If the value of nameType is cmdLineHash, args is in the format of ["0001"] and value is in the format of ["ser"], indicating that the application name is ser when the startup command is 0001. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
nameType + |
+Yes + |
+String + |
+Value type. Values: cmdLineHash, cmdLine, env, and str. + |
+
args + |
+Yes + |
+Array of strings + |
+Input value. + |
+
value + |
+No + |
+Array of strings + |
+Service name, which is mandatory only when the value of nameType is cmdLineHash. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
nameType + |
+Yes + |
+String + |
+Value type. Values: cmdLineHash, cmdLine, env, and str. + |
+
args + |
+Yes + |
+Array of strings + |
+Input value. + |
+
value + |
+No + |
+Array of strings + |
+Service name, which is mandatory only when the value of nameType is cmdLineHash. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
errorCode + |
+String + |
+Response code. + |
+
errorMessage + |
+String + |
+Response message. + |
+
responseStatus + |
+Integer + |
+Response status code. + |
+
Add an application discovery rule whose name is aom_inventory_rules_event and project ID is 684fc87a79d7xxxx22e62a7da95b.
+https://{endpoint}/v1/{project_id}/inv/servicediscoveryrules + +{ + "appRules" : [ { + "createTime" : "1694705766730", + "enable" : true, + "name" : "ica**nt", + "eventName" : "aom_inventory_rules_event", + "hostid" : [ ], + "id" : "b53a5152-****-****-****-302367e04c0b", + "projectid" : "684fc87a79d7xxxx22e62a7da95b", + "spec" : { + "detectLog" : "true", + "editable" : null, + "logPathRule" : [ ], + "priority" : 9999, + "attrList" : [ "cmdLine" ], + "nameRule" : { + "appNameRule" : [ { + "args" : [ "/opt/********* -DNFW=ica**nt" ], + "nameType" : "cmdLineHash", + "value" : [ "aicagentserver" ] + } ], + "applicationNameRule" : [ { + "args" : [ "/opt/*********** -DNFW=ica**nt" ], + "nameType" : "cmdLineHash", + "value" : [ "aica**nt" ] + } ] + }, + "appType" : "", + "aom_metric_relabel_configs" : null, + "logFileFix" : [ "log", "trace", "out" ], + "isDetect" : "false", + "isDefaultRule" : null, + "dataSource" : null, + "discoveryRule" : [ { + "checkType" : "cmdLine", + "checkContent" : [ "-DNFW=ica**nt" ], + "checkMode" : "contain" + } ] + }, + "desc" : "Custom description" + } ], + "errorMessage" : null, + "errorCode" : "SVCSTG.INV.2000000", + "id" : [ ] +}+
Status code: 200
+OK: The request is successful.
+{ + "errorCode" : "SVCSTG.INV.2000000", + "errorMessage" : null, + "id" : [ ], + "results" : [ { + "name" : "aom_inventory_rules_event", + "id" : "b53a5152-****-****-****-302367e04c0b" + } ] +}+
Status code: 400
+Bad Request: The request is invalid. The client should not repeat the request without modifications.
+{ + "errorCode" : "SVCSTG.INV.4000115", + "errorMessage" : "Request param is invalid", + "id" : [ ], + "results" : [ ] +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+OK: The request is successful. + |
+
400 + |
+Bad Request: The request is invalid. The client should not repeat the request without modifications. + |
+
401 + |
+Unauthorized: The authentication information is incorrect or invalid. + |
+
403 + |
+Forbidden: The request is rejected. The server has received the request and understood it, but the server refuses to respond to it. The client should not repeat the request without modifications. + |
+
500 + |
+Internal Server Error: The server is able to receive the request but unable to understand the request. + |
+
503 + |
+Service Unavailable: The requested service is invalid. The client should not repeat the request without modifications. + |
+
See Error Codes.
+This API is used to count events and alarms that meet specified conditions.
+POST /v2/{project_id}/events/statistic
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID obtained from IAM. Generally, a project ID contains 32 characters. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
type + |
+No + |
+String + |
+Type of information to be queried. active_alert: Active alarms are to be queried. history_alert: Historical alarms are to be queried. If this parameter is not transferred or other values are transferred, information that meets the specified search criteria will be returned. +Enumeration values: +
|
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. + |
+
Content-Type + |
+Yes + |
+String + |
+Content type, which is application/json. +Enumeration values: +
|
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
time_range + |
+Yes + |
+String + |
+Time range specified to query data of the last N minutes when the client time is inconsistent with the server time. It can also be used to accurately query the data of a specified period. +Example: +
Format: +startTimeInMillis.endTimeInMillis.durationInMinutes +Parameter description: +
Constraint: +In a single request, the following condition must be met: durationInMinutes x 60/period ≤ 1440 + |
+
step + |
+Yes + |
+Long + |
+Statistical step (unit: ms). For example, if the statistical step is one minute, set this parameter to 60,000. + |
+
search + |
+No + |
+String + |
+Field specified for fuzzy query, which can be left blank. If this field is not left blank, the system will return metadata's mandatory fields that are fuzzily matched. + |
+
sort + |
+No + |
+sort object + |
+Sorting order, which can be left blank. + |
+
metadata_relation + |
+No + |
+Array of RelationModel objects + |
+Combination of search criteria, which can be left blank. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
order_by + |
+No + |
+Array of strings + |
+List of sorted fields. Fields in this list are sorted based on the specified order. + |
+
order + |
+No + |
+String + |
+Sorting order. asc: ascending order. desc: descending order. +Enumeration values: +
|
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
key + |
+No + |
+String + |
+Key specified for query, which corresponds to the key in the metadata. + |
+
value + |
+No + |
+Array of strings + |
+Value of the specified key in the search criterion. + |
+
relation + |
+No + |
+String + |
+Relationship between search criteria. Values: AND: All criteria must be met. OR: One of the criteria needs to be met. NOT: None of the criteria can be met. +Enumeration values: +
|
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
step + |
+Long + |
+Statistical step (unit: ms). For example, if the statistical step is one minute, set this parameter to 60,000. + |
+
timestamps + |
+Array of longs + |
+Time series object corresponding to the statistical result. + |
+
series + |
+Array of EventSeries objects + |
+Statistical results of a time series object's different severities of events or alarms. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
event_severity + |
+String + |
+Enumerated values of event or alarm severities. +Enumeration values: +
|
+
values + |
+Array of integers + |
+Event or alarm statistical result. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Response code. + |
+
error_msg + |
+String + |
+Error description. + |
+
error_type + |
+String + |
+API call failure type. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Response code. + |
+
error_msg + |
+String + |
+Error description. + |
+
error_type + |
+String + |
+API call failure type. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Response code. + |
+
error_msg + |
+String + |
+Error description. + |
+
error_type + |
+String + |
+API call failure type. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Response code. + |
+
error_msg + |
+String + |
+Error description. + |
+
error_type + |
+String + |
+API call failure type. + |
+
Status code: 503
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Response code. + |
+
error_msg + |
+String + |
+Error description. + |
+
error_type + |
+String + |
+API call failure type. + |
+
Query the events and alarms on the step basis in a specified time range.
+https://{endpoint}/v2/{project_id}/events/statistic + +{ + "time_range" : "-1.-1.5", + "step" : 60000 +}+
Status code: 200
+OK: The request is successful.
+{ + "series" : [ { + "event_severity" : "Minor", + "values" : [ 0, 0, 0, 0, 0, 0 ] + }, { + "event_severity" : "Info", + "values" : [ 0, 0, 0, 0, 0, 0 ] + } ], + "step" : 60000, + "timestamps" : [ 1642820700000, 1642820760000, 1642820820000, 1642820880000, 1642820940000, 1642821000000 ] +}+
Status code: 400
+Bad Request: The request is invalid. The client should not repeat the request without modifications.
+{ + "error_code" : "AOM.0400", + "error_message" : "param error", + "error_type" : "SC_BAD_REQUEST" +}+
Status code: 401
+Unauthorized: The authentication information is incorrect or invalid.
+{ + "error_code" : "AOM.0401", + "error_message" : "you dont have permission", + "error_type" : "SC_UNAUTHORIZED" +}+
Status code: 403
+Forbidden: The request is rejected. The server has received the request and understood it, but the server refuses to respond to it. The client should not repeat the request without modifications.
+{ + "error_code" : "AOM.0403", + "error_message" : "you dont have permission", + "error_type" : "SC_FORBIDDEN" +}+
Status code: 500
+Internal Server Error: The server is able to receive the request but unable to understand the request.
+{ + "error_code" : "AOM.0500", + "error_message" : "SC_INTERNAL_SERVER_ERROR", + "error_type" : "SC_INTERNAL_SERVER_ERROR" +}+
Status code: 503
+Service Unavailable: The requested service is invalid. The client should not repeat the request without modifications.
+{ + "error_code" : "AOM.0503", + "error_message" : "SC_NOT_IMPLEMENTED", + "error_type" : "SC_NOT_IMPLEMENTED" +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+OK: The request is successful. + |
+
400 + |
+Bad Request: The request is invalid. The client should not repeat the request without modifications. + |
+
401 + |
+Unauthorized: The authentication information is incorrect or invalid. + |
+
403 + |
+Forbidden: The request is rejected. The server has received the request and understood it, but the server refuses to respond to it. The client should not repeat the request without modifications. + |
+
500 + |
+Internal Server Error: The server is able to receive the request but unable to understand the request. + |
+
503 + |
+Service Unavailable: The requested service is invalid. The client should not repeat the request without modifications. + |
+
See Error Codes.
+This API is used to delete a threshold rule.
+DELETE /v2/{project_id}/alarm-rules/{alarm_rule_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID obtained from IAM. Generally, a project ID contains 32 characters. + |
+
alarm_rule_id + |
+Yes + |
+String + |
+Threshold rule ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. + |
+
Content-Type + |
+Yes + |
+String + |
+Content type, which is application/json. +Enumeration values: +
|
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
error_type + |
+String + |
+Error type. + |
+
trace_id + |
+String + |
+Trace ID, which is used to search for logs and locate faults. If 2xx is returned, trace_id is empty. If 4xx, trace_id is not empty. + |
+
Delete a threshold rule.
+https://{Endpoint}/v2/{project_id}/alarm-rules/{alarm_rule_id}+
Status code: 400
+Bad Request: The request is invalid. The client should not repeat the request without modifications.
+{ + "error_code" : "AOM.02001AOM.02001SVCSTG_AMS_4000115", + "error_msg" : "please check request param", + "error_type" : "BAD_REQUEST", + "trace_id" : "" +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+OK: The request is successful. + |
+
400 + |
+Bad Request: The request is invalid. The client should not repeat the request without modifications. + |
+
401 + |
+Unauthorized: The authentication information is incorrect or invalid. + |
+
403 + |
+Forbidden: The request is rejected. The server has received the request and understood it, but the server refuses to respond to it. The client should not repeat the request without modifications. + |
+
500 + |
+Internal Server Error: The server is able to receive the request but unable to understand the request. + |
+
503 + |
+Service Unavailable: The requested service is invalid. The client should not repeat the request without modifications. + |
+
See Error Codes.
+This API is used to delete threshold rules in batches.
+POST /v2/{project_id}/alarm-rules/delete
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID obtained from IAM. Generally, a project ID contains 32 characters. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. + |
+
Content-Type + |
+Yes + |
+String + |
+Content type, which is application/json. +Enumeration values: +
|
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
alarm_rules + |
+Yes + |
+Array of strings + |
+Name of the rule to be deleted. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
error_type + |
+String + |
+Error type. + |
+
trace_id + |
+String + |
+Trace ID, which is used to search for logs and locate faults. If 2xx is returned, trace_id is empty. If 4xx, trace_id is not empty. + |
+
Delete threshold rules in batches by rule name.
+https://{Endpoint}/v2/{project_id}/alarm-rules/delete + +{ + "alarm_rules" : [ ] +}+
Status code: 400
+Bad Request: The request is invalid. The client should not repeat the request without modifications.
+{ + "error_code" : "AOM.02001AOM.02001SVCSTG_AMS_4000115", + "error_msg" : "please check request param", + "error_type" : "BAD_REQUEST", + "trace_id" : "" +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+OK: The request is successful. + |
+
400 + |
+Bad Request: The request is invalid. The client should not repeat the request without modifications. + |
+
401 + |
+Unauthorized: The authentication information is incorrect or invalid. + |
+
403 + |
+Forbidden: The request is rejected. The server has received the request and understood it, but the server refuses to respond to it. The client should not repeat the request without modifications. + |
+
500 + |
+Internal Server Error: The server is able to receive the request but unable to understand the request. + |
+
503 + |
+Service Unavailable: The requested service is invalid. The client should not repeat the request without modifications. + |
+
See Error Codes.
+This API is used to delete a service discovery rule.
+DELETE /v1/{project_id}/inv/servicediscoveryrules
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID obtained from IAM. Generally, a project ID contains 32 characters. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
appRulesIds + |
+Yes + |
+Array + |
+Discovery rule ID. Multiple IDs need to be separated by commas (,). The parameter cannot be empty. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. + |
+
Content-Type + |
+Yes + |
+String + |
+Content type, which is application/json. +Enumeration values: +
|
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
errorCode + |
+String + |
+Response code. + |
+
errorMessage + |
+String + |
+Response message. + |
+
responseStatus + |
+Integer + |
+Response status code. + |
+
Delete a service discovery rule with a specified ID.
+https://{Endpoint}/v1/{project_id}/inv/servicediscoveryrules?appRulesIds=b788349e-62b2-xxxx-xxxx-02c611d59801+
Status code: 200
+OK: The request is successful.
+{ + "errorCode" : "SVCSTG.INV.2000000", + "errorMessage" : null, + "id" : [ ] +}+
Status code: 400
+Bad Request: The request is invalid. The client should not repeat the request without modifications.
+{ + "errorCode" : "SVCSTG.INV.4000118", + "errorMessage" : "Request param is invalid", + "id" : [ ] +}+
Status code: 404
+Not Found: The requested resource could not be found. The client should not repeat this request without modification.
+{ + "errorCode" : "SVCSTG.INV.4040000", + "errorMessage" : "Inventory does not exists", + "id" : [ ] +}+
Status code: 500
+Internal Server Error: The server is able to receive the request but unable to understand the request.
+{ + "error_code" : "APM.00000500", + "error_msg" : "Internal Server Error", + "trace_id" : "" +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+OK: The request is successful. + |
+
400 + |
+Bad Request: The request is invalid. The client should not repeat the request without modifications. + |
+
401 + |
+Unauthorized: The authentication information is incorrect or invalid. + |
+
403 + |
+Forbidden: The request is rejected. The server has received the request and understood it, but the server refuses to respond to it. The client should not repeat the request without modifications. + |
+
404 + |
+Not Found: The requested resource could not be found. The client should not repeat this request without modification. + |
+
500 + |
+Internal Server Error: The server is able to receive the request but unable to understand the request. + |
+
503 + |
+Unauthorized: The authentication information is incorrect or invalid. + |
+
See Error Codes.
+Status Code + |
+Error Code + |
+Message + |
+Description + |
+Solution + |
+
---|---|---|---|---|
200 + |
+SVCSTG.INV.2000000 + |
+null + |
+The request is properly executed. + |
+No action is required after the request is executed. + |
+
300 + |
+AOM.08001300 + |
+The maximum number of rules has been reached. + |
+The maximum number of rules has been reached. + |
+Delete unneeded rules and try again. + |
+
400 + |
+AOM.0400 + |
+Bad request. + |
+Incorrect request parameter. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02001101 + |
+Invalid rule name. + |
+Invalid rule name. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02001102 + |
+The rule name already exists. + |
+The rule name already exists. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02001103 + |
+Invalid description. + |
+Invalid description. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02001104 + |
+Invalid threshold. + |
+Invalid threshold. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02001105 + |
+Invalid period. + |
+Invalid period. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02001106 + |
+Invalid email. + |
+Invalid email. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02001107 + |
+The maximum number of rules has been reached. + |
+The maximum number of rules has been reached. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02001108 + |
+Invalid time range. + |
+Invalid time range. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02001109 + |
+Threshold rule xxx does not exist. + |
+Threshold rule xxx does not exist. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02001110 + |
+Invalid limit. + |
+Invalid limit. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02001111 + |
+Invalid offset. + |
+Invalid offset. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02001112 + |
+Invalid request parameter. + |
+Invalid request parameter. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02001115 + |
+Invalid request parameter. + |
+Invalid request parameter. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02001118 + |
+Invalid number of consecutive periods. + |
+Invalid number of consecutive periods. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02001119 + |
+Invalid statistic. + |
+Invalid statistic. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02001120 + |
+Invalid comparison operator. + |
+Invalid comparison operator. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02001121 + |
+The rule does not exist. + |
+The rule does not exist. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02001400 + |
+Bad request. + |
+Bad request. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02002101 + |
+Invalid rule. + |
+Invalid rule. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02002102 + |
+The rule name already exists. + |
+The rule name already exists. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02002103 + |
+Invalid description. + |
+Invalid description. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02002104 + |
+Invalid threshold. + |
+Invalid threshold. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02002105 + |
+Invalid period. + |
+Invalid period. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02002106 + |
+Invalid email. + |
+Invalid email. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02002107 + |
+The maximum number of rules has been reached. + |
+The maximum number of rules has been reached. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02002108 + |
+Invalid time range. + |
+Invalid time range. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02002109 + |
+Invalid project ID. + |
+Invalid project ID. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02002110 + |
+Invalid limit. + |
+Invalid limit. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02002111 + |
+Invalid offset. + |
+Invalid offset. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02002112 + |
+Invalid request parameter. + |
+Invalid request parameter. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02002115 + |
+Invalid request parameter. + |
+Invalid request parameter. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02002118 + |
+Invalid number of consecutive periods. + |
+Invalid number of consecutive periods. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02002119 + |
+Invalid statistic. + |
+Invalid statistic. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02002120 + |
+Invalid comparison operator. + |
+Invalid comparison operator. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02002121 + |
+The rule does not exist. + |
+The rule does not exist. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02002400 + |
+Bad request. + |
+Bad request. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02003101 + |
+Invalid rule. + |
+Invalid rule. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02003102 + |
+The rule name already exists. + |
+The rule name already exists. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02003103 + |
+Invalid description. + |
+Invalid description. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02003104 + |
+Invalid threshold. + |
+Invalid threshold. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02003105 + |
+Invalid period. + |
+Invalid period. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02003106 + |
+Invalid email. + |
+Invalid email. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02003107 + |
+The maximum number of rules has been reached. + |
+The maximum number of rules has been reached. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02003108 + |
+Invalid time range. + |
+Invalid time range. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02003109 + |
+Invalid project ID. + |
+Invalid project ID. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02003110 + |
+Invalid limit. + |
+Invalid limit. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02003111 + |
+Invalid offset. + |
+Invalid offset. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02003112 + |
+Invalid request parameter. + |
+Invalid request parameter. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02003115 + |
+Invalid request parameter. + |
+Invalid request parameter. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02003118 + |
+Invalid number of consecutive periods. + |
+Invalid number of consecutive periods. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02003119 + |
+Invalid statistic. + |
+Invalid statistic. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02003120 + |
+Invalid comparison operator. + |
+Invalid comparison operator. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02003121 + |
+The rule does not exist. + |
+The rule does not exist. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02003400 + |
+Bad request. + |
+Bad request. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02004101 + |
+Invalid rule. + |
+Invalid rule. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02004102 + |
+The rule name already exists. + |
+The rule name already exists. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02004103 + |
+Invalid description. + |
+Invalid description. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02004104 + |
+Invalid threshold. + |
+Invalid threshold. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02004105 + |
+Invalid period. + |
+Invalid period. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02004106 + |
+Invalid email. + |
+Invalid email. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02004107 + |
+The maximum number of rules has been reached. + |
+The maximum number of rules has been reached. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02004108 + |
+Invalid time range. + |
+Invalid time range. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02004109 + |
+Invalid project ID. + |
+Invalid project ID. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02004110 + |
+Invalid limit. + |
+Invalid limit. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02004111 + |
+Invalid offset. + |
+Invalid offset. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02004112 + |
+Invalid request parameter. + |
+Invalid request parameter. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02004115 + |
+Invalid request parameter. + |
+Invalid request parameter. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02004118 + |
+Invalid number of consecutive periods. + |
+Invalid number of consecutive periods. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02004119 + |
+Invalid statistic. + |
+Invalid statistic. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02004120 + |
+Invalid comparison operator. + |
+Invalid comparison operator. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02004121 + |
+The rule does not exist. + |
+The rule does not exist. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02004400 + |
+Bad request. + |
+Bad request. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02005101 + |
+Invalid rule. + |
+Invalid rule. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02005102 + |
+The rule name already exists. + |
+The rule name already exists. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02005103 + |
+Invalid description. + |
+Invalid description. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02005104 + |
+Invalid threshold. + |
+Invalid threshold. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02005105 + |
+Invalid period. + |
+Invalid period. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02005106 + |
+Invalid email. + |
+Invalid email. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02005107 + |
+The maximum number of rules has been reached. + |
+The maximum number of rules has been reached. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02005108 + |
+Invalid time range. + |
+Invalid time range. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02005109 + |
+Invalid project ID. + |
+Invalid project ID. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02005110 + |
+Invalid limit. + |
+Invalid limit. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02005111 + |
+Invalid offset. + |
+Invalid offset. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02005112 + |
+Invalid request parameter. + |
+Invalid request parameter. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02005115 + |
+Invalid request parameter. + |
+Invalid request parameter. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02005118 + |
+Invalid number of consecutive periods. + |
+Invalid number of consecutive periods. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02005119 + |
+Invalid statistic. + |
+Invalid statistic. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02005120 + |
+Invalid comparison operator. + |
+Invalid comparison operator. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02005121 + |
+The rule does not exist. + |
+The rule does not exist. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02005400 + |
+Bad request. + |
+Bad request. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04007101 + |
+Invalid namespace. + |
+Invalid namespace. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04007102 + |
+Invalid inventory ID. + |
+Invalid inventory ID. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04007103 + |
+The project ID cannot be left blank. + |
+The project ID cannot be left blank. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04007104 + |
+Invalid type. + |
+Invalid type. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04007105 + |
+Invalid limit. + |
+Invalid limit. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04007106 + |
+Invalid offset. + |
+Invalid offset. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04007107 + |
+Invalid parent inventory ID. + |
+Invalid parent inventory ID. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04007108 + |
+Invalid type and relation. + |
+Invalid type and relation. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04007109 + |
+Invalid metric name. + |
+Invalid metric name. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04007110 + |
+Invalid relation. + |
+Invalid relation. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04007111 + |
+The type and relation cannot be left blank. + |
+The type and relation cannot be left blank. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04007112 + |
+Invalid request parameter. + |
+Invalid request parameter. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04007115 + |
+Invalid request parameter. + |
+Invalid request parameter. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04007118 + |
+Invalid number of consecutive periods. + |
+Invalid number of consecutive periods. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04007119 + |
+Invalid statistic. + |
+Invalid statistic. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04007120 + |
+Invalid comparison operator. + |
+Invalid comparison operator. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04007400 + |
+Bad request. + |
+Bad request. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04008101 + |
+Invalid namespace. + |
+Invalid namespace. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04008102 + |
+Invalid inventory ID. + |
+Invalid inventory ID. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04008103 + |
+The project ID cannot be left blank. + |
+The project ID cannot be left blank. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04008104 + |
+Invalid type. + |
+Invalid type. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04008105 + |
+Invalid limit. + |
+Invalid limit. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04008106 + |
+Invalid offset. + |
+Invalid offset. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04008107 + |
+Invalid parent inventory ID. + |
+Invalid parent inventory ID. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04008108 + |
+Invalid type and relation. + |
+Invalid type and relation. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04008109 + |
+Invalid metric name. + |
+Invalid metric name. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04008110 + |
+Invalid relation. + |
+Invalid relation. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04008111 + |
+The type and relation cannot be left blank. + |
+The type and relation cannot be left blank. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04008112 + |
+Invalid request parameter. + |
+Invalid request parameter. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04008115 + |
+Invalid request parameter. + |
+Invalid request parameter. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04008118 + |
+Invalid number of consecutive periods. + |
+Invalid number of consecutive periods. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04008119 + |
+Invalid statistic. + |
+Invalid statistic. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04008120 + |
+Invalid comparison operator. + |
+Invalid comparison operator. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.04008400 + |
+Bad request. + |
+Bad request. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.07001400 + |
+Invalid parameter. + |
+Invalid parameter. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.11015003 + |
+The request body is empty. + |
+The request body is empty. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.11015004 + |
+Parse request parameter failed. + |
+Parse request parameter failed. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.11015005 + |
+Too many Prometheus instances. + |
+Too many Prometheus instances. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.11017013 + |
+The Prometheus instance ID is empty. + |
+The Prometheus instance ID is empty. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.11017014 + |
+Prometheus instance not found. + |
+Prometheus instance not found. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.11017015 + |
+Invalid Prometheus instance name + |
+Invalid Prometheus instance name. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.11017016 + |
+Invalid Prometheus instance ID. + |
+Invalid Prometheus instance ID. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.11017017 + |
+Invalid Prometheus instance type. + |
+Invalid Prometheus instance type. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.11017018 + |
+Invalid Prometheus instance status. + |
+Invalid Prometheus instance status. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.11017019 + |
+Invalid application name. + |
+Invalid application name. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.4001021 + |
+Group name repeate. + |
+Duplicate group name. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.4001023 + |
+Group name must be set. + |
+The group name cannot be empty. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.4001024 + |
+Record filed must be set. + |
+The recording field cannot be empty. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.4001025 + |
+Expr filed must be set. + |
+The expression cannot be empty. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.4001026 + |
+Recording rule format invalid. + |
+Invalid recording rule format. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.4001028 + |
+The requested content exceeds the maximum. + |
+The request is too long. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+SVCSTG.INV.4000115 + |
+Invalid request parameter. + |
+Invalid request parameter. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+SVCSTG_AMS_4000001 + |
+Invalid request parameter. + |
+Invalid request parameter. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+SVCSTG_AMS_4000002 + |
+Invalid namespace. + |
+Invalid namespace. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+SVCSTG_AMS_4000003 + |
+Dimensions cannot be left blank. + |
+Dimensions cannot be left blank. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+SVCSTG_AMS_4000005 + |
+Invalid metric data type. + |
+Invalid metric data type. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+SVCSTG_AMS_4000006 + |
+The metric data value cannot be left blank. + |
+The metric data cannot be left blank. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+SVCSTG_AMS_4000007 + |
+Invalid dimension. + |
+Invalid dimension. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+SVCSTG_AMS_4000008 + |
+The request exceeds 40 KB. + |
+The request cannot exceed 40 KB. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+SVCSTG_AMS_4000009 + |
+The number of elements in the dimension array exceeds the allowed limit. + |
+Too many elements in the dimension array. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+SVCSTG_AMS_4000010 + |
+Invalid collection time. + |
+Invalid collection time. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+SVCSTG_AMS_4000101 + |
+The namespace or alarm name is invalid, or the project ID is left blank. + |
+The namespace or alarm name is invalid, or the project ID is left blank. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+SVCSTG_AMS_4000102 + |
+The inventory ID is invalid, the metric data value is left blank, or the threshold rule name already exists. + |
+The inventory ID is invalid, the metric data value is left blank, or the threshold rule name already exists. + |
+Check whether the parameter meets requirements, or change the rule name and try again. + |
+
400 + |
+SVCSTG_AMS_4000103 + |
+Invalid range or alarm description. + |
+Invalid range or alarm description. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+SVCSTG_AMS_4000104 + |
+Invalid statistics or alarm threshold. + |
+Invalid statistics or alarm threshold. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+SVCSTG_AMS_4000105 + |
+Invalid limit, metric, or alarm period. + |
+Invalid limit, metric, or alarm period. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+SVCSTG_AMS_4000106 + |
+Invalid offset, time range, or email. + |
+Invalid offset, time range, or email. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+SVCSTG_AMS_4000107 + |
+The number of data points in a time range exceeds 1440 or the maximum number of threshold rules has been reached. + |
+The number of data points in a time range exceeds 1440 or the maximum number of threshold rules has been reached. + |
+Check whether the parameter meets the requirements or contact technical support. + |
+
400 + |
+SVCSTG_AMS_4000108 + |
+Invalid time range. + |
+Invalid time range. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+SVCSTG_AMS_4000109 + |
+Invalid metric name or project ID. + |
+Invalid metric name or project ID. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+SVCSTG_AMS_4000110 + |
+Invalid filled value or limit. + |
+Invalid filled value or limit. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+SVCSTG_AMS_4000111 + |
+Invalid offset. + |
+Invalid offset. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+SVCSTG_AMS_4000115 + |
+Invalid request parameter. + |
+Invalid request parameter. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+SVCSTG_AMS_4000118 + |
+Invalid number of consecutive periods. + |
+Invalid number of consecutive periods. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+SVCSTG_AMS_4000119 + |
+Invalid statistic. + |
+Invalid statistic. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+SVCSTG_AMS_4000120 + |
+Invalid comparison operator. + |
+Invalid comparison operator. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+SVCSTG_AMS_4000121 + |
+The rule does not exist. + |
+The rule does not exist. + |
+Check whether the threshold rule exists. + |
+
400 + |
+AOM.02006404 + |
+The rule to be deleted does not exist. + |
+The rule does not exist. + |
+Check whether the threshold rule exists. + |
+
400 + |
+AOM.02005404 + |
+The rule does not exist. + |
+The rule does not exist. + |
+Check whether the threshold rule exists. + |
+
400 + |
+AOM.02004404 + |
+The rule does not exist. + |
+The rule does not exist. + |
+Check whether the threshold rule exists. + |
+
400 + |
+AOM.02004001 + |
+Incorrect request parameter. + |
+Incorrect request parameter. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02005001 + |
+Incorrect request parameter. + |
+Incorrect request parameter. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02003001 + |
+Incorrect request parameter. + |
+Incorrect request parameter. + |
+Check whether the parameter meets requirements. + |
+
400 + |
+AOM.02001AOM.02001SVCSTG_AMS_4000115 + |
+Invalid request parameter. + |
+Incorrect request parameter. + |
+Check whether the parameter meets requirements. + |
+
401 + |
+AOM.0401 + |
+Unauthorized. + |
+Incorrect authentication information. + |
+Check the authentication information carried in the request. + |
+
401 + |
+AOM.02001401 + |
+Unauthorized. + |
+Unauthorized. + |
+Contact technical support. + |
+
401 + |
+AOM.02002401 + |
+Unauthorized. + |
+Unauthorized. + |
+Contact technical support. + |
+
401 + |
+AOM.02003401 + |
+Unauthorized. + |
+Unauthorized. + |
+Contact technical support. + |
+
401 + |
+AOM.02004401 + |
+Unauthorized. + |
+Unauthorized. + |
+Contact technical support. + |
+
401 + |
+AOM.02005401 + |
+Unauthorized. + |
+Unauthorized. + |
+Contact technical support. + |
+
401 + |
+AOM.04007401 + |
+Request unauthorized. + |
+Request unauthorized. + |
+Contact technical support. + |
+
401 + |
+AOM.04008401 + |
+Request unauthorized. + |
+Request unauthorized. + |
+Contact technical support. + |
+
403 + |
+AOM.0403 + |
+Forbidden. + |
+Insufficient permissions. + |
+Check your permissions. + |
+
403 + |
+AOM.02001403 + |
+Forbidden. + |
+Forbidden. + |
+Contact technical support. + |
+
403 + |
+AOM.02002403 + |
+Forbidden. + |
+Forbidden. + |
+Contact technical support. + |
+
403 + |
+AOM.02003403 + |
+Forbidden. + |
+Forbidden. + |
+Contact technical support. + |
+
403 + |
+AOM.02004403 + |
+Forbidden. + |
+Forbidden. + |
+Contact technical support. + |
+
403 + |
+AOM.02005403 + |
+Forbidden. + |
+Forbidden. + |
+Contact technical support. + |
+
403 + |
+AOM.04007403 + |
+Request forbidden. + |
+Request forbidden. + |
+Contact technical support. + |
+
403 + |
+AOM.04008403 + |
+Request forbidden. + |
+Request forbidden. + |
+Contact technical support. + |
+
403 + |
+AOM.07001403 + |
+Insufficient permissions. + |
+Insufficient permissions. + |
+Obtain required permissions. + |
+
403 + |
+SVCSTG.INV.4030000 + |
+Insufficient permissions. + |
+Insufficient permissions. + |
+Use an authorized account. + |
+
404 + |
+SVCSTG.INV.4040000 + |
+Inventory does not exists. + |
+The resource does not exist. + |
+Check whether the resource exists. + |
+
429 + |
+AOM.07001429 + |
+The traffic has been restricted. + |
+The traffic has been restricted. + |
+Send fewer API call requests. + |
+
429 + |
+AOM.08001429 + |
+Too many requests. + |
+Too many requests. + |
+Check whether the parameter meets requirements. + |
+
500 + |
+AOM.0500 + |
+Internal server error. + |
+Internal server error. + |
+Contact technical support. + |
+
500 + |
+AOM.02001500 + |
+Internal server error. + |
+Internal server error. + |
+Contact technical support. + |
+
500 + |
+AOM.02001501 + |
+The Cassandra session is null. + |
+The Cassandra session is null. + |
+Contact technical support. + |
+
500 + |
+AOM.02001502 + |
+The Cassandra execution is abnormal. + |
+The Cassandra execution is abnormal. + |
+Contact technical support. + |
+
500 + |
+AOM.02002500 + |
+Internal server error. + |
+Internal server error. + |
+Contact technical support. + |
+
500 + |
+AOM.02002501 + |
+The Cassandra session is null. + |
+The Cassandra session is null. + |
+Contact technical support. + |
+
500 + |
+AOM.02002502 + |
+The Cassandra execution is abnormal. + |
+The Cassandra execution is abnormal. + |
+Contact technical support. + |
+
500 + |
+AOM.02003500 + |
+Internal server error. + |
+Internal server error. + |
+Contact technical support. + |
+
500 + |
+AOM.02003501 + |
+The Cassandra session is null. + |
+The Cassandra session is null. + |
+Contact technical support. + |
+
500 + |
+AOM.02003502 + |
+The Cassandra execution is abnormal. + |
+The Cassandra execution is abnormal. + |
+Contact technical support. + |
+
500 + |
+AOM.02004500 + |
+Internal server error. + |
+Internal server error. + |
+Contact technical support. + |
+
500 + |
+AOM.02004501 + |
+The Cassandra session is null. + |
+The Cassandra session is null. + |
+Contact technical support. + |
+
500 + |
+AOM.02004502 + |
+The Cassandra execution is abnormal. + |
+The Cassandra execution is abnormal. + |
+Contact technical support. + |
+
500 + |
+AOM.02005500 + |
+Internal server error. + |
+Internal server error. + |
+Contact technical support. + |
+
500 + |
+AOM.02005501 + |
+The Cassandra session is null. + |
+The Cassandra session is null. + |
+Contact technical support. + |
+
500 + |
+AOM.02005502 + |
+The Cassandra execution is abnormal. + |
+The Cassandra execution is abnormal. + |
+Contact technical support. + |
+
500 + |
+AOM.04007500 + |
+Internal server error. + |
+Internal server error. + |
+Contact technical support. + |
+
500 + |
+AOM.04007501 + |
+The Cassandra session is null. + |
+The Cassandra session is null. + |
+Contact technical support. + |
+
500 + |
+AOM.04007502 + |
+The Cassandra execution is abnormal. + |
+The Cassandra execution is abnormal. + |
+Contact technical support. + |
+
500 + |
+AOM.04008500 + |
+Internal server error. + |
+Internal server error. + |
+Contact technical support. + |
+
500 + |
+AOM.04008501 + |
+The Cassandra session is null. + |
+The Cassandra session is null. + |
+Contact technical support. + |
+
500 + |
+AOM.04008502 + |
+The Cassandra execution is abnormal. + |
+The Cassandra execution is abnormal. + |
+Contact technical support. + |
+
500 + |
+AOM.11014001 + |
+Internal server error. + |
+Internal server error. + |
+Contact technical support. + |
+
500 + |
+AOM.11014002 + |
+Incorrect conversion result. + |
+Incorrect conversion result. + |
+Contact technical support. + |
+
500 + |
+AOM.5001010 + |
+Internal server error. + |
+Internal server error. + |
+Contact technical support. + |
+
500 + |
+AOM.5001019 + |
+Recording rule exist for the prometheus instance. + |
+The rule already exists. + |
+Contact technical support. + |
+
500 + |
+SVCSTG.INV.5000001 + |
+The Elasticsearch session is null. + |
+The Elasticsearch session is null. + |
+Contact technical support. + |
+
500 + |
+SVCSTG.INV.5000002 + |
+The Elasticsearch execution is abnormal. + |
+The Elasticsearch execution is abnormal. + |
+Contact technical support. + |
+
500 + |
+SVCSTG.INV.5000003 + |
+The ICMGR invocation is abnormal. + |
+The ICMGR invocation is abnormal. + |
+Contact technical support. + |
+
500 + |
+SVCSTG.INV.5000006 + |
+The rule name already exists. + |
+The rule name already exists. + |
+Use another name. + |
+
500 + |
+SVCSTG.INV.5000007 + |
+The maximum number of rules has been reached. + |
+The maximum number of rules has been reached. + |
+Delete unnecessary rules and add new ones. + |
+
500 + |
+SVCSTG_AMS_5000000 + |
+Internal server error. + |
+Internal server error. + |
+Contact technical support. + |
+
503 + |
+AOM.0503 + |
+Server unavailable. + |
+Server unavailable. + |
+Contact technical support. + |
+
503 + |
+AOM.02001503 + |
+Server unavailable. + |
+Server unavailable. + |
+Contact technical support. + |
+
503 + |
+AOM.02002503 + |
+Server unavailable. + |
+Server unavailable. + |
+Contact technical support. + |
+
503 + |
+AOM.02003503 + |
+Server unavailable. + |
+Server unavailable. + |
+Contact technical support. + |
+
503 + |
+AOM.02004503 + |
+Server unavailable. + |
+Server unavailable. + |
+Contact technical support. + |
+
503 + |
+AOM.02005503 + |
+Server unavailable. + |
+Server unavailable. + |
+Contact technical support. + |
+
503 + |
+AOM.04007503 + |
+Server unavailable. + |
+Server unavailable. + |
+Contact technical support. + |
+
503 + |
+AOM.04008503 + |
+Server unavailable. + |
+Server unavailable. + |
+Contact technical support. + |
+
503 + |
+AOM.07001503 + |
+Service error. + |
+Service error. + |
+Check whether the backend service is normal. + |
+
503 + |
+SVCSTG_AMS_5030001 + |
+The Cassandra session is null. + |
+The Cassandra session is null. + |
+Contact technical support. + |
+
503 + |
+SVCSTG_AMS_5030002 + |
+The Cassandra execution is abnormal. + |
+The Cassandra execution is abnormal. + |
+Contact technical support. + |
+
This API is used to query the threshold rule list.
+GET /v2/{project_id}/alarm-rules
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID obtained from IAM. Generally, a project ID contains 32 characters. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
offset + |
+No + |
+String + |
+Pagination information. + |
+
limit + |
+No + |
+Integer + |
+Maximum number of returned records. Value range: 1–1000. Default value: 1000. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. + |
+
Content-Type + |
+Yes + |
+String + |
+Content type, which is application/json. +Enumeration values: +
|
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
meta_data + |
+MetaData object + |
+Metadata, including pagination information. + |
+
thresholds + |
+Array of QueryAlarmResult objects + |
+Parameters specified for querying a threshold rule. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
count + |
+Integer + |
+Number of returned records. + |
+
start + |
+String + |
+Start of the next page, which is used for pagination. null: No more data. + |
+
total + |
+Integer + |
+Total number of records. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
action_enabled + |
+Boolean + |
+Whether to enable notification. + |
+
alarm_actions + |
+Array of strings + |
+List of alarm notifications. + |
+
alarm_advice + |
+String + |
+Alarm clearance suggestion. + |
+
alarm_description + |
+String + |
+Threshold rule description. + |
+
alarm_level + |
+String + |
+Alarm severity. + |
+
alarm_rule_id + |
+String + |
+Threshold rule ID. + |
+
alarm_rule_name + |
+String + |
+Threshold rule name. + |
+
comparison_operator + |
+String + |
+Comparison operator. + |
+
dimensions + |
+Array of Dimension objects + |
+List of time series dimensions. + |
+
evaluation_periods + |
+Integer + |
+Interval. + |
+
id_turn_on + |
+Boolean + |
+Whether to enable the threshold rule. + |
+
insufficient_data_actions + |
+Array of strings + |
+List of insufficient data notifications. + |
+
metric_name + |
+String + |
+Time series name. + |
+
namespace + |
+String + |
+Time series objects' namespace. + |
+
ok_actions + |
+Array of strings + |
+List of normal status notifications. + |
+
period + |
+Integer + |
+Statistical period. + |
+
policy_name + |
+String + |
+Threshold rule name. + |
+
resources + |
+Array of strings + |
+Resource information (discarded). + |
+
state_reason + |
+String + |
+Cause description. + |
+
state_updated_timestamp + |
+String + |
+Time when the status was updated. + |
+
state_value + |
+String + |
+Service status. + |
+
statistic + |
+String + |
+Statistic. + |
+
threshold + |
+String + |
+Threshold value. + |
+
type + |
+String + |
+Threshold rule type. + |
+
unit + |
+String + |
+Threshold unit. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
name + |
+String + |
+Dimension name. + |
+
value + |
+String + |
+Dimension value. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
error_type + |
+String + |
+Error type. + |
+
trace_id + |
+String + |
+Trace ID, which is used to search for logs and locate faults. If 2xx is returned, trace_id is empty. If 4xx, trace_id is not empty. + |
+
Obtain the alarm rule list of a user whose ID is Project_Id.
+https://{EndPoint}/v2/{Project_Id}/alarm-rules+
Status code: 200
+OK: The request is successful.
+{ + "meta_data" : [ { + "count" : 10, + "total" : 100 + } ], + "thresholds" : [ { + "action_enable" : false, + "alarm_actions" : null, + "alarm_advice" : null, + "alarm_description" : null, + "alarm_level" : 3, + "alarm_rule_id" : 2137, + "alarm_rule_name" : "aom_rule", + "comparison_operator" : ">=", + "dimensions" : [ { + "name" : "appName" + }, { + "value" : "rhm-broker" + } ], + "evaluation_periods" : 1, + "id_turn_on" : true, + "insufficient_data_actions" : null, + "metric_name" : "cpuCoreLimit", + "namespace" : "PAAS.CONTAINER", + "ok_actions" : null, + "period" : 60000, + "policy_name" : "23,", + "resources" : [ ], + "state_reason" : null, + "state_updated_timestamp" : null, + "state_value" : "alarm", + "statistic" : "average", + "threshold" : 0, + "type" : "single,", + "unit" : "Core" + } ] +}+
Status code: 400
+Bad Request: The request is invalid. The client should not repeat the request without modifications.
+{ + "error_code" : "AOM.02001AOM.02001SVCSTG_AMS_4000115", + "error_msg" : "please check request param", + "error_type" : "BAD_REQUEST", + "trace_id" : "" +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+OK: The request is successful. + |
+
400 + |
+Bad Request: The request is invalid. The client should not repeat the request without modifications. + |
+
401 + |
+Unauthorized: The authentication information is incorrect or invalid. + |
+
403 + |
+Forbidden: The request is rejected. The server has received the request and understood it, but the server refuses to respond to it. The client should not repeat the request without modifications. + |
+
500 + |
+Internal Server Error: The server is able to receive the request but unable to understand the request. + |
+
503 + |
+Service Unavailable: The requested service is invalid. The client should not repeat the request without modifications. + |
+
See Error Codes.
+This API is used to query events and alarms of a user.
+POST /v2/{project_id}/events
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID obtained from IAM. Generally, a project ID contains 32 characters. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
type + |
+No + |
+String + |
+Type of information to be queried. active_alert: Active alarms are to be queried. history_alert: Historical alarms are to be queried. If this parameter is not transferred or other values are transferred, information that meets the specified search criteria will be returned. +Enumeration values: +
|
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. + |
+
Content-Type + |
+Yes + |
+String + |
+Content type, which is application/json. +Enumeration values: +
|
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
time_range + |
+Yes + |
+String + |
+Time range specified to query data of the last N minutes when the client time is inconsistent with the server time. It can also be used to accurately query the data of a specified period. +Example: +
Format: +startTimeInMillis.endTimeInMillis.durationInMinutes +Parameter description: +
Constraint: +In a single request, the following condition must be met: durationInMinutes x 60/period ≤ 1440 + |
+
step + |
+No + |
+Long + |
+Statistical step (unit: ms). For example, if the statistical step is one minute, set this parameter to 60,000. + |
+
search + |
+No + |
+String + |
+Field specified for fuzzy query, which can be left blank. If this field is not left blank, fuzzy query can be performed accordingly. In that case, the metadata field is mandatory. + |
+
sort + |
+No + |
+sort object + |
+Sorting order, which can be left blank. + |
+
metadata_relation + |
+No + |
+Array of RelationModel objects + |
+Combination of search criteria, which can be left blank. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
order_by + |
+No + |
+Array of strings + |
+List of sorted fields. Fields in this list are sorted based on the specified order. + |
+
order + |
+No + |
+String + |
+Sorting order. asc: ascending order. desc: descending order. +Enumeration values: +
|
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
key + |
+No + |
+String + |
+Key specified for query, which corresponds to the key in the metadata. + |
+
value + |
+No + |
+Array of strings + |
+Value of the specified key in the search criterion. + |
+
relation + |
+No + |
+String + |
+Relationship between search criteria. Values: AND: All criteria must be met. OR: One of the criteria needs to be met. NOT: None of the criteria can be met. +Enumeration values: +
|
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
events + |
+Array of EventModel objects + |
+Event or alarm details. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
starts_at + |
+Long + |
+Time when an event or alarm is generated (CST timestamp precise down to the millisecond). + |
+
ends_at + |
+Long + |
+Time when an event or alarm is cleared (CST timestamp precise down to the millisecond). 0: The event or alarm is not deleted. + |
+
timeout + |
+Long + |
+Duration (in milliseconds) at which an alarm is automatically cleared. For example, if an alarm needs to be automatically cleared in one minute, set this parameter to 60000. The default value is 3 days (that is, 3 days x 24 hours x 60 minutes x 1000 ms = 4,320,000 ms). + |
+
metadata + |
+Map<String,String> + |
+Details of an event or alarm. The value is a key-value pair. The following fields are mandatory: +
|
+
annotations + |
+Map<String,String> + |
+Additional field for an event or alarm, which can be left blank. + |
+
attach_rule + |
+Map<String,String> + |
+Reserved field for an event or alarm, which can be left blank. + |
+
id + |
+String + |
+Event or alarm ID, which is automatically generated by the system. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Response code. + |
+
error_msg + |
+String + |
+Error description. + |
+
error_type + |
+String + |
+API call failure type. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Response code. + |
+
error_msg + |
+String + |
+Error description. + |
+
error_type + |
+String + |
+API call failure type. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Response code. + |
+
error_msg + |
+String + |
+Error description. + |
+
error_type + |
+String + |
+API call failure type. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Response code. + |
+
error_msg + |
+String + |
+Error description. + |
+
error_type + |
+String + |
+API call failure type. + |
+
Status code: 503
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Response code. + |
+
error_msg + |
+String + |
+Error description. + |
+
error_type + |
+String + |
+API call failure type. + |
+
Query the events and alarms of a specified user.
+https://{endpoint}/v2/{project_id}/events + +{ + "time_range" : "-1.-1.30", + "metadata_relation" : [ { + "key" : "event_type", + "relation" : "AND", + "value" : [ "alarm" ] + }, { + "key" : "event_severity", + "relation" : "AND", + "value" : [ "Critical", "Major", "Minor", "Info" ] + } ], + "search" : "", + "sort" : { + "order_by" : [ "starts_at" ], + "order" : "desc" + } +}+
Status code: 200
+OK: The request is successful.
+{ + "events" : [ { + "annotations" : { + "alarm_probableCause_zh_cn" : "Possible Causes", + "message" : "Alarm Details", + "alarm_fix_suggestion_zh_cn" : "Suggestions" + }, + "attach_rule" : { }, + "ends_at" : 0, + "id" : "6775161208461480000", + "metadata" : { + "event_type" : "alarm", + "event_severity" : "Major", + "resource_type" : "vm", + "event_name" : "test", + "resource_id" : "ecs123", + "resource_provider" : "ecs" + }, + "starts_at" : 16377362908000, + "timeout" : 60000 + } ] +}+
Status code: 400
+Bad Request: The request is invalid. The client should not repeat the request without modifications.
+{ + "error_code" : "AOM.0400", + "error_message" : "param error", + "error_type" : "SC_BAD_REQUEST" +}+
Status code: 401
+Unauthorized: The authentication information is incorrect or invalid.
+{ + "error_code" : "AOM.0401", + "error_message" : "you dont have permission", + "error_type" : "SC_UNAUTHORIZED" +}+
Status code: 403
+Forbidden: The request is rejected. The server has received the request and understood it, but the server refuses to respond to it. The client should not repeat the request without modifications.
+{ + "error_code" : "AOM.0403", + "error_message" : "you dont have permission", + "error_type" : "SC_FORBIDDEN" +}+
Status code: 500
+Internal Server Error: The server is able to receive the request but unable to understand the request.
+{ + "error_code" : "AOM.0500", + "error_message" : "SC_INTERNAL_SERVER_ERROR", + "error_type" : "SC_INTERNAL_SERVER_ERROR" +}+
Status code: 503
+Service Unavailable: The requested service is invalid. The client should not repeat the request without modifications.
+{ + "error_code" : "AOM.0503", + "error_message" : "SC_NOT_IMPLEMENTED", + "error_type" : "SC_NOT_IMPLEMENTED" +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+OK: The request is successful. + |
+
400 + |
+Bad Request: The request is invalid. The client should not repeat the request without modifications. + |
+
401 + |
+Unauthorized: The authentication information is incorrect or invalid. + |
+
403 + |
+Forbidden: The request is rejected. The server has received the request and understood it, but the server refuses to respond to it. The client should not repeat the request without modifications. + |
+
500 + |
+Internal Server Error: The server is able to receive the request but unable to understand the request. + |
+
503 + |
+Service Unavailable: The requested service is invalid. The client should not repeat the request without modifications. + |
+
See Error Codes.
+This API is used to query logs by different dimensions, such as by cluster, IP address, or application. Pagination queries are supported.
+POST /v1/{project_id}/als/action
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID obtained from IAM. Generally, a project ID contains 32 characters. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
type + |
+Yes + |
+String + |
+Log API call mode. When the value is querylogs, this API is used to query logs. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. + |
+
Content-Type + |
+Yes + |
+String + |
+Content type, which is application/json. +Enumeration values: +
|
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
category + |
+Yes + |
+String + |
+Log type. Values: app_log: application log. node_log: node log.custom_log: log in a custom path. + |
+
endTime + |
+Yes + |
+Long + |
+End time of the query (UTC, in ms). + |
+
hideSyslog + |
+No + |
+Integer + |
+Whether to hide system logs during log queries. 0: Hide system logs. 1: Show system logs. + |
+
keyWord + |
+No + |
+String + |
+Keyword for search. +
|
+
lineNum + |
+No + |
+String + |
+Sequence number of the final log in the last query result. This parameter is not required for the first query, but is required for subsequent pagination queries. + |
+
pageSize/size + |
+No + |
+String + |
+Number of logs queried each time. Default value: 5000. Recommended value: 100. For the first query, pageSize is used. For subsequent pagination queries, size is used. + |
+
searchKey + |
+Yes + |
+SearchKey object + |
+Log filter criteria, which vary according to log sources. + |
+
startTime + |
+Yes + |
+Long + |
+Start time of the query (UTC, in ms). + |
+
type + |
+No + |
+String + |
+Pagination query. This parameter is not required for the first query, but is required for subsequent pagination queries. + |
+
isDesc + |
+No + |
+Boolean + |
+Whether to query logs based on lineNum in ascending or descending order. true: lineNum in descending order (from the latest time to the earliest time) false: lineNum in ascending order (from the earliest time to the latest time) + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
appName + |
+No + |
+String + |
+Application name. + |
+
clusterId + |
+Yes + |
+String + |
+CCE cluster ID. + |
+
hostIP + |
+No + |
+String + |
+IP address of the VM where logs are located. + |
+
nameSpace + |
+No + |
+String + |
+CCE cluster namespace. + |
+
pathFile + |
+No + |
+String + |
+Log file name. + |
+
podName + |
+No + |
+String + |
+Container instance name. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
errorCode + |
+String + |
+Response code. SVCSTG_AMS_2000000: Success response. + |
+
errorMessage + |
+String + |
+Response message. + |
+
result + |
+String + |
+Metadata, including results and the total number of returned records. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
errorCode + |
+String + |
+Response code. + |
+
errorMessage + |
+String + |
+Response message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
errorCode + |
+String + |
+Response code. + |
+
errorMessage + |
+String + |
+Response message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
errorCode + |
+String + |
+Response code. + |
+
errorMessage + |
+String + |
+Response message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
errorCode + |
+String + |
+Response code. + |
+
errorMessage + |
+String + |
+Response message. + |
+
Status code: 503
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
errorCode + |
+String + |
+Response code. + |
+
errorMessage + |
+String + |
+Response message. + |
+
Example 1: Query application logs under a cluster.
+"POST https://{endpoint}/v1/{project_id}/als/action?type=querylogs" + +{ + "category" : "app_log", + "endTime" : 15389000003, + "hideSyslog" : 0, + "keyWord" : "", + "searchKey" : { + "clusterId" : "c69xxxc-5xxx-1xxx-8xxx5-02xxxxx40" + }, + "startTime" : 15389000003 +}+
Example 2: Perform pagination queries. Notes:
+For pagination queries, the lineNum (sequence number of the final log in the last query result), type (value: next), and size parameters need to be added.
+The values of category, searchKey, keyWord, startTime, and endTime must be the same as those in the first query.
+To implement another pagination query, change the value of lineNum to the sequence number of the final log in the last query result. The rest may be deduced by analogy.
+/v1/{project_id}/als/action?type=querylogs + +{ + "category" : "app_log", + "searchKey" : { + "clusterId" : "874xxx9a2-xxxf-xxx-8xxe-02xxxxx3" + }, + "keyWord" : "", + "startTime" : 156946300095, + "endTime" : 15694600008895, + "lineNum" : "1569463900000047", + "type" : "next", + "size" : 100, + "hideSyslog" : 0 +}+
Status code: 200
+OK: The request is successful.
+{ + "errorCode" : "SVCSTG.ALS.200.200", + "errorMessage" : "Query data success", + "result" : [ { + "data" : [ { + "appName" : "axxs0712", + "category" : "apx", + "clusterId" : "c6xxxx7c-54cd-11e8-8055-025xxx1e40", + "collectTime" : 153900000983, + "containerName" : "contsssner-0", + "hostIP" : "1xx.xxx.0.1xxx", + "hostId" : "c11xxxxx11-0000b-4925-bef4-d0xxxx9b0", + "hostName" : "1x2.168.0.xxx", + "lineNum" : "1xxx23xxxxxx2VW5xxxxxx0ZWdlcg==", + "logContent" : "warn:2018/10/09 06:57:01 helloworld.go:108: the main processis running now.", + "logContentSize" : null, + "loghash" : "4xxxxx0d40a83c17f262540xxxxxxxxfeaa30eb", + "nameSpace" : "default", + "pathFile" : "/xxx/xxx/xxx/xxx/xxx/xxx.trxe", + "podName" : "axxx12-7xxf884-qxxwp", + "serviceID" : "" + } ], + "total" : 5000 + } ] +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+OK: The request is successful. + |
+
400 + |
+Bad Request: The request is invalid. The client should not repeat the request without modifications. + |
+
401 + |
+Unauthorized: The authentication information is incorrect or invalid. + |
+
403 + |
+Forbidden: The request is rejected. The server has received the request and understood it, but the server refuses to respond to it. The client should not repeat the request without modifications. + |
+
500 + |
+Internal Server Error: The server is able to receive the request but unable to understand the request. + |
+
503 + |
+Service Unavailable: The requested service is invalid. The client should not repeat the request without modifications. + |
+
See Error Codes.
+This API is used to query the metrics that can be monitored in the system. You can query specific metrics by specifying a namespace, metric name, dimension, and resource ID (format: resType_resId). You can also specify the start position and the maximum number of returned records for a pagination query.
+POST /v1/{project_id}/ams/metrics
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID obtained from IAM. Generally, a project ID contains 32 characters. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
type + |
+No + |
+String + |
+Metric query mode. + |
+
limit + |
+No + |
+String + |
+Maximum number of returned records. Value range: 1–1000. Default value: 1000. +Minimum: 0 +Maximum: 4 + |
+
start + |
+No + |
+String + |
+Start position of a pagination query. The value is a non-negative integer. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. + |
+
Content-Type + |
+Yes + |
+String + |
+Content type, which is application/json. +Enumeration values: +
|
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
inventoryId + |
+No + |
+String + |
+Resource ID, which must be in the format of resType_resId. Enumerated values of resType: host, application, instance, container, process, network, storage, and volume.When type (a URI parameter) is inventory, this parameter instead of metricItems is used for associated metric queries. + |
+
metricItems + |
+No + |
+Array of QueryMetricItemOptionParam objects + |
+If the value of type in the URI is not inventory, metrics are queried based on the information carried by metricItems. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
dimensions + |
+No + |
+Array of Dimension objects + |
+List of metric dimensions. + |
+
metricName + |
+No + |
+String + |
+Metric name. Length: 1 to 255 characters. Value range: cpuUsage, cpuCoreUsed, and other basic metrics provided by AOM. cpuUsage: CPU usage. cpuCoreUsed: used CPU cores. Custom metrics. + |
+
namespace + |
+Yes + |
+String + |
+Metric namespace. Values: PAAS.CONTAINER: namespace of component, instance, process, and container metrics. PAAS.NODE: namespace of host, network, disk, and file system metrics. PAAS.SLA: namespace of SLA metrics. PAAS.AGGR: namespace of cluster metrics. CUSTOMMETRICS: default namespace of custom metrics. +Enumeration values: +
|
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
metaData + |
+metaData object + |
+Metadata, including pagination information. + |
+
metrics + |
+Array of MetricItemResultAPI objects + |
+Metric list. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
count + |
+Integer + |
+Number of returned records. + |
+
nextToken + |
+Long + |
+Start of the next page, which is used for pagination. null: No more data. + |
+
total + |
+Integer + |
+Total number of records. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
dimensions + |
+Array of Dimension objects + |
+List of metric dimensions. + |
+
metricName + |
+String + |
+Metric name. + |
+
namespace + |
+String + |
+Namespace. + |
+
unit + |
+String + |
+Metric unit. + |
+
Query metrics by inventory ID.
+https://{Endpoint}/v1/{project_id}/ams/metrics + +{ + "metricItems" : [ { + "namespace" : "PAAS.CONTAINER", + "dimensions" : [ { + "name" : "appName", + "value" : "aomApp" + }, { + "name" : "clusterName", + "value" : "aomCluster" + } ] + } ] +}+
Query metrics by namespace, appName, and clusterName.
+https://{Endpoint}/v1/{project_id}/ams/metrics?type=inventory + +{ + "inventoryId" : "application_xxxxxxxx-xxxx-xxxx-xxxx-xxxxx3fee10" +}+
Status code: 200
+OK: The request is successful.
+{ + "errorCode" : "SVCSTG_AMS_2000000", + "errorMessage" : "success", + "metaData" : { + "count" : 1, + "nextToken" : null, + "total" : 1 + }, + "metrics" : [ { + "namespace" : "PAAS.CONTAINER", + "metricName" : "aom_process_cpu_usage", + "unit" : "Percent", + "dimensions" : [ { + "name" : "appName", + "value" : "aomApp" + } ] + } ] +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+OK: The request is successful. + |
+
400 + |
+Bad Request: The request is invalid. The client should not repeat the request without modifications. + |
+
401 + |
+Unauthorized: The authentication information is incorrect or invalid. + |
+
403 + |
+Forbidden: The request is rejected. The server has received the request and understood it, but the server refuses to respond to it. The client should not repeat the request without modifications. + |
+
500 + |
+Internal Server Error: The server is able to receive the request but unable to understand the request. + |
+
503 + |
+Service Unavailable +The requested service is invalid. The client should not repeat the request without modifications. + |
+
See Error Codes.
+This API is used to query time series data within a specified time period. You can specify a dimension or period to query.
+POST /v2/{project_id}/samples
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID obtained from IAM. Generally, a project ID contains 32 characters. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
fill_value + |
+No + |
+String + |
+Value filled for breakpoints in time series data. Default value: –1. –1: Breakpoints are filled with –1. 0: Breakpoints are filled with 0. null: Breakpoints are filled with null. average: Breakpoints are filled with the average value of the adjacent valid data. If there is no valid data, breakpoints are filled with null. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
samples + |
+Yes + |
+Array of QuerySample objects + |
+List of time series objects. A JSON array can contain up to 20 objects. + |
+
statistics + |
+Yes + |
+Array of strings + |
+Statistic. Values: maximum, minimum, sum, average, and sampleCount. + |
+
period + |
+Yes + |
+Integer + |
+Granularity for monitoring data, which is an enumerated value. Values: 60: The data monitoring granularity is 1 minute. 300: The data monitoring granularity is 5 minutes. 900: The data monitoring granularity is 15 minutes. 3600: The data monitoring granularity is 1 hour. + |
+
time_range + |
+Yes + |
+String + |
+Time range specified to query data of the last N minutes when the client time is inconsistent with the server time. It can also be used to accurately query the data of a specified period. +Example: +
Format: +startTimeInMillis.endTimeInMillis.durationInMinutes +Parameter description: +
Constraint: +In a single request, the following condition must be met: durationInMinutes x 60/period ≤ 1440 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
namespace + |
+Yes + |
+String + |
+Namespace of time series objects. Value range: PAAS.CONTAINER, PAAS.NODE, PAAS.SLA, PAAS.AGGR, or CUSTOMMETRICS. PAAS.CONTAINER: namespace of application time series objects. PAAS.NODE: namespace of node time series objects. PAAS.SLA: namespace of SLA time series objects. PAAS.AGGR: namespace of cluster time series objects. CUSTOMMETRICS: namespace of custom time series objects. + |
+
dimensions + |
+Yes + |
+Array of DimensionSeries objects + |
+List of time series dimensions.You can call the /v2/{project_id}/series API to query the time series dimension list by namespace and metric_name. + |
+
metric_name + |
+Yes + |
+String + |
+Time series name. Length: 1 to 255 characters. Values: cpuUsage: CPU usage. cpuCoreUsed: used CPU cores. Custom time series names. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
samples + |
+Array of SampleDataValue objects + |
+List of time series objects. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
sample + |
+QuerySample object + |
+List of time series objects. + |
+
data_points + |
+Array of MetricDataPoints objects + |
+Time series data. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
namespace + |
+String + |
+Namespace of time series objects. Value range: PAAS.CONTAINER, PAAS.NODE, PAAS.SLA, PAAS.AGGR, or CUSTOMMETRICS. PAAS.CONTAINER: namespace of application time series objects. PAAS.NODE: namespace of node time series objects. PAAS.SLA: namespace of SLA time series objects. PAAS.AGGR: namespace of cluster time series objects. CUSTOMMETRICS: namespace of custom time series objects. + |
+
dimensions + |
+Array of DimensionSeries objects + |
+List of time series dimensions.You can call the /v2/{project_id}/series API to query the time series dimension list by namespace and metric_name. + |
+
metric_name + |
+String + |
+Time series name. Length: 1 to 255 characters. Values: cpuUsage: CPU usage. cpuCoreUsed: used CPU cores. Custom time series names. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
name + |
+String + |
+Dimension name. + |
+
value + |
+String + |
+Dimension value. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
statistics + |
+Array of StatisticValue objects + |
+Statistic. + |
+
timestamp + |
+Long + |
+Timestamp. + |
+
unit + |
+String + |
+Time series unit. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
statistic + |
+String + |
+Statistic. + |
+
value + |
+Double + |
+Statistical result. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
error_type + |
+String + |
+Error type. + |
+
Query time series data in the last five minutes by namespace, metric_name, and dimensions.
+https://{Endpoint}/v2/{project_id}/samples + +{ + "samples": [ + { + "namespace": "PAAS.CONTAINER", + "metric_name": "aom_process_cpu_usage", + "dimensions": [ + { + "name": "appName", + "value": "aomApp" + } + ] + } + ], + "period": 60, + "time_range": "-1.-1.5",// Last 5 minutes + "statistics": [ + "sum" + ] +}+
Status code: 200
+OK: The request is successful.
+{ + "samples" : [ { + "sample" : { + "namespace" : "PAAS.CONTAINER", + "metric_name" : "aom_process_cpu_usage", + "dimensions" : [ { + "name" : "appName", + "value" : "aomApp" + } ] + }, + "data_points" : [ { + "timestamp" : "1694673300000", + "unit" : "Percent", + "statistics" : [ { + "statistic" : "sum", + "value" : "23" + } ] + } ] + } ] +}+
Status code: 400
+Bad Request: The request is invalid. The client should not repeat the request without modifications.
+{ + "error_code" : "AOM.04008001", + "error_msg" : "please check request param", + "error_type" : "BAD_REQUEST" +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+OK: The request is successful. + |
+
400 + |
+Bad Request: The request is invalid. The client should not repeat the request without modifications. + |
+
401 + |
+Unauthorized: The authentication information is incorrect or invalid. + |
+
403 + |
+Forbidden: The request is rejected. The server has received the request and understood it, but the server refuses to respond to it. The client should not repeat the request without modifications. + |
+
500 + |
+Internal Server Error: The server is able to receive the request but unable to understand the request. + |
+
503 + |
+Service Unavailable: The requested service is invalid. The client should not repeat the request without modifications. + |
+
See Error Codes.
+This API is used to query the time series objects that can be monitored in the system. You can specify a namespace, name, dimension, and resource ID (format: resType_resId). You can also specify the start position and the maximum number of returned records for a pagination query.
+POST /v2/{project_id}/series
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID obtained from IAM. Generally, a project ID contains 32 characters. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
limit + |
+No + |
+String + |
+Maximum number of returned records. Value range: 1–1000. Default value: 1000. + |
+
offset + |
+No + |
+String + |
+Start position of a pagination query. The value is a non-negative integer. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
series + |
+Yes + |
+Array of QuerySeriesOptionParam objects + |
+Array for querying time series objects. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
namespace + |
+Yes + |
+String + |
+Namespace of time series objects. Value range: PAAS.CONTAINER, PAAS.NODE, PAAS.SLA, PAAS.AGGR, or CUSTOMMETRICS. PAAS.CONTAINER: namespace of application time series objects. PAAS.NODE: namespace of node time series objects. PAAS.SLA: namespace of SLA time series objects. PAAS.AGGR: namespace of cluster time series objects. CUSTOMMETRICS: namespace of custom time series objects. + |
+
metric_name + |
+No + |
+String + |
+Time series name. Length: 1 to 255 characters. Values: cpuUsage: CPU usage. cpuCoreUsed: used CPU cores. Custom time series names. + |
+
dimensions + |
+No + |
+Array of DimensionSeries objects + |
+List of time series dimensions. You can call the /v2/{project_id}/series API to query the time series dimension list by namespace and metric_name. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
series + |
+Array of SeriesQueryItemResult objects + |
+List of time series objects. + |
+
meta_data + |
+MetaDataSeries object + |
+Metadata, including pagination information. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
namespace + |
+String + |
+Namespace. + |
+
dimensions + |
+Array of DimensionSeries objects + |
+Dimension list. + |
+
metric_name + |
+String + |
+Time series name. + |
+
unit + |
+String + |
+Time series unit. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
name + |
+String + |
+Dimension name. + |
+
value + |
+String + |
+Dimension value. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
count + |
+Integer + |
+Number of returned records. + |
+
offset + |
+Integer + |
+Start of the next page, which is used for pagination. null: No more data. + |
+
total + |
+Integer + |
+Total number of records. + |
+
nextToken + |
+Integer + |
+Offset. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
error_type + |
+String + |
+Error type. + |
+
Query time series objects by namespace and metric_name.
+https://{Endpoint}/v2/{project_id}/series + +{ + "series" : [ { + "namespace" : "PAAS.CONTAINER", + "metric_name" : "aom_process_cpu_usage" + } ] +}+
Status code: 200
+OK: The request is successful.
+{ + "meta_data" : { + "count" : 1, + "offset" : null, + "total" : 1, + "nextToken" : 0 + }, + "series" : [ { + "namespace" : "PAAS.CONTAINER", + "metric_name" : "cpuUsage", + "unit" : "Percent", + "dimensions" : [ { + "name" : "appName", + "value" : "appValue" + } ] + } ] +}+
Status code: 400
+Bad Request: The request is invalid. The client should not repeat the request without modifications.
+{ + "error_code" : "AOM.04007001", + "error_msg" : "please check request param", + "error_type" : "BAD_REQUEST" +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+OK: The request is successful. + |
+
400 + |
+Bad Request: The request is invalid. The client should not repeat the request without modifications. + |
+
401 + |
+Unauthorized: The authentication information is incorrect or invalid. + |
+
403 + |
+Forbidden: The request is rejected. The server has received the request and understood it, but the server refuses to respond to it. The client should not repeat the request without modifications. + |
+
500 + |
+Internal Server Error: The server is able to receive the request but unable to understand the request. + |
+
503 + |
+Service Unavailable: The requested service is invalid. The client should not repeat the request without modifications. + |
+
See Error Codes.
+This API is used to query existing service discovery rules in the system.
+GET /v1/{project_id}/inv/servicediscoveryrules
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID obtained from IAM. Generally, a project ID contains 32 characters. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
id + |
+No + |
+String + |
+Service discovery rule ID, which corresponds to a service discovery rule. If this parameter is left blank, all service discovery rules in the project are returned. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. + |
+
Content-Type + |
+Yes + |
+String + |
+Content type, which is application/json. +Enumeration values: +
|
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
appRules + |
+Array of AppRules objects + |
+Rule information. + |
+
errorCode + |
+String + |
+Response code. AOM_INVENTORY_2000000: Success response. + |
+
errorMessage + |
+String + |
+Response message. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
createTime + |
+String + |
+Creation time. When creating a service discovery rule, leave this parameter blank. When modifying a service discovery rule, enter the returned createTime. +Default: 1599098476654 + |
+
enable + |
+Boolean + |
+Whether a rule is enabled. Values: true and false. + |
+
eventName + |
+String + |
+aom_inventory_rules_event Rule event name. For service discovery, the fixed value is aom_inventory_rules_event. + |
+
hostid + |
+Array of strings + |
+Host ID. Currently, this parameter is not used and can be left blank. + |
+
id + |
+String + |
+Rule ID. When creating a service discovery rule, leave this parameter blank. When modifying a service discovery rule, enter a rule ID. + |
+
name + |
+String + |
+Rule name, which contains a maximum of 64 characters. It must start with a lowercase letter but cannot end with a hyphen (-). Only digits, lowercase letters, and hyphens are allowed. + |
+
projectid + |
+String + |
+Project ID obtained from IAM. Generally, a project ID contains 32 characters. + |
+
spec + |
+AppRulesSpec object + |
+Rule details. + |
+
desc + |
+String + |
+Custom description + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
appType + |
+String + |
+Service type, which is used only for rule classification and UI display. You can enter any field. For example, enter Java or Python by technology stack, or enter collector or database by function. + |
+
attrList + |
+Array of strings + |
+Attribute list. Currently, this parameter is not used and can be left blank. Values: cmdLine and env. + |
+
detectLog + |
+String + |
+Whether to enable log collection. Values: true and false. + |
+
discoveryRule + |
+Array of DiscoveryRule objects + |
+Discovery rule. If the array contains multiple conditions, only the processes that meet all the conditions will be matched. If the value of checkType is cmdLine, set the value of checkMode to contain. checkContent is in the format of ["xxx"], indicating that the process must contain the xxx parameter. If the value of checkType is env, set the value of checkMode to contain. checkContent is in the format of ["k1","v1"], indicating that the process must contain the environment variable whose name is k1 and value is v1. If the value of checkType is scope, set the value of checkMode to equals. checkContent is in the format of ["hostId1","hostId2"], indicating that the rule takes effect only on specified nodes. If no nodes are specified, the rule applies to all nodes of the project. + |
+
isDefaultRule + |
+String + |
+Whether the rule is the default one. Values: true and false. + |
+
isDetect + |
+String + |
+Whether the scenario is a pre-check scenario. No rules will be saved in the pre-check scenario. This scenario is designed only to check whether a rule can detect node processes before it is delivered. Values: true and false. + |
+
logFileFix + |
+Array of strings + |
+Log file suffix. Values: log, trace, and out. + |
+
logPathRule + |
+Array of LogPathRule objects + |
+Log path configuration rule. If cmdLineHash is a fixed string, logs in the specified log path or log file are collected. Otherwise, only the files whose names end with .log or .trace are collected. If the value of nameType is cmdLineHash, args is in the format of ["00001"] and value is in the format of ["/xxx/xx.log"], indicating that the log path is /xxx/xx.log when the startup command is 00001. + |
+
nameRule + |
+NameRule object + |
+Naming rules for discovered services and applications. + |
+
priority + |
+Integer + |
+Rule priority. Value range: 1 to 9999. Default value: 9999. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
checkContent + |
+Array of strings + |
+Matched value. + |
+
checkMode + |
+String + |
+Match condition. Values: contain and equals. + |
+
checkType + |
+String + |
+Match type. Values: cmdLine, env, and scope. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
args + |
+Array of strings + |
+Command. + |
+
nameType + |
+String + |
+Value type, which can be cmdLineHash. + |
+
value + |
+Array of strings + |
+Log path. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
appNameRule + |
+Array of AppNameRule objects + |
+Service name rule. If there are multiple objects in the array, the character strings extracted from these objects constitute the service name. If the value of nameType is cmdLine, args is in the format of ["start", "end"], indicating that the characters between start and end in the command are extracted.If the value of nameType is cmdLine, args is in the format of ["aa"], indicating that the environment variable named aa is extracted.If the value of nameType is str, args is in the format of ["fix"], indicating that the service name is suffixed with fix.If the value of nameType is cmdLineHash, args is in the format of ["0001"] and value is in the format of ["ser"], indicating that the service name is ser when the startup command is 0001. + |
+
applicationNameRule + |
+Array of ApplicationNameRule objects + |
+Application name rule.If the value of nameType is cmdLine, args is in the format of ["start", "end"], indicating that the characters between start and end in the command are extracted.If the value of nameType is cmdLine, args is in the format of ["aa"], indicating that the environment variable named aa is extracted.If the value of nameType is str, args is in the format of ["fix"], indicating that the service name is suffixed with fix.If the value of nameType is cmdLineHash, args is in the format of ["0001"] and value is in the format of ["ser"], indicating that the application name is ser when the startup command is 0001. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
nameType + |
+String + |
+Value type. Values: cmdLineHash, cmdLine, env, and str. + |
+
args + |
+Array of strings + |
+Input value. + |
+
value + |
+Array of strings + |
+Service name, which is mandatory only when the value of nameType is cmdLineHash. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
nameType + |
+String + |
+Value type. Values: cmdLineHash, cmdLine, env, and str. + |
+
args + |
+Array of strings + |
+Input value. + |
+
value + |
+Array of strings + |
+Service name, which is mandatory only when the value of nameType is cmdLineHash. + |
+
Query the application discovery rule.
+https://{endpoint}/v1/{project_id}/inv/servicediscoveryrules?id=********-6066-****-8cc7-********+
Status code: 200
+OK: The request is successful.
+{ + "appRules" : [ { + "createTime" : "1694705814424", + "enable" : true, + "name" : "icaaant", + "eventName" : "aom_inventory_rules_event", + "hostid" : [ ], + "id" : "********-6066-****-8cc7-********", + "projectid" : "684fc87a79d7xxxx22e62a7da95b", + "spec" : { + "detectLog" : "true", + "editable" : null, + "logPathRule" : [ ], + "priority" : 9999, + "attrList" : [ "cmdLine" ], + "nameRule" : { + "appNameRule" : [ { + "args" : [ "/opt/********* -DNFW=ica**nt" ], + "nameType" : "cmdLineHash", + "value" : [ "aicagentserver" ] + } ], + "applicationNameRule" : [ { + "args" : [ "/opt/*********** -DNFW=ica**nt" ], + "nameType" : "cmdLineHash", + "value" : [ "aica**nt" ] + } ] + }, + "appType" : "", + "aom_metric_relabel_configs" : null, + "logFileFix" : [ "log", "trace", "out" ], + "isDetect" : "false", + "isDefaultRule" : null, + "dataSource" : null, + "discoveryRule" : [ { + "checkType" : "cmdLine", + "checkContent" : [ "-DNFW=ica**nt" ], + "checkMode" : "contain" + } ] + }, + "desc" : "Custom description" + } ], + "errorMessage" : null, + "errorCode" : "SVCSTG.INV.2000000", + "id" : [ ] +}+
Status code: 404
+Not Found: The requested resource could not be found. The client should not repeat this request without modification.
+{ + "appRules" : [ ], + "errorMessage" : "Inventory does not exists", + "errorCode" : "SVCSTG.INV.4040000", + "id" : [ ] +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+OK: The request is successful. + |
+
400 + |
+Bad Request: The request is invalid. The client should not repeat the request without modifications. + |
+
401 + |
+Unauthorized: The authentication information is incorrect or invalid. + |
+
403 + |
+Forbidden: The request is rejected. The server has received the request and understood it, but the server refuses to respond to it. The client should not repeat the request without modifications. + |
+
404 + |
+Not Found: The requested resource could not be found. The client should not repeat this request without modification. + |
+
500 + |
+Internal Server Error: The server is able to receive the request but unable to understand the request. + |
+
503 + |
+Service Unavailable: The requested service is invalid. The client should not repeat the request without modifications. + |
+
See Error Codes.
+This API is used to report events and alarms of a user.
+PUT /v2/{project_id}/push/events
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID obtained from IAM. Generally, a project ID contains 32 characters. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
action + |
+No + |
+String + |
+Requested action. clear: The alarm is to be cleared. If this parameter is not transferred or other values are transferred, the alarm is reported by default. +Enumeration values: +
|
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. + |
+
Content-Type + |
+Yes + |
+String + |
+Content type, which is application/json. +Enumeration values: +
|
+
x-enterprise-prject-id + |
+No + |
+String + |
+ID of the enterprise project to which the alarm belongs. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
events + |
+Yes + |
+Array of EventModel objects + |
+Event or alarm details. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
starts_at + |
+No + |
+Long + |
+Time when an event or alarm is generated (CST timestamp precise down to the millisecond). + |
+
ends_at + |
+No + |
+Long + |
+Time when an event or alarm is cleared (CST timestamp precise down to the millisecond). 0: The event or alarm is not deleted. + |
+
timeout + |
+No + |
+Long + |
+Duration (in milliseconds) at which an alarm is automatically cleared. For example, if an alarm needs to be automatically cleared in one minute, set this parameter to 60000. The default value is 3 days (that is, 3 days x 24 hours x 60 minutes x 1000 ms = 4,320,000 ms). + |
+
metadata + |
+No + |
+Map<String,String> + |
+Details of an event or alarm. The value is a key-value pair. The following fields are mandatory: +
|
+
annotations + |
+No + |
+Map<String,String> + |
+Additional field for an event or alarm, which can be left blank. + |
+
attach_rule + |
+No + |
+Map<String,String> + |
+Reserved field for an event or alarm, which can be left blank. + |
+
id + |
+No + |
+String + |
+Event or alarm ID, which is automatically generated by the system. + |
+
None
+Report an alarm named "test".
+https://{EndPoint}/v2/{project_id}/push/events + +{ + "events" : [ { + "starts_at" : 1605232501000, + "timeout" : 60000, + "metadata" : { + "event_name" : "test", + "event_severity" : "Major", + "event_type" : "alarm", + "resource_provider" : "ecs", + "resource_type" : "vm", + "resource_id" : "ecs123" + }, + "annotations" : { + "alarm_probableCause_zh_cn" : "Possible Causes", + "alarm_fix_suggestion_zh_cn" : "Suggestions", + "message" : "Alarm Details" + }, + "attach_rule" : { } + } ] +}+
None
+Status Code + |
+Description + |
+
---|---|
204 + |
+OK: The request is successful. + |
+
400 + |
+Bad Request: The request is invalid. The client should not repeat the request without modifications. + |
+
401 + |
+Unauthorized: The authentication information is incorrect or invalid. + |
+
403 + |
+Forbidden: The request is rejected. The server has received the request and understood it, but the server refuses to respond to it. The client should not repeat the request without modifications. + |
+
500 + |
+Internal Server Error: The server is able to receive the request but unable to understand the request. + |
+
503 + |
+Service Unavailable: The requested service is invalid. The client should not repeat the request without modifications. + |
+
See Error Codes.
+This API is used to query a threshold rule.
+GET /v2/{project_id}/alarm-rules/{alarm_rule_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID obtained from IAM. Generally, a project ID contains 32 characters. + |
+
alarm_rule_id + |
+Yes + |
+String + |
+Threshold rule ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. + |
+
Content-Type + |
+Yes + |
+String + |
+Content type, which is application/json. +Enumeration values: +
|
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
meta_data + |
+MetaData object + |
+Metadata, including pagination information. + |
+
thresholds + |
+Array of QueryAlarmResult objects + |
+Threshold rule list. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
count + |
+Integer + |
+Number of returned records. + |
+
start + |
+String + |
+Start of the next page, which is used for pagination. null: No more data. + |
+
total + |
+Integer + |
+Total number of records. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
action_enabled + |
+Boolean + |
+Whether to enable notification. + |
+
alarm_actions + |
+Array of strings + |
+List of alarm notifications. + |
+
alarm_advice + |
+String + |
+Alarm clearance suggestion. + |
+
alarm_description + |
+String + |
+Threshold rule description. + |
+
alarm_level + |
+String + |
+Alarm severity. + |
+
alarm_rule_id + |
+String + |
+Threshold rule ID. + |
+
alarm_rule_name + |
+String + |
+Threshold rule name. + |
+
comparison_operator + |
+String + |
+Comparison operator. + |
+
dimensions + |
+Array of Dimension objects + |
+List of time series dimensions. + |
+
evaluation_periods + |
+Integer + |
+Interval. + |
+
id_turn_on + |
+Boolean + |
+Whether to enable the threshold rule. + |
+
insufficient_data_actions + |
+Array of strings + |
+List of insufficient data notifications. + |
+
metric_name + |
+String + |
+Time series name. + |
+
namespace + |
+String + |
+Time series objects' namespace. + |
+
ok_actions + |
+Array of strings + |
+List of normal status notifications. + |
+
period + |
+Integer + |
+Statistical period. + |
+
policy_name + |
+String + |
+Threshold rule name. + |
+
resources + |
+Array of strings + |
+Resource information (discarded). + |
+
state_reason + |
+String + |
+Cause description. + |
+
state_updated_timestamp + |
+String + |
+Time when the status was updated. + |
+
state_value + |
+String + |
+Service status. + |
+
statistic + |
+String + |
+Statistic. + |
+
threshold + |
+String + |
+Threshold value. + |
+
type + |
+String + |
+Threshold rule type. + |
+
unit + |
+String + |
+Threshold unit. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
name + |
+String + |
+Dimension name. + |
+
value + |
+String + |
+Dimension value. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
error_type + |
+String + |
+Error type. + |
+
trace_id + |
+String + |
+Trace ID, which is used to search for logs and locate faults. If 2xx is returned, trace_id is empty. If 4xx, trace_id is not empty. + |
+
Obtain the details about the alarm rule whose ID is alarm_rule_id.
+https://{Endpoint}/v2/{project_id}/alarm-rules/{alarm_rule_id}+
Status code: 200
+OK: The request is successful.
+{ + "meta_data" : { + "count" : 1, + "start" : null, + "total" : 1 + }, + "thresholds" : [ { + "action_enabled" : false, + "alarm_actions" : null, + "alarm_advice" : null, + "alarm_description" : null, + "alarm_level" : 3, + "alarm_rule_id" : 2137, + "alarm_rule_name" : "aom_rule", + "comparison_operator" : ">=", + "dimensions" : [ { + "name" : "appName" + }, { + "value" : "rhm-broker" + } ], + "evaluation_periods" : 1, + "id_turn_on" : true, + "insufficient_data_actions" : null, + "metric_name" : "cpuCoreLimit", + "namespace" : "PAAS.CONTAINER", + "ok_actions" : null, + "period" : 60000, + "policy_name" : "23,", + "resources" : [ ], + "state_reason" : null, + "state_updated_timestamp" : null, + "statistic" : "average", + "threshold" : 0, + "type" : "single,", + "unit" : "Core" + } ] +}+
Status code: 400
+Bad Request: The request is invalid. The client should not repeat the request without modifications.
+{ + "error_code" : "AOM.02001AOM.02001SVCSTG_AMS_4000115", + "error_msg" : "please check request param", + "error_type" : "BAD_REQUEST", + "trace_id" : "" +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+OK: The request is successful. + |
+
400 + |
+Bad Request: The request is invalid. The client should not repeat the request without modifications. + |
+
401 + |
+Unauthorized: The authentication information is incorrect or invalid. + |
+
403 + |
+Forbidden: The request is rejected. The server has received the request and understood it, but the server refuses to respond to it. The client should not repeat the request without modifications. + |
+
500 + |
+Internal Server Error: The server is able to receive the request but unable to understand the request. + |
+
503 + |
+Service Unavailable: The requested service is invalid. The client should not repeat the request without modifications. + |
+
See Error Codes.
+This API is used to query monitoring data of metrics within a specified time period. You can specify a dimension or period to query.
+POST /v1/{project_id}/ams/metricdata
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID obtained from IAM. Generally, a project ID contains 32 characters. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
fillValue + |
+No + |
+String + |
+Value filled for breakpoints in monitoring data. Default value: –1. –1: Breakpoints are filled with –1. 0: Breakpoints are filled with 0. null: Breakpoints are filled with null. average: Breakpoints are filled with the average value of the adjacent valid data. If there is no valid data, breakpoints are filled with null. +Default: -1 +Enumeration values: +
|
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. + |
+
Content-Type + |
+Yes + |
+String + |
+Content type, which is application/json. +Enumeration values: +
|
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
metrics + |
+Yes + |
+Array of MetricQueryMeritcParam objects + |
+Metric list. A JSON array can contain up to 20 objects. + |
+
period + |
+Yes + |
+Integer + |
+Granularity for monitoring data, which is an enumerated value. Values: 60: The data monitoring granularity is 1 minute. 300: The data monitoring granularity is 5 minutes. 900: The data monitoring granularity is 15 minutes. 3600: The data monitoring granularity is 1 hour. + |
+
statistics + |
+Yes + |
+Array of strings + |
+Statistic. Values: maximum, minimum, sum, average, and sampleCount. + |
+
timerange + |
+Yes + |
+String + |
+Time range specified to query data of the last N minutes when the client time is inconsistent with the server time. It can also be used to accurately query the data of a specified period. +Example: +
Format: +startTimeInMillis.endTimeInMillis.durationInMinutes +Parameter description: +
Constraint: +In a single request, the following condition must be met: durationInMinutes x 60/period ≤ 1440 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
dimensions + |
+Yes + |
+Array of Dimension objects + |
+List of metric dimensions. Neither the array nor the name or value of any dimension in the array can be left blank. + |
+
metricName + |
+Yes + |
+String + |
+Metric name. Length: 1 to 255 characters. Value range: cpuUsage, cpuCoreUsed, and other basic metrics provided by AOM. cpuUsage: CPU usage. cpuCoreUsed: used CPU cores. Custom metrics. + |
+
namespace + |
+Yes + |
+String + |
+Metric namespace. Values: PAAS.CONTAINER: namespace of component, instance, process, and container metrics. PAAS.NODE: namespace of host, network, disk, and file system metrics. PAAS.SLA: namespace of SLA metrics. PAAS.AGGR: namespace of cluster metrics. CUSTOMMETRICS: default namespace of custom metrics. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
errorCode + |
+String + |
+Response code. + |
+
errorMessage + |
+String + |
+Response message. + |
+
metrics + |
+Array of MetricDataValue objects + |
+Metric list. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
dataPoints + |
+Array of MetricDataPoints objects + |
+Key metric. + |
+
metric + |
+MetricQueryMeritcParam object + |
+Query parameters. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
statistics + |
+Array of StatisticValue objects + |
+Statistic. + |
+
timestamp + |
+Long + |
+Timestamp. + |
+
unit + |
+String + |
+Time series unit. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
statistic + |
+String + |
+Statistic. + |
+
value + |
+Double + |
+Statistical result. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
dimensions + |
+Array of Dimension objects + |
+List of metric dimensions. Neither the array nor the name or value of any dimension in the array can be left blank. + |
+
metricName + |
+String + |
+Metric name. Length: 1 to 255 characters. Value range: cpuUsage, cpuCoreUsed, and other basic metrics provided by AOM. cpuUsage: CPU usage. cpuCoreUsed: used CPU cores. Custom metrics. + |
+
namespace + |
+String + |
+Metric namespace. Values: PAAS.CONTAINER: namespace of component, instance, process, and container metrics. PAAS.NODE: namespace of host, network, disk, and file system metrics. PAAS.SLA: namespace of SLA metrics. PAAS.AGGR: namespace of cluster metrics. CUSTOMMETRICS: default namespace of custom metrics. + |
+
Query the monitoring data of aom_process_cpu_usage in the PAAS.CONTAINER namespace in the last five minutes.
+https://{Endpoint}/v1/{project_id}/ams/metricdata + +{ + "metrics" : [ { + "dimensions" : [ { + "name" : "appName", + "value" : "aomApp" + } ], + "metricName" : "aom_process_cpu_usage", + "namespace" : "PAAS.CONTAINER" + } ], + "period" : 60, + "statistics" : [ "maximum", "minimum", "sum" ], + "timerange" : "-1.-1.5" +}+
Status code: 200
+OK: The request is successful.
+{ + "errorCode" : "SVCSTG.AMS.2000", + "errorMessage" : "success", + "metrics" : [ { + "metric" : { + "namespace" : "PAAS.CONTAINER", + "metricName" : "aom_process_cpu_usage", + "dimensions" : [ { + "name" : "appName", + "value" : "aomApp" + } ] + }, + "dataPoints" : [ { + "timestamp" : "1467892800000", + "unit" : "Percent", + "statistics" : [ { + "statistic" : "maximum", + "value" : "23" + } ] + } ] + } ] +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+OK: The request is successful. + |
+
400 + |
+Bad Request: The request is invalid. The client should not repeat the request without modifications. + |
+
401 + |
+Unauthorized: The authentication information is incorrect or invalid. + |
+
403 + |
+Forbidden: The request is rejected. The server has received the request and understood it, but the server refuses to respond to it. The client should not repeat the request without modifications. + |
+
500 + |
+Internal Server Error: The server is able to receive the request but unable to understand the request. + |
+
503 + |
+Service Unavailable: The requested service is invalid. The client should not repeat the request without modifications. + |
+
See Error Codes.
+This API is used to modify a threshold rule.
+PUT /v2/{project_id}/alarm-rules
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID obtained from IAM. Generally, a project ID contains 32 characters. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. + |
+
Content-Type + |
+Yes + |
+String + |
+Content type, which is application/json. +Enumeration values: +
|
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
action_enabled + |
+No + |
+Boolean + |
+Whether to enable notification. + |
+
alarm_actions + |
+No + |
+Array of strings + |
+List of alarm notifications. + |
+
alarm_advice + |
+No + |
+String + |
+Alarm clearance suggestion, which contains a maximum of 255 characters. +Minimum: 0 +Maximum: 255 + |
+
alarm_description + |
+No + |
+String + |
+Threshold rule description, which contains a maximum of 1024 characters. +Minimum: 0 +Maximum: 1024 + |
+
alarm_level + |
+Yes + |
+Integer + |
+Alarm severity. Values: 1 (critical), 2 (major), 3 (minor), and 4 (warning). +Enumeration values: +
|
+
alarm_rule_name + |
+Yes + |
+String + |
+Threshold rule name. Enter a maximum of 100 characters and do not start or end with a special character. Only letters, digits, underscores (_), and hyphens (-) are allowed. + |
+
comparison_operator + |
+Yes + |
+String + |
+Comparison operator. Options: <: less than the threshold; >: greater than the threshold; <=: less than or equal to the threshold; >=: greater than or equal to the threshold. +Enumeration values: +
|
+
dimensions + |
+Yes + |
+Array of Dimension objects + |
+List of time series dimensions. + |
+
evaluation_periods + |
+Yes + |
+Integer + |
+Interval at which data is calculated. + |
+
id_turn_on + |
+No + |
+Boolean + |
+Whether to enable the threshold rule. + |
+
insufficient_data_actions + |
+No + |
+Array of strings + |
+List of insufficient data notifications. + |
+
metric_name + |
+Yes + |
+String + |
+Time series name. Length: 1 to 255 characters. + |
+
namespace + |
+Yes + |
+String + |
+Namespace of time series objects. + |
+
ok_actions + |
+No + |
+Array of strings + |
+List of normal status notifications. + |
+
period + |
+Yes + |
+Integer + |
+Statistical period. Options: 60000: one minute; 300000: five minutes; 900000: 15 minutes; 3600000: one hour. +Enumeration values: +
|
+
statistic + |
+Yes + |
+String + |
+Statistic. +Enumeration values: +
|
+
threshold + |
+Yes + |
+String + |
+Threshold. + |
+
unit + |
+Yes + |
+String + |
+Time series unit. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
alarm_rule_id + |
+Long + |
+Threshold rule ID. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
error_type + |
+String + |
+Error type. + |
+
trace_id + |
+String + |
+Trace ID, which is used to search for logs and locate faults. If 2xx is returned, trace_id is empty. If 4xx, trace_id is not empty. + |
+
Modify a threshold rule whose name is testaom, alarm severity is 3, metric name is cpuCoreLimit, and namespace is PAAS.CONTAINER.
+https://{Endpoint}/v2/{project_id}/alarm-rules + +{ + "action_enabled" : false, + "alarm_actions" : [ ], + "alarm_advice" : "", + "alarm_description" : "", + "alarm_level" : 3, + "alarm_rule_name" : "aom_rule", + "comparison_operator" : ">=", + "dimensions" : [ { + "name" : "appName", + "value" : "rhm-broker" + } ], + "evaluation_periods" : 1, + "insufficient_data_actions" : [ ], + "metric_name" : "cpuCoreLimit", + "namespace" : "PAAS.CONTAINER", + "ok_actions" : [ ], + "period" : 60000, + "statistic" : "average", + "threshold" : 0, + "unit" : "Core" +}+
Status code: 200
+OK: The request is successful.
+{ + "alarm_rule_id" : 91307490000416600 +}+
Status code: 400
+Bad Request: The request is invalid. The client should not repeat the request without modifications.
+{ + "error_code" : "AOM.02001AOM.02001SVCSTG_AMS_4000115", + "error_msg" : "please check request param", + "error_type" : "BAD_REQUEST", + "trace_id" : "" +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+OK: The request is successful. + |
+
400 + |
+Bad Request: The request is invalid. The client should not repeat the request without modifications. + |
+
401 + |
+Unauthorized: The authentication information is incorrect or invalid. + |
+
403 + |
+Forbidden: The request is rejected. The server has received the request and understood it, but the server refuses to respond to it. The client should not repeat the request without modifications. + |
+
500 + |
+Internal Server Error: The server is able to receive the request but unable to understand the request. + |
+
503 + |
+Service Unavailable: The requested service is invalid. The client should not repeat the request without modifications. + |
+
See Error Codes.
+Public cloud APIs comply with the RESTful API design principles. REST-based web services are organized into resources. Each resource is identified by one or more Uniform Resource Identifiers (URIs). An application accesses a resource based on the resource's Unified Resource Locator (URL). A URL is usually in the following format: https://Endpoint/uri. In the URL, uri indicates the resource path, that is, the API access path.
-Public cloud APIs use HTTPS as the transmission protocol. Requests/Responses are transmitted using JSON messages, with the media type represented by Application/json.
-For details about how to use APIs, see API Usage Guidelines.
-This API is used to add one or more monitoring data records to a server.
+POST /v1/{project_id}/ams/report/metricdata
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID obtained from IAM. Generally, a project ID contains 32 characters. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. + |
+
Content-Type + |
+Yes + |
+String + |
+Content type, which is application/json. +Enumeration values: +
|
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
[items] + |
+Yes + |
+Array of MetricDataItem objects + |
+Metric parameters. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
collect_time + |
+Yes + |
+Long + |
+Data collection time (UNIX timestamp, in ms), which ranges from the last 24 hours to the next 0.5 hour. The following requirement needs to be met: Current UTC time – Data collection time ≤ 24 hours, or Data collection time – Current UTC time ≤ 30 minutes If the data reporting time is earlier than 08:00 of the current day, only the data generated after 08:00 of the current day is displayed on the metric monitoring page. + |
+
metric + |
+Yes + |
+MetricItemInfo object + |
+Metric details. + |
+
values + |
+Yes + |
+Array of ValueData objects + |
+Metric value. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
dimensions + |
+Yes + |
+Array of Dimension2 objects + |
+List of metric dimensions. A maximum of 50 dimensions are supported. Each dimension is in JSON format. The structure is as follows: dimension.name: 1–32 characters. dimension.value: 1–64 characters. + |
+
namespace + |
+Yes + |
+String + |
+Metric namespace. It cannot contain colons (:). It must be in the format of "service.item". The value must contain 3 to 32 characters starting with a letter. Only letters, digits, and underscores (_) are allowed. In addition, "service" cannot be "PAAS". +Minimum: 3 +Maximum: 32 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
name + |
+Yes + |
+String + |
+Dimension name. +Minimum: 1 +Maximum: 32 + |
+
value + |
+Yes + |
+String + |
+Dimension value. +Minimum: 1 +Maximum: 64 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
metric_name + |
+Yes + |
+String + |
+Metric name. Length: 1 to 255 characters. + |
+
type + |
+No + |
+String + |
+Data type. Values: int and float. +Enumeration values: +
|
+
unit + |
+No + |
+String + |
+Data unit. Length: up to 32 characters. + |
+
value + |
+Yes + |
+Double + |
+Metric value, which must be of a valid numeric type. +Minimum: 0 + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
errorCode + |
+String + |
+Response code. + |
+
errorMessage + |
+String + |
+Response message. + |
+
Add a piece of monitoring data to the server. (In the following example, set "collect_time" to the latest timestamp.)
+https://{Endpoint}/v1/{project_id}/ams/report/metricdata + +[ { + "metric" : { + "namespace" : "NOPAAS.ESC", + "dimensions" : [ { + "name" : "instance_id", + "value" : "instance-101" + } ] + }, + "values" : [ { + "unit" : "percent", + "metric_name" : "cpu_util", + "type" : "int", + "value" : 35 + } ], + "collect_time" : 1467787152000 +} ]+
Status code: 200
+OK: The request is successful.
+{ + "errorCode" : "SVCSTG_AMS_2000000", + "errorMessage" : "success" +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+OK: The request is successful. + |
+
400 + |
+Bad Request: The request is invalid. The client should not repeat the request without modifications. + |
+
401 + |
+Unauthorized: The authentication information is incorrect or invalid. + |
+
403 + |
+Forbidden: The request is rejected. The server has received the request and understood it, but the server refuses to respond to it. The client should not repeat the request without modifications. + |
+
500 + |
+Internal Server Error: The server is able to receive the request but unable to understand the request. + |
+
503 + |
+Service Unavailable: The requested service is invalid. The client should not repeat the request without modifications. + |
+
See Error Codes.
+Table 1 describes the status codes.
+Table 1 describes status codes.
Status Code |
diff --git a/docs/aom/api-ref/aom_04_0020.html b/docs/aom/api-ref/aom_04_0020.html
index 0848c465..0e19bc4a 100644
--- a/docs/aom/api-ref/aom_04_0020.html
+++ b/docs/aom/api-ref/aom_04_0020.html
@@ -2,13 +2,19 @@
---|
Released On +
+
+
diff --git a/docs/aom/api-ref/aom_04_0064.html b/docs/aom/api-ref/aom_04_0064.html
new file mode 100644
index 00000000..48d090a0
--- /dev/null
+++ b/docs/aom/api-ref/aom_04_0064.html
@@ -0,0 +1,39 @@
+
+
+
+
+Parent topic: Permissions Policies and Supported Actions
+Log Actions+![]() √: supported; x: not supported +
+
+
diff --git a/docs/aom/api-ref/aom_04_0065.html b/docs/aom/api-ref/aom_04_0065.html
new file mode 100644
index 00000000..64984a6d
--- /dev/null
+++ b/docs/aom/api-ref/aom_04_0065.html
@@ -0,0 +1,61 @@
+
+
+
+
+Parent topic: Permissions Policies and Supported Actions
+Alarm Actions+![]() √: supported; x: not supported +
+
+
diff --git a/docs/aom/api-ref/aom_04_0066.html b/docs/aom/api-ref/aom_04_0066.html
index e9f48183..268bd1e7 100644
--- a/docs/aom/api-ref/aom_04_0066.html
+++ b/docs/aom/api-ref/aom_04_0066.html
@@ -6,6 +6,10 @@
+
+Parent topic: Permissions Policies and Supported Actions
+
|
---|