Show / Hide Table of Contents

Namespace Pulumi.Datadog

Classes

Config

Dashboard

DashboardArgs

DashboardList

DashboardListArgs

DashboardListState

DashboardState

Downtime

Provides a Datadog downtime resource. This can be used to create and manage Datadog downtimes.

Example: downtime for a specific monitor

using Pulumi;
using Datadog = Pulumi.Datadog;

class MyStack : Stack
{
public MyStack()
{
    // Create a new daily 1700-0900 Datadog downtime for a specific monitor id
    var foo = new Datadog.Downtime("foo", new Datadog.DowntimeArgs
    {
        End = 1483365600,
        MonitorId = 12345,
        Recurrence = new Datadog.Inputs.DowntimeRecurrenceArgs
        {
            Period = 1,
            Type = "days",
        },
        Scopes = 
        {
            "*",
        },
        Start = 1483308000,
    });
}

}

Example: downtime for all monitors

using Pulumi;
using Datadog = Pulumi.Datadog;

class MyStack : Stack
{
public MyStack()
{
    // Create a new daily 1700-0900 Datadog downtime for all monitors
    var foo = new Datadog.Downtime("foo", new Datadog.DowntimeArgs
    {
        End = 1483365600,
        Recurrence = new Datadog.Inputs.DowntimeRecurrenceArgs
        {
            Period = 1,
            Type = "days",
        },
        Scopes = 
        {
            "*",
        },
        Start = 1483308000,
    });
}

}

DowntimeArgs

DowntimeState

GetIpRanges

GetIpRangesResult

LogsCustomPipeline

Provides a Datadog Logs Pipeline API resource, which is used to create and manage Datadog logs custom pipelines.

Important Notes

Each datadog..LogsCustomPipeline resource defines a complete pipeline. The order of the pipelines is maintained in a different resource datadog_logs_pipeline_order. When creating a new pipeline, you need to explicitly add this pipeline to the datadog..LogsPipelineOrder resource to track the pipeline. Similarly, when a pipeline needs to be destroyed, remove its references from the datadog..LogsPipelineOrder resource.

LogsCustomPipelineArgs

LogsCustomPipelineState

LogsIndex

LogsIndexArgs

LogsIndexOrder

Provides a Datadog Logs Index API resource. This can be used to manage the order of Datadog logs indexes.

Example Usage

using Pulumi;
using Datadog = Pulumi.Datadog;

class MyStack : Stack
{
public MyStack()
{
    var sampleIndexOrder = new Datadog.LogsIndexOrder("sampleIndexOrder", new Datadog.LogsIndexOrderArgs
    {
        Name = "sample_index_order",
        Indexes = 
        {
            datadog_logs_index.Sample_index.Id,
        },
    });
}

}

LogsIndexOrderArgs

LogsIndexOrderState

LogsIndexState

LogsIntegrationPipeline

Provides a Datadog Logs Pipeline API resource to manage the integrations.

Integration pipelines are the pipelines that are automatically installed for your organization when sending the logs with specific sources. You don't need to maintain or update these types of pipelines. Keeping them as resources, however, allows you to manage the order of your pipelines by referencing them in your datadog..LogsPipelineOrder resource. If you don't need the pipeline_order feature, this resource declaration can be omitted.

Example Usage

using Pulumi;
using Datadog = Pulumi.Datadog;

class MyStack : Stack
{
public MyStack()
{
    var python = new Datadog.LogsIntegrationPipeline("python", new Datadog.LogsIntegrationPipelineArgs
    {
        IsEnabled = true,
    });
}

}

LogsIntegrationPipelineArgs

LogsIntegrationPipelineState

LogsPipelineOrder

Provides a Datadog Logs Pipeline API resource, which is used to manage Datadog log pipelines order.

Example Usage

using Pulumi;
using Datadog = Pulumi.Datadog;

class MyStack : Stack
{
public MyStack()
{
    var samplePipelineOrder = new Datadog.LogsPipelineOrder("samplePipelineOrder", new Datadog.LogsPipelineOrderArgs
    {
        Name = "sample_pipeline_order",
        Pipelines = 
        {
            datadog_logs_custom_pipeline.Sample_pipeline.Id,
            datadog_logs_integration_pipeline.Python.Id,
        },
    });
}

}

LogsPipelineOrderArgs

LogsPipelineOrderState

MetricMetadata

Provides a Datadog metric_metadata resource. This can be used to manage a metric's metadata.

Example Usage

using Pulumi;
using Datadog = Pulumi.Datadog;

class MyStack : Stack
{
public MyStack()
{
    // Manage a Datadog metric's metadata
    var requestTime = new Datadog.MetricMetadata("requestTime", new Datadog.MetricMetadataArgs
    {
        Description = "99th percentile request time in millseconds",
        Metric = "request.time",
        ShortName = "Request time",
        Type = "gauge",
        Unit = "millisecond",
    });
}

}

MetricMetadataArgs

MetricMetadataState

Monitor

MonitorArgs

MonitorState

Provider

The provider type for the datadog package. By default, resources use package-wide configuration settings, however an explicit Provider instance may be created and passed during resource construction to achieve fine-grained programmatic control over provider settings. See the documentation for more information.

ProviderArgs

ScreenBoard

Provides a Datadog screenboard resource. This can be used to create and manage Datadog screenboards.

Note: This resource is outdated. Use the new datadog..Dashboard resource instead.

ScreenBoardArgs

ScreenBoardState

ServiceLevelObjective

Provides a Datadog service level objective resource. This can be used to create and manage Datadog service level objectives.

Example Usage

Metric-Based SLO

using Pulumi;
using Datadog = Pulumi.Datadog;

class MyStack : Stack
{
public MyStack()
{
    // Create a new Datadog service level objective
    var foo = new Datadog.ServiceLevelObjective("foo", new Datadog.ServiceLevelObjectiveArgs
    {
        Description = "My custom metric SLO",
        Name = "Example Metric SLO",
        Query = new Datadog.Inputs.ServiceLevelObjectiveQueryArgs
        {
            Denominator = "sum:my.custom.count.metric{*}.as_count()",
            Numerator = "sum:my.custom.count.metric{type:good_events}.as_count()",
        },
        Tags = 
        {
            "foo:bar",
            "baz",
        },
        Thresholds = 
        {
            new Datadog.Inputs.ServiceLevelObjectiveThresholdArgs
            {
                Target = 99.9,
                TargetDisplay = "99.900",
                Timeframe = "7d",
                Warning = 99.99,
                WarningDisplay = "99.990",
            },
            new Datadog.Inputs.ServiceLevelObjectiveThresholdArgs
            {
                Target = 99.9,
                TargetDisplay = "99.900",
                Timeframe = "30d",
                Warning = 99.99,
                WarningDisplay = "99.990",
            },
        },
        Type = "metric",
    });
}

}

Monitor-Based SLO

using Pulumi;
using Datadog = Pulumi.Datadog;

class MyStack : Stack
{
public MyStack()
{
    // Create a new Datadog service level objective
    var bar = new Datadog.ServiceLevelObjective("bar", new Datadog.ServiceLevelObjectiveArgs
    {
        Description = "My custom monitor SLO",
        MonitorIds = 
        {
            1,
            2,
            3,
        },
        Name = "Example Monitor SLO",
        Tags = 
        {
            "foo:bar",
            "baz",
        },
        Thresholds = 
        {
            new Datadog.Inputs.ServiceLevelObjectiveThresholdArgs
            {
                Target = 99.9,
                Timeframe = "7d",
                Warning = 99.99,
            },
            new Datadog.Inputs.ServiceLevelObjectiveThresholdArgs
            {
                Target = 99.9,
                Timeframe = "30d",
                Warning = 99.99,
            },
        },
        Type = "monitor",
    });
}

}

ServiceLevelObjectiveArgs

ServiceLevelObjectiveState

SyntheticsTest

SyntheticsTestArgs

SyntheticsTestState

TimeBoard

Provides a Datadog timeboard resource. This can be used to create and manage Datadog timeboards.

**Note:**This resource is outdated. Use the new datadog..Dashboard resource instead.

TimeBoardArgs

TimeBoardState

User

Provides a Datadog user resource. This can be used to create and manage Datadog users.

Example Usage

using Pulumi;
using Datadog = Pulumi.Datadog;

class MyStack : Stack
{
public MyStack()
{
    // Create a new Datadog user
    var foo = new Datadog.User("foo", new Datadog.UserArgs
    {
        Email = "new@example.com",
        Handle = "new@example.com",
        Name = "New User",
    });
}

}

UserArgs

UserState

Back to top Copyright 2016-2020, Pulumi Corporation.