The LookupAttribute parameter filters results when you call the LookupInsightEvents API operation. The following sections describe the supported filter attributes and usage limitations.
You can specify a maximum of two AttributeItem objects as filter conditions in the LookupAttribute parameter. Using two objects is subject to certain limitations. For more information, see the "Limitations" section.
Each AttributeItem object is a key-value pair that filters events by a specific property, such as the service name or event name. For example, to find events from Elastic Compute Service (ECS), specify an attribute key of ServiceName and an attribute value of Ecs. The following table describes the supported attribute keys.
|
Attribute key |
Attribute value |
Example |
|
ServiceName |
The service code for the Alibaba Cloud service. For more information, see the Service code column in the Supported cloud services list. |
Ecs |
|
EventName |
The name of the event. For more information, see the Event column in the Audited events in ActionTrail list. |
LookupEvents |
|
SourceIpAddress |
The source IP address of the request. |
192.168.***.*** |
|
InsightType |
The type of the Insights event. For a list of valid values, see the Insights event type description in Insights event structure. |
IpInsight |
|
EventId |
The event ID. |
B702AFA3-FD4B-40E3-88E4-C0752FAA**** |
|
AccessKeyId |
The AccessKey ID used to make the request. |
LTAI**************** |
|
InsightObject |
The primary subject of the Insights event analysis. The value of this key depends on the |
LTAI**************** |
Limitations
You can specify a maximum of two AttributeItem objects in the LookupAttribute parameter. The query performs a case-sensitive, exact match on the specified key-value pairs.
-
When two
AttributeItemobjects are specified, the query returns events that match both conditions (a logical AND). -
When using two
AttributeItemobjects, the only supported combination of attribute keys isServiceNameandEventName. -
Specifying more than two filter conditions results in an error.