Documentation ¶
Index ¶
- func GetDatadogClient() *dd.APIClient
- func GetDatadogContext() context.Context
- func GetMetadata(ctx context.Context, ddClient *dd.APIClient) (*dd.MonitorSearchResponseMetadata, error)
- func ListMonitors(ctx context.Context, ddClient *dd.APIClient, ...) ([]dd.MonitorSearchResult, error)
- func MakeUniq(arr [][]string) [][]string
- type IntegrationTarget
- type MonitorScopesMapping
- type MonitorTagsMapping
- type Scope
- type Tags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDatadogClient ¶
GetDatadogClient returns Datadog client.
func GetDatadogContext ¶
GetDatadogContext returns Datadog authentication context.
func GetMetadata ¶
func GetMetadata(ctx context.Context, ddClient *dd.APIClient) (*dd.MonitorSearchResponseMetadata, error)
GetMetadata returns Datadog SearchMonitors Metadata.
func ListMonitors ¶
func ListMonitors( ctx context.Context, ddClient *dd.APIClient, metadata *dd.MonitorSearchResponseMetadata, ) ([]dd.MonitorSearchResult, error)
ListMonitors returns a list of Datadog monitors.
Types ¶
type IntegrationTarget ¶
type IntegrationTarget string
IntegrationTarget represents datadog integration service type.
const ( // AwsMetricsPrefix represents Datadog AWS Integration metrics prefix. AwsMetricsPrefix = "aws" // AwsAPIGateway represents AWS API Gateway integration. AwsAPIGateway IntegrationTarget = "aws_apigateway" // AwsAutoScalingGroup represents AWS AutoScalingGroup integration. AwsAutoScalingGroup IntegrationTarget = "aws_autoscaling" // AwsClb represents AWS CLB integration. AwsClb IntegrationTarget = "aws_elb" // AwsDynamoDB represents AWS DynamoDB integration. AwsDynamoDB IntegrationTarget = "aws_dynamodb" // AwsElastiCache represents AWS ElastiCache integration. AwsElastiCache IntegrationTarget = "aws_elasticache" // AwsElb represents AWS ALB/NLB integration. AwsElb IntegrationTarget = "aws_applicationelb" // AwsFirehose represents AWS Firehose integration. AwsFirehose IntegrationTarget = "aws_firehose" // AwsKinesis represents AWS Kinesis integration. AwsKinesis IntegrationTarget = "aws_kinesis" // AwsOpenSearchService represents AWS OpenSearch Service integration. AwsOpenSearchService IntegrationTarget = "aws_elasticsearchservice" // AwsRds represents AWS RDS integration. AwsRds IntegrationTarget = "aws_rds" // AwsSns represents AWS SNS integration. AwsSns IntegrationTarget = "aws_sns" // AwsStepFunction represents AWS StepFunction integration. AwsStepFunction IntegrationTarget = "aws_states" // AwsSqs represents AWS SQS integration. AwsSqs IntegrationTarget = "aws_sqs" // UnknownIntegration represents unknonwn integration. UnknownIntegration IntegrationTarget = "unknown" )
func MetricToIntegrationTarget ¶
func MetricToIntegrationTarget(metric string) IntegrationTarget
MetricToIntegrationTarget returns the IntegrationTarget to which the specified metric belongs.
type MonitorScopesMapping ¶
MonitorScopesMapping represents a mapping of Datadog monitor ID and its scope.
func GetMonitorScopesMapping ¶
func GetMonitorScopesMapping(monitors []dd.MonitorSearchResult) (MonitorScopesMapping, error)
GetMonitorScopesMapping returns the latest MonitorScopesMapping.
type MonitorTagsMapping ¶
MonitorTagsMapping represents a mapping of Datadog monitor ID and its tags.
func GetMonitorTagsMapping ¶
func GetMonitorTagsMapping(monitors []dd.MonitorSearchResult) (MonitorTagsMapping, error)
GetMonitorTagsMapping returns the latest MonitorTagsMapping.
Click to show internal directories.
Click to hide internal directories.