list_entity_events
¶
list_entity_events(
entity: Attributes,
start_time: datetime,
end_time: datetime,
*,
config_overrides: Optional[ApplicationSignalsClientConfig] = None,
max_results: Optional[ListEntityEventsMaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListEntityEventsOutput
Returns a list of change events for a specific entity, such as deployments, configuration changes, or other state-changing activities. This operation helps track the history of changes that may have affected service performance.
Parameters:
-
entity(Attributes) –The entity for which to retrieve change events. This specifies the service, resource, or other entity whose event history you want to examine.
This is a string-to-string map. It can include the following fields.
-
Typedesignates the type of object this is. -
ResourceTypespecifies the type of the resource. This field is used only when the value of theTypefield isResourceorAWS::Resource. -
Namespecifies the name of the object. This is used only if the value of theTypefield isService,RemoteService, orAWS::Service. -
Identifieridentifies the resource objects of this resource. This is used only if the value of theTypefield isResourceorAWS::Resource. -
Environmentspecifies the location where this object is hosted, or what it belongs to. -
AwsAccountIdspecifies the account where this object is in.
Below is an example of a service.
{ "Type": "Service", "Name": "visits-service", "Environment": "petclinic-test" }Below is an example of a resource.
{ "Type": "AWS::Resource", "ResourceType": "AWS::DynamoDB::Table", "Identifier": "Customers" } -
-
start_time(datetime) –The start of the time period to retrieve change events for. When used in a raw HTTP Query API, it is formatted as epoch time in seconds. For example:
1698778057 -
end_time(datetime) –The end of the time period to retrieve change events for. When used in a raw HTTP Query API, it is formatted as epoch time in seconds. For example:
1698778057 -
max_results(Optional[ListEntityEventsMaxResults], default:None) –The maximum number of change events to return in one operation. If you omit this parameter, the default of 50 is used.
-
next_token(Optional[NextToken], default:None) –Include this value, if it was returned by the previous operation, to get the next set of change events.
Raises:
-
ThrottlingException–The request was throttled because of quota limits.
-
ValidationException–The resource is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.