firehose

package
v1.97.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessRequestBody

func ProcessRequestBody(b []byte) ([]byte, error)

ProcessRequestBody converts Cloudwatch Stream protobuf metrics HTTP request body delivered via Firehose into OpenTelemetry protobuf message.

See https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Metric-Streams.html

It joins decoded "data" fields from "record" list:

{
  "requestId": "<uuid-string>",
  "timestamp": <int64-value>,
  "records": [
    {
      "data": "<base64-encoded-payload>"
    }
  ]
}

func ResponseWriter added in v1.97.7

func ResponseWriter(w http.ResponseWriter, ct time.Time, reqID string, err error)

ResponseWriter writes response for AWS Firehose HTTP Endpoint request https://docs.aws.amazon.com/firehose/latest/dev/httpdeliveryrequestresponse.html#responseformat

func WriteSuccessResponse added in v1.97.7

func WriteSuccessResponse(w http.ResponseWriter, r *http.Request)

WriteSuccessResponse writes success response for AWS Firehose request.

See https://docs.aws.amazon.com/firehose/latest/dev/httpdeliveryrequestresponse.html#responseformat

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL