Lista os eventos históricos no Event Center.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
polardb:DescribeHistoryEvents |
none |
*DBCluster
|
Nenhuma | Nenhuma |
Sintaxe da solicitação
POST HTTP/1.1
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| PageSize |
integer |
Não |
O número de entradas por página. Valores válidos:
|
10 |
| PageNumber |
integer |
Não |
O número da página a ser consultada. O valor padrão é 1. |
1 |
| ArchiveStatus |
string |
Não |
O status do evento. Valores válidos:
|
All |
| EventCategory |
string |
Não |
A categoria do evento do sistema. Valores válidos:
|
Exception |
| EventType |
string |
Não |
O tipo de evento do sistema. Este parâmetro é válido apenas quando InstanceEventType.N não é especificado. Valores válidos:
Nota
O valor deste parâmetro pode ser apenas um evento do sistema da instância, não um evento do sistema do disco. |
SystemFailure.Reboot |
| EventLevel |
string |
Não |
O nível do evento. Valores válidos:
|
high |
| EventStatus |
string |
Não |
O status do evento. Valores válidos:
Nota
Para consultar vários status, separe-os com vírgulas (,). |
Succeed |
| ResourceType |
string |
Não |
O tipo de recurso. Valores válidos:
|
Instance |
| InstanceId |
string |
Não |
O ID do recurso. Use este parâmetro para consultar tarefas de um recurso específico. Para consultar tarefas de vários recursos, separe os IDs dos recursos com vírgulas (,). Você pode especificar até 30 IDs de recursos. Se você deixar este parâmetro vazio, todos os recursos serão consultados. Nota
Atualmente, apenas IDs de cluster são suportados. |
pc-2zed3m89cw*** |
| EventId |
string |
Não |
O ID do evento. |
5345398 |
| TaskId |
string |
Não |
O ID da tarefa agendada que você deseja cancelar. Nota
|
32077515 |
| FromStartTime |
string |
Não |
O início do intervalo de tempo para consultar tarefas com base em sua hora de início. As tarefas que começaram após esse horário são consultadas. Especifique a hora no padrão ISO 8601 no formato yyyy-MM-ddTHH:mm:ssZ. A hora deve estar em UTC. Você pode consultar dados dos últimos 30 dias. Se a hora especificada for superior a 30 dias atrás, o sistema a define automaticamente para 30 dias atrás. |
2025-01-02T11:31:03Z |
| ToStartTime |
string |
Não |
O fim do intervalo de tempo para consultar tarefas com base em sua hora de início. As tarefas que começaram antes desse horário são consultadas. Especifique a hora no padrão ISO 8601 no formato yyyy-MM-ddTHH:mm:ssZ. A hora deve estar em UTC. |
2025-01-03T12:31:03Z |
| ResourceGroupId |
string |
Não |
O ID do grupo de recursos. |
rg-********** |
| RegionId |
string |
Não |
O ID da região. |
cn-hangzhou |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Esquema da resposta. |
||
| PageNumber |
integer |
O número da página retornada. O valor padrão é 1. |
1 |
| RequestId |
string |
O ID da solicitação. |
EB07CFF0-D8A4-5C76-AED7-D00E26FC2*** |
| PageSize |
integer |
O número de entradas retornadas por página. Valores válidos:
|
30 |
| TotalCount |
integer |
O número total de entradas na lista. |
7 |
| Items |
array<object> |
A lista de eventos. |
|
|
array<object> |
A lista de eventos. |
||
| Id |
string |
O ID da tarefa. |
123 |
| Region |
string |
O ID da região onde a tarefa está localizada. |
cn-hangzhou |
| Source |
string |
A origem do evento. |
loanBill |
| Specversion |
string |
A versão do banco de dados. |
8.0 |
| Subject |
string |
O nome do evento pendente. |
QiTian |
| Time |
string |
O tempo de execução da tarefa de consulta. Unidade: segundos (s). |
1758680209206 |
| Type |
string |
O tipo de evento. |
host |
| Data |
object |
A visão geral dos dados. |
|
| EventType |
string |
The type of the system event. Valid values:
|
SystemFailure.Delete |
| EventId |
string |
The event ID. |
600324 |
| CmsProduct |
string |
The type of the Alibaba Cloud service for the application group. Valid values:
|
web |
| DbType |
string |
The database type. |
mysql |
| DetailImpact |
string |
This parameter is used for pagination. |
1 |
| DetailReason |
string |
The details of the instance operation. |
xxxx |
| EndTime |
string |
The end of the query time range. The end time must be later than the start time. The interval between the start time and the end time must be within 24 hours. The time is in the |
2025-12-24T02:24:00Z |
| EventCategory |
string |
The category of the system event. Valid values:
|
Exception |
| EventCode |
string |
The event code. |
de_aamexg3015 |
| EventDetail |
string |
The event details. |
xxxx |
| EventImpact |
string |
An overview of the event's impact. |
xxxx |
| EventLevel |
string |
The event level. Valid values:
|
INFO |
| EventReason |
string |
The source of the event operation. |
xxxxx |
| EventStatus |
string |
The event status. Valid values:
|
Inquiring |
| GmtCreated |
string |
The creation time. |
2025-07-15T14:53:06+08:00 |
| GmtModified |
string |
The update time. |
2025-01-07T15:10:32+08:00 |
| HandleStatus |
string |
The processing status. |
done |
| HasLifeCycle |
integer |
Indicates whether a lifecycle exists. |
false |
| InstanceId |
string |
The instance ID. |
pc-2ze150h1p29t*** |
| InstanceName |
string |
The instance name. |
dhimgsearch |
| IsClosed |
integer |
Indicates whether the event is successfully closed. Valid values:
|
1 |
| Product |
string |
The product name. |
polardb |
| RegionId |
string |
The region ID. |
cn-beijing |
| ResourceType |
string |
The resource type. Valid values:
|
Host |
| SourceType |
string |
The type of the source data. |
loanBill |
| StartTime |
string |
The start of the query time range. The time is in the |
2025-02-27T02:00:00Z |
| Uid |
string |
The ID of the user to whom the resource belongs. |
1540497309282125 |
Exemplos
Resposta de sucesso
JSON formato
{
"PageNumber": 1,
"RequestId": "EB07CFF0-D8A4-5C76-AED7-D00E26FC2***",
"PageSize": 30,
"TotalCount": 7,
"Items": [
{
"Id": "123",
"Region": "cn-hangzhou",
"Source": "loanBill",
"Specversion": "8.0",
"Subject": "QiTian",
"Time": "1758680209206",
"Type": "host",
"Data": {
"EventType": "SystemFailure.Delete",
"EventId": "600324",
"CmsProduct": "web",
"DbType": "mysql",
"DetailImpact": "1",
"DetailReason": "xxxx",
"EndTime": "2025-12-24T02:24:00Z",
"EventCategory": "Exception",
"EventCode": "de_aamexg3015",
"EventDetail": "xxxx",
"EventImpact": "xxxx",
"EventLevel": "INFO",
"EventReason": "xxxxx",
"EventStatus": "Inquiring",
"GmtCreated": "2025-07-15T14:53:06+08:00",
"GmtModified": "2025-01-07T15:10:32+08:00",
"HandleStatus": "done",
"HasLifeCycle": 0,
"InstanceId": "pc-2ze150h1p29t***",
"InstanceName": "dhimgsearch",
"IsClosed": 1,
"Product": "polardb",
"RegionId": "cn-beijing",
"ResourceType": "Host",
"SourceType": "loanBill",
"StartTime": "2025-02-27T02:00:00Z",
"Uid": "1540497309282125"
}
}
]
}
Códigos de erro
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.