Show / Hide Table of Contents

Namespace Pulumi.NewRelic.Synthetics

Classes

AlertCondition

Use this resource to create and manage synthetics alert conditions in New Relic.

Example Usage

using Pulumi;
using NewRelic = Pulumi.NewRelic;

class MyStack : Stack
{
public MyStack()
{
    var fooMonitor = Output.Create(NewRelic.Synthetics.GetMonitor.InvokeAsync(new NewRelic.Synthetics.GetMonitorArgs
    {
        Name = "foo",
    }));
    var fooAlertCondition = new NewRelic.Synthetics.AlertCondition("fooAlertCondition", new NewRelic.Synthetics.AlertConditionArgs
    {
        PolicyId = newrelic_alert_policy.Foo.Id,
        MonitorId = fooMonitor.Apply(fooMonitor => fooMonitor.Id),
        RunbookUrl = "https://www.example.com",
    });
}

}

AlertConditionArgs

AlertConditionState

GetMonitor

GetMonitorArgs

GetMonitorResult

GetSecureCredential

GetSecureCredentialArgs

GetSecureCredentialResult

Label

Use this resource to create, update, and delete a Synthetics label in New Relic.

Example Usage

using Pulumi;
using NewRelic = Pulumi.NewRelic;

class MyStack : Stack
{
public MyStack()
{
    var foo = new NewRelic.Synthetics.Label("foo", new NewRelic.Synthetics.LabelArgs
    {
        MonitorId = newrelic_synthetics_monitor.Foo.Id,
        Type = "MyCategory",
        Value = "MyValue",
    });
}

}

LabelArgs

LabelState

Monitor

Use this resource to create, update, and delete a synthetics monitor in New Relic.

Example Usage

Type: SIMPLE

using Pulumi;
using NewRelic = Pulumi.NewRelic;

class MyStack : Stack
{
public MyStack()
{
    var foo = new NewRelic.Synthetics.Monitor("foo", new NewRelic.Synthetics.MonitorArgs
    {
        Frequency = 5,
        Locations = 
        {
            "AWS_US_EAST_1",
            "AWS_US_EAST_2",
        },
        Status = "ENABLED",
        Type = "SIMPLE",
        Uri = "https://example.com",
        ValidationString = "add example validation check here",
        VerifySsl = true,
    });
    // Optional for type "SIMPLE" and "BROWSER"
}

}

Additional Examples

Type: BROWSER

using Pulumi;
using NewRelic = Pulumi.NewRelic;

class MyStack : Stack
{
public MyStack()
{
    var foo = new NewRelic.Synthetics.Monitor("foo", new NewRelic.Synthetics.MonitorArgs
    {
        BypassHeadRequest = true,
        Frequency = 5,
        Locations = 
        {
            "AWS_US_EAST_1",
        },
        Status = "ENABLED",
        TreatRedirectAsFailure = true,
        Type = "BROWSER",
        Uri = "https://example.com",
        ValidationString = "add example validation check here",
        VerifySsl = true,
    });
    // optional for type "SIMPLE" and "BROWSER"
}

}

Type: SCRIPT_BROWSER

using Pulumi;
using NewRelic = Pulumi.NewRelic;

class MyStack : Stack
{
public MyStack()
{
    var foo = new NewRelic.Synthetics.Monitor("foo", new NewRelic.Synthetics.MonitorArgs
    {
        Frequency = 5,
        Locations = 
        {
            "AWS_US_EAST_1",
        },
        Status = "ENABLED",
        Type = "SCRIPT_BROWSER",
    });
}

}

Type: SCRIPT_API

using Pulumi;
using NewRelic = Pulumi.NewRelic;

class MyStack : Stack
{
public MyStack()
{
    var foo = new NewRelic.Synthetics.Monitor("foo", new NewRelic.Synthetics.MonitorArgs
    {
        Frequency = 5,
        Locations = 
        {
            "AWS_US_EAST_1",
        },
        Status = "ENABLED",
        Type = "SCRIPT_API",
    });
}

}

MonitorArgs

MonitorScript

Use this resource to update a synthetics monitor script in New Relic.

MonitorScriptArgs

MonitorScriptState

MonitorState

SecureCredential

Use this resource to create and manage New Relic Synthetic secure credentials.

Example Usage

using Pulumi;
using NewRelic = Pulumi.NewRelic;

class MyStack : Stack
{
public MyStack()
{
    var foo = new NewRelic.Synthetics.SecureCredential("foo", new NewRelic.Synthetics.SecureCredentialArgs
    {
        Description = "My description",
        Key = "MY_KEY",
        Value = "My value",
    });
}

}

SecureCredentialArgs

SecureCredentialState

Back to top Copyright 2016-2020, Pulumi Corporation.