DescribeBasicAlarmList

Last updated: 2020-07-03 10:55:38

1. API Description

Domain name for API request: monitor.tencentcloudapi.com.

This API is used to get the basic alarm list.

A maximum of 20 requests can be initiated per second for this API.

Note: This API supports Finance regions. If the common parameter Region is a Finance region, a domain name with the Finance region needs to be specified, for example: monitor.ap-shanghai-fsi.tencentcloudapi.com

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common parameter. The value used for this API: DescribeBasicAlarmList.
Version Yes String Common parameter. The value used for this API: 2018-07-24.
Region Yes String Common parameter. For more information, please see the list of regions supported by the product.
Module Yes String API component name. The value for the current API is monitor.
StartTime No Integer Start time, which is the timestamp one day prior by default.
EndTime No Integer End time, which is the current timestamp by default.
Limit No Integer Number of parameters that can be returned on each page. Value range: 1 - 100. Default value: 20.
Offset No Integer Parameter offset on each page. The value starts from 0 and the default value is 0.
OccurTimeOrder No String Sorting by occurrence time. Valid values: asc and desc.
ProjectIds.N No Array of Integer Filter by project ID.
ViewNames.N No Array of String Filter by policy type.
AlarmStatus.N No Array of Integer Filter by alarm status.
ObjLike No String Filter by alarm object.
InstanceGroupIds.N No Array of Integer Filter by instance group ID.
MetricNames.N No Array of String Filtering by metric names

3. Output Parameters

Parameter Name Type Description
Alarms Array of DescribeBasicAlarmListAlarms Alarm list.
Note: This field may return null, indicating that no valid value was found.
Total Integer Total number.
Note: This field may return null, indicating that no valid value was found.
RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Example

Example1 Getting the basic alarm list

Input Example

https://monitor.tencentcloudapi.com/?Action=DescribeBasicAlarmList
&Module=monitor
&StartTime=1573660800
&EndTime=1573919999
&Limit=20
&Offset=0
&OccurTimeOrder=DESC
&ProjectIds.0=0
&ViewNames.0=cvm_device
&AlarmStatus.0=1
"MetricName": "mem_used",
&<Common request parameters>

Output Example

{
  "Response": {
    "Alarms": [
      {
        "AlarmStatus": "OK",
        "AlarmType": "Used memory",
        "Content": "Used memory >  66666 MB",
        "Dimensions": "{\"unInstanceId\":\"ins-19a06nn8\"}",
        "Duration": 600,
        "FirstOccurTime": "2019-11-16T15:50:00+08:00",
        "GroupId": 1278966,
        "GroupName": "dddd",
        "Id": 30057956,
        "InstanceGroup": [
          {
            "InstanceGroupId": 562,
            "InstanceGroupName": "barad_nws_cvm"
          }
        ],
        "LastOccurTime": "2019-11-16T16:00:00+08:00",
        "MetricId": 24,
        "MetricName": "mem_used",
        "NotifyWay": [
          "EMAIL",
          "SMS"
        ],
        "ObjId": "a961c198-e0e2-4989-a3b6-7b155b35ff6f",
        "ObjName": "10.0.0.14(251008737 vm1)",
        "ProjectId": 0,
        "ProjectName": "Default project",
        "Region": "gz",
        "Status": 1,
        "ViewName": "cvm_device",
        "Vpc": "1"
      },
      {
        "AlarmStatus": "OK",
        "AlarmType": "Used memory",
        "Content": "Used memory >=  200000 MB",
        "Dimensions": "{\"unInstanceId\":\"ins-19a06nn8\"}",
        "Duration": 180,
        "FirstOccurTime": "2019-11-16T15:45:00+08:00",
        "GroupId": 1279043,
        "GroupName": "-",
        "Id": 30057955,
        "InstanceGroup": [
          {
            "InstanceGroupId": 562,
            "InstanceGroupName": "barad_nws_cvm"
          }
        ],
        "LastOccurTime": "2019-11-16T15:48:00+08:00",
        "MetricId": 24,
        "MetricName": "mem_used",
        "NotifyWay": [
          "EMAIL",
          "SMS",
          "WECHAT"
        ],
        "ObjId": "a961c198-e0e2-4989-a3b6-7b155b35ff6f",
        "ObjName": "10.0.0.14(251008737 vm1)",
        "ProjectId": 0,
        "ProjectName": "Default project",
        "Region": "gz",
        "Status": 1,
        "ViewName": "cvm_device",
        "Vpc": "1"
      }
    ],
    "RequestId": "6b64cc24-0c60-483f-bdc3-2e55edbbc68c",
    "Total": 2
  }
}

5. Developer Resources

API Explorer

This tool allows online call, signature authentication, SDK code generation and quick search of APIs to greatly improve the efficiency of using TencentCloud APIs.

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
InternalError Internal error.
InvalidParameter Invalid parameter.
InvalidParameterValue Invalid parameter value.
LimitExceeded Quota limit is reached.
MissingParameter Missing parameter.

Was this page helpful?

Was this page helpful?

  • Not at all
  • Not very helpful
  • Somewhat helpful
  • Very helpful
  • Extremely helpful
Send Feedback
Help