Categorygithub.com/grafana/synthetic-monitoring-api-go-client

# README

Build Status go.mod Go version Go Report Card Go Reference License

Synthetic Monitoring API Go client

This is a Go client for the API used by Grafana's Synthetic Monitoring application.

For instructions about setting up Synthetic Monitoring in your Grafana Cloud instance, please visit our docs

API documentation

Please consult the documentation for the API that this library accesses.

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

NewClient creates a new client for the Synthetic Monitoring API.
NewDatasourceClient creates a new client for the Synthetic Monitoring API using a Grafana datasource proxy.
ValidateResponse handles responses from the SM API.

# Variables

ErrAuthorizationTokenRequired is the error returned by client calls that require an authorization token.
ErrCannotEncodeJSONRequest is the error returned if it's not possible to encode the request as a JSON object.
ErrUnexpectedResponse is returned by client calls that get unexpected responses, for example some field that must not be zero is zero.

# Structs

Client is a Synthetic Monitoring API client.
HTTPError represents errors returned from the Synthetic Monitoring API server.