Skip to content

list_service_level_objective_exclusion_windows

list_service_level_objective_exclusion_windows(
    id: ServiceLevelObjectiveId,
    *,
    config_overrides: Optional[ApplicationSignalsClientConfig] = None,
    max_results: Optional[ListServiceLevelObjectiveExclusionWindowsMaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> ListServiceLevelObjectiveExclusionWindowsOutput

Retrieves all exclusion windows configured for a specific SLO.

Parameters:

Raises:

Source code in docs_src/capo_application_signals/_services/application_signals.py
def list_service_level_objective_exclusion_windows(
    self,
    id: "capo_application_signals.types.service_level_objective_id.ServiceLevelObjectiveId",
    *,
    config_overrides: Optional[ApplicationSignalsClientConfig] = None,
    max_results: Optional[
        "capo_application_signals.types.list_service_level_objective_exclusion_windows_max_results.ListServiceLevelObjectiveExclusionWindowsMaxResults"
    ] = None,
    next_token: Optional[
        "capo_application_signals.types.next_token.NextToken"
    ] = None,
) -> "capo_application_signals.types.list_service_level_objective_exclusion_windows_output.ListServiceLevelObjectiveExclusionWindowsOutput":
    """<p>Retrieves all exclusion windows configured for a specific SLO.</p>

    Args:
        id: <p>The ID of the SLO to list exclusion windows for.</p>
        max_results: <p>The maximum number of results to return in one operation. If you omit this parameter, the default of 50 is used. </p>
        next_token: <p>Include this value, if it was returned by the previous operation, to get the next set of service level objectives. </p>

    Raises:
        capo_application_signals.errors.resource_not_found_exception.ResourceNotFoundException: <p>Resource not found.</p>
        capo_application_signals.errors.throttling_exception.ThrottlingException: <p>The request was throttled because of quota limits.</p>
        capo_application_signals.errors.validation_exception.ValidationException: <p>The resource is not valid.</p>
        capo_application_signals.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_application_signals.types.list_service_level_objective_exclusion_windows_input.ListServiceLevelObjectiveExclusionWindowsInput]",
    ) -> OperationResponse[
        "capo_application_signals.types.list_service_level_objective_exclusion_windows_output.ListServiceLevelObjectiveExclusionWindowsOutput"
    ]:
        import capo_application_signals._operations.application_signals.list_service_level_objective_exclusion_windows

        output, http_response = (
            capo_application_signals._operations.application_signals.list_service_level_objective_exclusion_windows.list_service_level_objective_exclusion_windows(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("ListServiceLevelObjectiveExclusionWindows"),
    )
    input_: capo_application_signals.types.list_service_level_objective_exclusion_windows_input.ListServiceLevelObjectiveExclusionWindowsInput = {
        "id": id
    }
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

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