ApplicationInsights / Client / list_configuration_history
list_configuration_history#
- ApplicationInsights.Client.list_configuration_history(**kwargs)#
Lists the INFO, WARN, and ERROR events for periodic configuration updates performed by Application Insights. Examples of events represented are:
INFO: creating a new alarm or updating an alarm threshold.
WARN: alarm not created due to insufficient data points used to predict thresholds.
ERROR: alarm not created due to permission errors or exceeding quotas.
See also: AWS API Documentation
Request Syntax
response = client.list_configuration_history( ResourceGroupName='string', StartTime=datetime(2015, 1, 1), EndTime=datetime(2015, 1, 1), EventStatus='INFO'|'WARN'|'ERROR', MaxResults=123, NextToken='string', AccountId='string' )
- Parameters:
ResourceGroupName (string) – Resource group to which the application belongs.
StartTime (datetime) – The start time of the event.
EndTime (datetime) – The end time of the event.
EventStatus (string) – The status of the configuration update event. Possible values include INFO, WARN, and ERROR.
MaxResults (integer) – The maximum number of results returned by
ListConfigurationHistoryin paginated output. When this parameter is used,ListConfigurationHistoryreturns onlyMaxResultsin a single page along with aNextTokenresponse element. The remaining results of the initial request can be seen by sending anotherListConfigurationHistoryrequest with the returnedNextTokenvalue. If this parameter is not used, thenListConfigurationHistoryreturns all results.NextToken (string) – The
NextTokenvalue returned from a previous paginatedListConfigurationHistoryrequest whereMaxResultswas used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned theNextTokenvalue. This value isnullwhen there are no more results to return.AccountId (string) – The Amazon Web Services account ID for the resource group owner.
- Return type:
dict
- Returns:
Response Syntax
{ 'EventList': [ { 'ResourceGroupName': 'string', 'AccountId': 'string', 'MonitoredResourceARN': 'string', 'EventStatus': 'INFO'|'WARN'|'ERROR', 'EventResourceType': 'CLOUDWATCH_ALARM'|'CLOUDWATCH_LOG'|'CLOUDFORMATION'|'SSM_ASSOCIATION', 'EventTime': datetime(2015, 1, 1), 'EventDetail': 'string', 'EventResourceName': 'string' }, ], 'NextToken': 'string' }
Response Structure
(dict) –
EventList (list) –
The list of configuration events and their corresponding details.
(dict) –
The event information.
ResourceGroupName (string) –
The name of the resource group of the application to which the configuration event belongs.
AccountId (string) –
The Amazon Web Services account ID for the owner of the application to which the configuration event belongs.
MonitoredResourceARN (string) –
The resource monitored by Application Insights.
EventStatus (string) –
The status of the configuration update event. Possible values include INFO, WARN, and ERROR.
EventResourceType (string) –
The resource type that Application Insights attempted to configure, for example, CLOUDWATCH_ALARM.
EventTime (datetime) –
The timestamp of the event.
EventDetail (string) –
The details of the event in plain text.
EventResourceName (string) –
The name of the resource Application Insights attempted to configure.
NextToken (string) –
The
NextTokenvalue to include in a futureListConfigurationHistoryrequest. When the results of aListConfigurationHistoryrequest exceedMaxResults, this value can be used to retrieve the next page of results. This value isnullwhen there are no more results to return.
Exceptions
ApplicationInsights.Client.exceptions.ValidationExceptionApplicationInsights.Client.exceptions.ResourceNotFoundExceptionApplicationInsights.Client.exceptions.InternalServerException