tencent cloud

Feedback

DescribeProductEventList

Last updated: 2023-03-21 10:17:10

1. API Description

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

This API is used to get the list of product events by page.

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

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 Params. The value used for this API: DescribeProductEventList.
Version Yes String Common Params. The value used for this API: 2018-07-24.
Region No String Common Params. This parameter is not required for this API.
Module Yes String API component name. It is fixed to monitor.
ProductName.N No Array of String Filter by product type. For example, "cvm" indicates Cloud Virtual Machine.
EventName.N No Array of String Filter by event name. For example, "guest_reboot" indicates instance restart.
InstanceId.N No Array of String Affected object, such as "ins-19708ino".
Dimensions.N No Array of DescribeProductEventListDimensions Filter by dimension, such as by public IP: 10.0.0.1.
RegionList.N No Array of String Region filter parameter for service events.
Type.N No Array of String Filter by event type. Valid values: ["status_change","abnormal"], which indicate events whose statuses have changed and events with exceptions respectively.
Status.N No Array of String Filter by event status. Valid values: ["recover","alarm","-"], which indicate that an event has been recovered, has not been recovered, and has no status respectively.
Project.N No Array of String Filter by project ID.
IsAlarmConfig No Integer Filter by alarm status configuration. The value 1 indicates that the alarm status has been configured. The value 0 indicates that the alarm status has not been configured.
TimeOrder No String Sorting by update time. The value ASC indicates the ascending order. The value DESC indicates the descending order. The default value is DESC.
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.
Offset No Integer Page offset. The default value is 0.
Limit No Integer The number of parameters that can be returned on each page. The default value is 20.

3. Output Parameters

Parameter Name Type Description
Events Array of DescribeProductEventListEvents Event list
Note: This field may return null, indicating that no valid value was found.
OverView DescribeProductEventListOverView Event statistics.
Total Integer Total number of events.
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 list of product events

This example shows you how to get the list of product events.

Input Example

POST / HTTP/1.1
Host: monitor.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeProductEventList
<Common request parameters>

{
    "Module": "monitor",
    "TimeOrder": "DESC",
    "Limit": "20",
    "StartTime": "1572624000",
    "Offset": "0",
    "EndTime": "1573228799"
}

Output Example

{
    "Response": {
        "Events": [
            {
                "AdditionMsg": [],
                "Dimensions": [
                    {
                        "Key": "deviceLanIp",
                        "Name": "Private IP",
                        "Value": "172.0.0.1"
                    },
                    {
                        "Key": "deviceWanIp",
                        "Name": "Public IP",
                        "Value": null
                    },
                    {
                        "Key": "uniqVpcId",
                        "Name": "VPC ID",
                        "Value": null
                    }
                ],
                "EventCName": "Instance restart",
                "EventEName": "GuestReboot",
                "EventId": 43,
                "EventName": "guest_reboot",
                "InstanceId": "ins-19708ino",
                "InstanceName": "qta_test",
                "ProductCName": "CVM",
                "ProductEName": "Cloud Virtual Machine",
                "ProductName": "cvm",
                "ProjectId": 0,
                "Region": "gz",
                "StartTime": 1573110201,
                "Status": "-",
                "SupportAlarm": 1,
                "Type": "abnormal",
                "UpdateTime": 1573081401
            },
            {
                "AdditionMsg": [],
                "Dimensions": [
                    {
                        "Key": "deviceLanIp",
                        "Name": "Private IP",
                        "Value": "172.0.0.1"
                    },
                    {
                        "Key": "deviceWanIp",
                        "Name": "Public IP",
                        "Value": null
                    },
                    {
                        "Key": "uniqVpcId",
                        "Name": "VPC ID",
                        "Value": null
                    }
                ],
                "EventCName": "Instance restart",
                "EventEName": "GuestReboot",
                "EventId": 43,
                "EventName": "guest_reboot",
                "InstanceId": "ins-19708ino",
                "InstanceName": "qta_test",
                "ProductCName": "CVM",
                "ProductEName": "Cloud Virtual Machine",
                "ProductName": "cvm",
                "ProjectId": 0,
                "Region": "gz",
                "StartTime": 1573023802,
                "Status": "-",
                "SupportAlarm": 1,
                "Type": "abnormal",
                "UpdateTime": 1572995002
            },
            {
                "AdditionMsg": [],
                "Dimensions": [
                    {
                        "Key": "deviceLanIp",
                        "Name": "Private IP",
                        "Value": "172.0.0.1"
                    },
                    {
                        "Key": "deviceWanIp",
                        "Name": "Public IP",
                        "Value": null
                    },
                    {
                        "Key": "uniqVpcId",
                        "Name": "VPC ID",
                        "Value": null
                    }
                ],
                "EventCName": "Instance restart",
                "EventEName": "GuestReboot",
                "EventId": 43,
                "EventName": "guest_reboot",
                "InstanceId": "ins-19708ino",
                "InstanceName": "qta_test",
                "ProductCName": "CVM",
                "ProductEName": "Cloud Virtual Machine",
                "ProductName": "cvm",
                "ProjectId": 0,
                "Region": "gz",
                "StartTime": 1572937414,
                "Status": "-",
                "SupportAlarm": 1,
                "Type": "abnormal",
                "UpdateTime": 1572908614
            },
            {
                "AdditionMsg": [],
                "Dimensions": [
                    {
                        "Key": "deviceLanIp",
                        "Name": "Private IP",
                        "Value": "172.0.0.1"
                    },
                    {
                        "Key": "deviceWanIp",
                        "Name": "Public IP",
                        "Value": null
                    },
                    {
                        "Key": "uniqVpcId",
                        "Name": "VPC ID",
                        "Value": null
                    }
                ],
                "EventCName": "Instance restart",
                "EventEName": "GuestReboot",
                "EventId": 43,
                "EventName": "guest_reboot",
                "InstanceId": "ins-19708ino",
                "InstanceName": "qta_test",
                "ProductCName": "CVM",
                "ProductEName": "Cloud Virtual Machine",
                "ProductName": "cvm",
                "ProjectId": 0,
                "Region": "gz",
                "StartTime": 1572851042,
                "Status": "-",
                "SupportAlarm": 1,
                "Type": "abnormal",
                "UpdateTime": 1572822242
            },
            {
                "AdditionMsg": [],
                "Dimensions": [
                    {
                        "Key": "deviceLanIp",
                        "Name": "Private IP",
                        "Value": "172.0.0.1"
                    },
                    {
                        "Key": "deviceWanIp",
                        "Name": "Public IP",
                        "Value": null
                    },
                    {
                        "Key": "uniqVpcId",
                        "Name": "VPC ID",
                        "Value": null
                    }
                ],
                "EventCName": "Instance restart",
                "EventEName": "GuestReboot",
                "EventId": 43,
                "EventName": "guest_reboot",
                "InstanceId": "ins-19708ino",
                "InstanceName": "qta_test",
                "ProductCName": "CVM",
                "ProductEName": "Cloud Virtual Machine",
                "ProductName": "cvm",
                "ProjectId": 0,
                "Region": "gz",
                "StartTime": 1572764569,
                "Status": "-",
                "SupportAlarm": 1,
                "Type": "abnormal",
                "UpdateTime": 1572735769
            },
            {
                "AdditionMsg": [],
                "Dimensions": [
                    {
                        "Key": "deviceLanIp",
                        "Name": "Private IP",
                        "Value": "172.0.0.1"
                    },
                    {
                        "Key": "deviceWanIp",
                        "Name": "Public IP",
                        "Value": null
                    },
                    {
                        "Key": "uniqVpcId",
                        "Name": "VPC ID",
                        "Value": null
                    }
                ],
                "EventCName": "Instance restart",
                "EventEName": "GuestReboot",
                "EventId": 43,
                "EventName": "guest_reboot",
                "InstanceId": "ins-19708ino",
                "InstanceName": "qta_test",
                "ProductCName": "CVM",
                "ProductEName": "Cloud Virtual Machine",
                "ProductName": "cvm",
                "ProjectId": 0,
                "Region": "gz",
                "StartTime": 1572678255,
                "Status": "-",
                "SupportAlarm": 1,
                "Type": "abnormal",
                "UpdateTime": 1572649455
            }
        ],
        "OverView": {
            "StatusChangeAmount": 0,
            "UnConfigAlarmAmount": 6,
            "UnNormalEventAmount": 6,
            "UnRecoverAmount": 0
        },
        "RequestId": "313bac2f-04eb-477e-af2b-b4d58cbe5d08",
        "Total": 6
    }
}

5. Developer Resources

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
FailedOperation Operation failed.
InternalError Internal error.
InvalidParameter Invalid parameter.
InvalidParameter.InvalidParameter Invalid parameter.
InvalidParameter.InvalidParameterParam Invalid parameter.
InvalidParameterValue The parameter value is incorrect.
LimitExceeded Quota limit is reached.
MissingParameter Missing parameter.
UnsupportedOperation Unsupported operation.