Documentation
¶
Index ¶
- func ConfigInstance() interface{}
- func GetConfig(connection *plugin.Connection) datadogConfig
- func Plugin(ctx context.Context) *plugin.Plugin
- type ApiResponse
- type BudgetRemaining
- type Creator
- type CustomTransport
- type CustomTransportOptions
- type DataResponse
- type LinksResponse
- type MetaResponse
- type OverallStatus
- type Pagination
- type Query
- type RequestContext
- type SLOAttributes
- type SLOAttributesDetails
- type SLOData
- type SLOResponse
- type SLOStatus
- type Threshold
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigInstance ¶
func ConfigInstance() interface{}
func GetConfig ¶
func GetConfig(connection *plugin.Connection) datadogConfig
GetConfig :: retrieve and cast connection config from query data
Types ¶
type ApiResponse ¶ added in v1.1.0
type ApiResponse struct {
Data DataResponse `json:"data"`
Meta MetaResponse `json:"meta"`
Links LinksResponse `json:"links"`
}
Root structure to represent the API response
type BudgetRemaining ¶ added in v1.1.0
type CustomTransport ¶
type CustomTransport struct {
// contains filtered or unexported fields
}
CustomTransport holds DefaultTransport configuration and is used to for custom http error handling
func NewCustomTransport ¶
func NewCustomTransport(t http.RoundTripper, opt CustomTransportOptions) *CustomTransport
NewCustomTransport returns new CustomTransport struct
func (*CustomTransport) DefaultBackoff ¶
func (t *CustomTransport) DefaultBackoff(min, max time.Duration, attemptNum int, resp *http.Response) time.Duration
It also tries to parse Retry-After response header when a http.StatusTooManyRequests (HTTP Code 429) is found in the resp parameter. Hence it will return the number of seconds the server states it may be ready to process more requests from this client.
type CustomTransportOptions ¶
CustomTransportOptions Set options for CustomTransport
type DataResponse ¶ added in v1.1.0
type DataResponse struct {
Type string `json:"type"`
Attributes SLOAttributes `json:"attributes"`
}
type LinksResponse ¶ added in v1.1.0
type MetaResponse ¶ added in v1.1.0
type MetaResponse struct {
Pagination *Pagination `json:"pagination"`
}
type OverallStatus ¶ added in v1.1.0
type OverallStatus struct {
Status float64 `json:"status"`
Timeframe string `json:"timeframe"`
IndexedAt int64 `json:"indexed_at"`
SpanPrecision int `json:"span_precision"`
RawErrorBudgetRemaining BudgetRemaining `json:"raw_error_budget_remaining"`
ErrorBudgetRemaining float64 `json:"error_budget_remaining"`
Error interface{} `json:"error"`
State string `json:"state"`
Target float64 `json:"target"`
}
type Pagination ¶ added in v1.1.0
type RequestContext ¶ added in v1.1.0
type RequestContext struct {
UserHasWriteAccessForSLO bool `json:"user_has_write_access_for_slo"`
}
type SLOAttributes ¶ added in v1.1.0
type SLOAttributes struct {
SLOs []SLOResponse `json:"slos"`
}
type SLOAttributesDetails ¶ added in v1.1.0
type SLOAttributesDetails struct {
Timeframe *string `json:"timeframe"`
WarningThreshold *float64 `json:"warning_threshold"`
Groups interface{} `json:"groups"`
Thresholds []Threshold `json:"thresholds"`
CreatedAt *int64 `json:"created_at"`
Status SLOStatus `json:"status"`
TeamTags []string `json:"team_tags"`
ModifiedAt *int64 `json:"modified_at"`
OverallStatus []OverallStatus `json:"overall_status"`
AllTags []string `json:"all_tags"`
Query *Query `json:"query,omitempty"`
RequestContext RequestContext `json:"request_context"`
MonitorIDs []int `json:"monitor_ids,omitempty"`
MonitorTags []int `json:"monitor_tags,omitempty"`
ServiceTags []string `json:"service_tags"`
Name *string `json:"name"`
Description interface{} `json:"description"`
SLOType *string `json:"slo_type"`
TargetThreshold *float64 `json:"target_threshold"`
Creator Creator `json:"creator"`
EnvTags []string `json:"env_tags"`
}
type SLOData ¶ added in v1.1.0
type SLOData struct {
Type string `json:"type"`
Attributes *SLOAttributesDetails `json:"attributes"`
ID string `json:"id"`
}
type SLOResponse ¶ added in v1.1.0
type SLOResponse struct {
Data *SLOData `json:"data"`
}
type SLOStatus ¶ added in v1.1.0
type SLOStatus struct {
CalculationError interface{} `json:"calculation_error"`
IndexedAt *int64 `json:"indexed_at"`
SpanPrecision *int `json:"span_precision"`
RawErrorBudgetRemaining BudgetRemaining `json:"raw_error_budget_remaining"`
ErrorBudgetRemaining *float64 `json:"error_budget_remaining"`
State *string `json:"state"`
SLI *float64 `json:"sli"`
}
Source Files
¶
- connection_config.go
- custom_transport.go
- plugin.go
- table_datadog_dashboard.go
- table_datadog_host.go
- table_datadog_integration_aws.go
- table_datadog_log_event.go
- table_datadog_logs_metric.go
- table_datadog_monitor.go
- table_datadog_permission.go
- table_datadog_role.go
- table_datadog_security_monitoring_rule.go
- table_datadog_security_monitoring_signal.go
- table_datadog_service_level_objective.go
- table_datadog_user.go
- utils.go
Click to show internal directories.
Click to hide internal directories.