Consulta os eventos do Insights.
Experimente agora
Testar
Autorização RAM
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| NextToken |
string |
Não |
O token de paginação usado na próxima solicitação para recuperar uma nova página de resultados.\n\n- Você não precisa especificar este parâmetro na primeira solicitação.\n\n- Você deve especificar o token obtido da consulta anterior como o valor de NextToken. |
VjE6dLbnNpVmbz06**** |
| MaxResults |
string |
Não |
O número máximo de entradas a serem retornadas.\n\n- Valores válidos: 1 a 50.\n\n- Valor padrão: 20. |
20 |
| StartTime |
string |
Não |
O início do intervalo de tempo a ser consultado. O valor padrão é sete dias antes da hora atual.\n\nEspecifique a hora no padrão ISO 8601 no formato |
2026-01-07T04:10:00Z |
| EndTime |
string |
Não |
O fim do intervalo de tempo a ser consultado. O valor padrão é a hora atual.\n\nEspecifique a hora no padrão ISO 8601 no formato |
2026-01-07T07:10:00Z |
| LookupAttribute |
array<object> |
Não |
Uma matriz de condições de filtro.\n\n> - Você pode especificar uma ou duas condições de consulta. Para mais informações, consulte Limitações. |
|
|
object |
Não |
Uma condição de filtro. |
||
| Key |
string |
Não |
A chave do atributo. Para mais informações sobre os valores válidos, consulte Como configuro o parâmetro LookupAttribute ao chamar LookupInsightEvents?. |
InsightType |
| Value |
string |
Não |
O valor do atributo. Para mais informações sobre os valores válidos, consulte Como configuro o parâmetro LookupAttribute ao chamar LookupInsightEvents?. |
IpInsight |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| Events |
array<object> |
Os eventos do Insights. |
|
|
object |
O evento do Insights. |
{ "eventId": "408ACD94-4531-4D66-BA14-1F7248AC****", "eventCategory": "Insight", "sharedEventId": "55CF0739-97D8-4221-A6BE-8E60E746****", "eventVersion": "1", "eventTime": "2026-01-07T05:40:00Z", "insightDetails": { "insightContext": { "attributions": [ { "insight": [ { "average": 3, "value": "AlibabaCloud API Workbench" } ], "attribute": "userAgent" }, { "insight": [ { "average": 3, "value": "20376656170607****" } ], "attribute": "principalId" }, { "insight": [ { "average": 3, "value": "Actiontrail/EnableInsight" } ], "attribute": "apiRelated" }, { "insight": [ { "average": 3, "value": "null" } ], "attribute": "errorCode" } ], "statistics": { "insight": { "average": 3, "predict": 0 }, "insightDuration": 1, "baseline": { "threshold": 0.6 }, "insightCount": 3 } }, "state": "Start", "insightType": "IpInsight", "insightObject": "xxx.xxx.xxx.xxx" }, "acsRegion": "cn-qingdao", "eventType": "ActionTrailInsight" } |
|
| NextToken |
string |
O token de paginação usado na próxima solicitação para recuperar uma nova página de resultados. Você não precisa especificar este parâmetro na primeira solicitação. Você deve especificar o token obtido da consulta anterior como o valor de NextToken. |
VjE6bHJlTGoxdm1M**** |
| RequestId |
string |
O ID da solicitação. |
851038F3-33AB-4C49-97D7-6AB37D35**** |
Exemplos
Resposta de sucesso
JSON formato
{
"Events": [
{
"eventId": "408ACD94-4531-4D66-BA14-1F7248AC****",
"eventCategory": "Insight",
"sharedEventId": "55CF0739-97D8-4221-A6BE-8E60E746****",
"eventVersion": "1",
"eventTime": "2026-01-07T05:40:00Z",
"insightDetails": {
"insightContext": {
"attributions": [
{
"insight": [
{
"average": 3,
"value": "AlibabaCloud API Workbench"
}
],
"attribute": "userAgent"
},
{
"insight": [
{
"average": 3,
"value": "20376656170607****"
}
],
"attribute": "principalId"
},
{
"insight": [
{
"average": 3,
"value": "Actiontrail/EnableInsight"
}
],
"attribute": "apiRelated"
},
{
"insight": [
{
"average": 3,
"value": "null"
}
],
"attribute": "errorCode"
}
],
"statistics": {
"insight": {
"average": 3,
"predict": 0
},
"insightDuration": 1,
"baseline": {
"threshold": 0.6
},
"insightCount": 3
}
},
"state": "Start",
"insightType": "IpInsight",
"insightObject": "xxx.xxx.xxx.xxx"
},
"acsRegion": "cn-qingdao",
"eventType": "ActionTrailInsight"
}
],
"NextToken": "VjE6bHJlTGoxdm1M****",
"RequestId": "851038F3-33AB-4C49-97D7-6AB37D35****"
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | IncompleteSignature | The request signature does not conform to Alibaba Cloud standards. | The request signature does not conform to Alibaba Cloud standards. |
| 400 | InvalidParameterCombination | The end time must be later than the start time. | The end time must be greater than the start time. |
| 400 | InvalidQueryParameter | The specified query parameter is invalid. | The specified query parameter is not valid. |
| 400 | InvalidParameterDateOutOfRange | Query time range exceeds 30 days. | |
| 400 | InvalidParameterEndTime | The specified EndTime is invalid. | |
| 400 | InvalidParameterStartTime | The specified StartTime is invalid. | |
| 400 | InvalidParameterStartTimeExceedsCurrent | The StartTime exceeds the current time. Use GMT time format for queries. | |
| 400 | InvalidParameterStartTimeOutOfDate | The StartTime exceeds the limit of 90 days. | |
| 400 | InvalidTimeRangeException | The end time must be later than the start time. The time span cannot exceed 30 days. | The end time must be greater than the start time. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.