Skip to content

list_configuration_history

list_configuration_history(
    *,
    config_overrides: Optional[ApplicationInsightsClientConfig] = None,
    resource_group_name: Optional[ResourceGroupName] = None,
    start_time: Optional[StartTime] = None,
    end_time: Optional[EndTime] = None,
    event_status: Optional[ConfigurationEventStatus] = None,
    max_results: Optional[MaxEntities] = None,
    next_token: Optional[PaginationToken] = None,
    account_id: Optional[AccountId] = None,
) -> ListConfigurationHistoryResponse

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.

Parameters:

  • resource_group_name (Optional[ResourceGroupName], default: None ) –

    Resource group to which the application belongs.

  • start_time (Optional[StartTime], default: None ) –

    The start time of the event.

  • end_time (Optional[EndTime], default: None ) –

    The end time of the event.

  • event_status (Optional[ConfigurationEventStatus], default: None ) –

    The status of the configuration update event. Possible values include INFO, WARN, and ERROR.

  • max_results (Optional[MaxEntities], default: None ) –

    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.

  • next_token (Optional[PaginationToken], default: None ) –

    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.

  • account_id (Optional[AccountId], default: None ) –

    The Amazon Web Services account ID for the resource group owner.

Raises:

Source code in docs_src/capo_application_insights/_services/application_insights.py
def list_configuration_history(
    self,
    *,
    config_overrides: Optional[ApplicationInsightsClientConfig] = None,
    resource_group_name: Optional[
        "capo_application_insights.types.resource_group_name.ResourceGroupName"
    ] = None,
    start_time: Optional[
        "capo_application_insights.types.start_time.StartTime"
    ] = None,
    end_time: Optional["capo_application_insights.types.end_time.EndTime"] = None,
    event_status: Optional[
        "capo_application_insights.types.configuration_event_status.ConfigurationEventStatus"
    ] = None,
    max_results: Optional[
        "capo_application_insights.types.max_entities.MaxEntities"
    ] = None,
    next_token: Optional[
        "capo_application_insights.types.pagination_token.PaginationToken"
    ] = None,
    account_id: Optional[
        "capo_application_insights.types.account_id.AccountId"
    ] = None,
) -> "capo_application_insights.types.list_configuration_history_response.ListConfigurationHistoryResponse":
    """<p> Lists the INFO, WARN, and ERROR events for periodic configuration updates performed by Application Insights. Examples of events represented are: </p> <ul> <li> <p>INFO: creating a new alarm or updating an alarm threshold.</p> </li> <li> <p>WARN: alarm not created due to insufficient data points used to predict thresholds.</p> </li> <li> <p>ERROR: alarm not created due to permission errors or exceeding quotas. </p> </li> </ul>

    Args:
        resource_group_name: <p>Resource group to which the application belongs. </p>
        start_time: <p>The start time of the event. </p>
        end_time: <p>The end time of the event.</p>
        event_status: <p>The status of the configuration update event. Possible values include INFO, WARN, and ERROR.</p>
        max_results: <p> The maximum number of results returned by <code>ListConfigurationHistory</code> in paginated output. When this parameter is used, <code>ListConfigurationHistory</code> returns only <code>MaxResults</code> in a single page along with a <code>NextToken</code> response element. The remaining results of the initial request can be seen by sending another <code>ListConfigurationHistory</code> request with the returned <code>NextToken</code> value. If this parameter is not used, then <code>ListConfigurationHistory</code> returns all results. </p>
        next_token: <p>The <code>NextToken</code> value returned from a previous paginated <code>ListConfigurationHistory</code> request where <code>MaxResults</code> was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the <code>NextToken</code> value. This value is <code>null</code> when there are no more results to return.</p>
        account_id: <p>The Amazon Web Services account ID for the resource group owner.</p>

    Raises:
        capo_application_insights.errors.internal_server_exception.InternalServerException: <p>The server encountered an internal error and is unable to complete the request.</p>
        capo_application_insights.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource does not exist in the customer account.</p>
        capo_application_insights.errors.validation_exception.ValidationException: <p>The parameter is not valid.</p>
        capo_application_insights.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_application_insights.types.list_configuration_history_request.ListConfigurationHistoryRequest]",
    ) -> OperationResponse[
        "capo_application_insights.types.list_configuration_history_response.ListConfigurationHistoryResponse"
    ]:
        import capo_application_insights._operations.ec2_windows_barley_service.list_configuration_history

        output, http_response = (
            capo_application_insights._operations.ec2_windows_barley_service.list_configuration_history.list_configuration_history(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListConfigurationHistory")
    )
    input_: capo_application_insights.types.list_configuration_history_request.ListConfigurationHistoryRequest = {}
    if resource_group_name is not None:
        input_["resource_group_name"] = resource_group_name
    if start_time is not None:
        input_["start_time"] = start_time
    if end_time is not None:
        input_["end_time"] = end_time
    if event_status is not None:
        input_["event_status"] = event_status
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token
    if account_id is not None:
        input_["account_id"] = account_id

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output