Documentation ¶
Overview ¶
Package transport provides methods to create an HTTP transport that can communicate with the Chronosphere API.
Index ¶
Constants ¶
View Source
const ( // OrgNameEnvVar is the name of the environment variable that can be used to set the // Chronosphere organization name. OrgNameEnvVar = "CHRONOSPHERE_ORG_NAME" )
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(config RuntimeConfig) (*httptransport.Runtime, error)
New creates a new HTTP transport that can communicate with the Chronosphere API.
Types ¶
type Component ¶
type Component string
Component is a value that indicates the part of the CLI that is invoking an API. This is used to set the User-Agent header when making requests to the Chronosphere API.
type CustomHeaderTransport ¶ added in v1.6.0
type CustomHeaderTransport struct { Rt http.RoundTripper // contains filtered or unexported fields }
CustomHeaderTransport is a RoundTripper that adds a custom headres to all requests for example: User-Agent, and Chrono-Entity-Namespace
Click to show internal directories.
Click to hide internal directories.