datadog

package
v0.0.0-...-e0434a4 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResourceType voyager.ResourceType = "DatadogAlarm"
)

Variables

This section is empty.

Functions

Types

type AlarmAttributes

type AlarmAttributes struct {
	Name    string        `json:"name"`
	Type    AlarmSpecType `json:"type"`
	Query   string        `json:"query"`
	Options AlarmOptions  `json:"options"`
	Message string        `json:"message"`
}

type AlarmOptions

type AlarmOptions struct {
	Thresholds        *AlarmThresholds `json:"thresholds,omitempty"`
	NewHostDelay      *int32           `json:"new_host_delay,omitempty"`
	RenotifyInterval  *int32           `json:"renotify_interval,omitempty"`
	TimeoutSeconds    *int32           `json:"timeout_h,omitempty"`
	EscalationMessage string           `json:"escalation_message,omitempty"`
	NoDataTimeFrame   string           `json:"no_data_timeframe,omitempty"`
	Locked            bool             `json:"locked,omitempty"`
	NotifyNoData      bool             `json:"notify_no_data,omitempty"`
	NotifyAudit       bool             `json:"notify_audit,omitempty"`
	RequireFullWindow bool             `json:"require_full_window,omitempty"`
}

type AlarmSpecType

type AlarmSpecType string
const (
	Metric AlarmSpecType = "metric alert"
)

type AlarmThresholds

type AlarmThresholds struct {
	Critical int32 `json:"critical,omitempty"`
	Warning  int32 `json:"warning,omitempty"`
}

type AlarmType

type AlarmType string
const (
	CPU    AlarmType = "cpu"
	Memory AlarmType = "memory"
)

type OSBInstanceParameters

type OSBInstanceParameters struct {
	ServiceName voyager.ServiceName `json:"serviceName"`
	EnvType     voyager.EnvType     `json:"envType"`
	Region      voyager.Region      `json:"region"`
	Label       voyager.Label       `json:"label,omitempty"`
	Attributes  AlarmAttributes     `json:"attributes"`
}

type QueryParams

type QueryParams struct {
	KubeDeployment string           `json:"kubeDeployment,omitempty"`
	KubeNamespace  string           `json:"kubeNamespace,omitempty"`
	Threshold      *AlarmThresholds `json:"threshold,omitempty"`
	AlarmType      AlarmType        `json:"alarmType,omitempty"`
	Location       voyager.Location `json:"location,omitempty"`
}

type WiringPlugin

type WiringPlugin struct {
}

Jump to

Keyboard shortcuts

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