cloudwatch

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package cloudwatch implements AWS CloudWatch's Smithy RPC-v2-CBOR protocol as a server.Handler.

Modern aws-sdk-go-v2 CloudWatch clients no longer use the AWS query protocol — they send CBOR-encoded request bodies to URLs like /service/GraniteServiceVersion20100801/operation/<Operation>, with headers:

Smithy-Protocol: rpc-v2-cbor
Content-Type:    application/cbor

This handler matches those requests, decodes CBOR, dispatches to the monitoring driver, and writes CBOR responses.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler serves CloudWatch rpc-v2-cbor requests against a monitoring driver.

func New

New returns a CloudWatch handler backed by m.

func (*Handler) Matches

func (*Handler) Matches(r *http.Request) bool

Matches returns true for Smithy rpc-v2-cbor requests.

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP parses the URL path for the operation name and dispatches.

Jump to

Keyboard shortcuts

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