Documentation ¶
Index ¶
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 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
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.