listConfigurationHistory method
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.
May throw ValidationException. May throw ResourceNotFoundException. May throw InternalServerException.
Parameter endTime :
The end time of the event.
Parameter eventStatus :
The status of the configuration update event. Possible values include
INFO, WARN, and ERROR.
Parameter maxResults :
The maximum number of results returned by
ListConfigurationHistory in paginated output. When this
parameter is used, ListConfigurationHistory returns only
MaxResults in a single page along with a
NextToken response element. The remaining results of the
initial request can be seen by sending another
ListConfigurationHistory request with the returned
NextToken value. If this parameter is not used, then
ListConfigurationHistory returns all results.
Parameter nextToken :
The NextToken value returned from a previous paginated
ListConfigurationHistory request where
MaxResults was used and the results exceeded the value of
that parameter. Pagination continues from the end of the previous results
that returned the NextToken value. This value is
null when there are no more results to return.
Parameter resourceGroupName :
Resource group to which the application belongs.
Parameter startTime :
The start time of the event.
Implementation
Future<ListConfigurationHistoryResponse> listConfigurationHistory({
DateTime? endTime,
ConfigurationEventStatus? eventStatus,
int? maxResults,
String? nextToken,
String? resourceGroupName,
DateTime? startTime,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
40,
);
_s.validateStringLength(
'nextToken',
nextToken,
1,
1024,
);
_s.validateStringLength(
'resourceGroupName',
resourceGroupName,
1,
256,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'EC2WindowsBarleyService.ListConfigurationHistory'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (endTime != null) 'EndTime': unixTimestampToJson(endTime),
if (eventStatus != null) 'EventStatus': eventStatus.toValue(),
if (maxResults != null) 'MaxResults': maxResults,
if (nextToken != null) 'NextToken': nextToken,
if (resourceGroupName != null) 'ResourceGroupName': resourceGroupName,
if (startTime != null) 'StartTime': unixTimestampToJson(startTime),
},
);
return ListConfigurationHistoryResponse.fromJson(jsonResponse.body);
}