Skip to content

submit_feedback

submit_feedback(
    text: FeedbackText, *, config_overrides: Optional[CloudWatchOmniClientConfig] = None
) -> SubmitFeedbackOutput

This operation is in preview release for Amazon CloudWatch Omni and is subject to change. Sends feedback about the CloudWatch Omni observability experience. Describe what was helpful, wrong, or missing in the text member. The feedback is recorded against the calling account, which is taken from the caller's identity rather than from the request.

Parameters:

  • text (FeedbackText) –

    The feedback to record, as free text — what was helpful, wrong, or missing. A request that omits it, or whose value is only whitespace, returns a ValidationException.

Raises:

Examples:

Send free-text feedback The following example sends a free-text comment about an observability finding. Payloads are shown as JSON; on the wire they are CBOR-encoded.

>>> client.submit_feedback(text='The observation for the checkout service identified the wrong root cause.')
Source code in docs_src/capo_cloudwatchomni/_services/cloud_watch_omni.py
def submit_feedback(
    self,
    text: "capo_cloudwatchomni.types.feedback_text.FeedbackText",
    *,
    config_overrides: Optional[CloudWatchOmniClientConfig] = None,
) -> "capo_cloudwatchomni.types.submit_feedback_output.SubmitFeedbackOutput":
    """This operation is in preview release for Amazon CloudWatch Omni and is subject to change. Sends feedback about the CloudWatch Omni observability experience. Describe what was helpful, wrong, or missing in the `text` member. The feedback is recorded against the calling account, which is taken from the caller's identity rather than from the request.

    Args:
        text: The feedback to record, as free text — what was helpful, wrong, or missing. A request that omits it, or whose value is only whitespace, returns a ValidationException.

    Raises:
        capo_cloudwatchomni.errors.access_denied_exception.AccessDeniedException: The caller is not authorized to perform this action.
        capo_cloudwatchomni.errors.internal_server_exception.InternalServerException: An unexpected error occurred while processing the request.
        capo_cloudwatchomni.errors.throttling_exception.ThrottlingException: The request was throttled due to exceeding the allowed request rate.
        capo_cloudwatchomni.errors.validation_exception.ValidationException: A parameter is specified incorrectly.
        capo_cloudwatchomni.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        Send free-text feedback
        The following example sends a free-text comment about an observability finding. Payloads are shown as JSON; on the wire they are CBOR-encoded.

        >>> client.submit_feedback(text='The observation for the checkout service identified the wrong root cause.')
    """

    def _handler(
        req: "OperationRequest[capo_cloudwatchomni.types.submit_feedback_input.SubmitFeedbackInput]",
    ) -> OperationResponse[
        "capo_cloudwatchomni.types.submit_feedback_output.SubmitFeedbackOutput"
    ]:
        import capo_cloudwatchomni._operations.cloud_watch_omni_frontend.submit_feedback

        output, http_response = (
            capo_cloudwatchomni._operations.cloud_watch_omni_frontend.submit_feedback.submit_feedback(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    def _redact_input(
        input_: "capo_cloudwatchomni.types.submit_feedback_input.SubmitFeedbackInput",
    ) -> dict[str, Any]:
        import capo_cloudwatchomni.types.submit_feedback_input

        return capo_cloudwatchomni.types.submit_feedback_input.redact_sensitive(
            input_
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("SubmitFeedback", redact_input=_redact_input),
    )
    input_: capo_cloudwatchomni.types.submit_feedback_input.SubmitFeedbackInput = {
        "text": text
    }

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