New Relic

v5.0.0 published on Monday, Sep 12, 2022 by Pulumi

BrokenLinksMonitor

Use this resource to create, update, and delete the synthetics broken links monitor in New Relic.

Additional Examples

Create a monitor with a private location

The below example shows how you can define a private location and attach it to a monitor.

NOTE: It can take up to 10 minutes for a private location to become available.

import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";

const bar1 = new newrelic.synthetics.PrivateLocation("bar1", {
    description: "Test Description",
    verifiedScriptExecution: false,
});
const bar = new newrelic.synthetics.BrokenLinksMonitor("bar", {
    locationsPrivates: ["newrelic_synthetics_private_location.private_location.id"],
    period: "EVERY_6_HOURS",
    status: "ENABLED",
    tags: [{
        key: "some_key",
        values: ["some_value"],
    }],
    uri: "https://www.one.example.com",
});
import pulumi
import pulumi_newrelic as newrelic

bar1 = newrelic.synthetics.PrivateLocation("bar1",
    description="Test Description",
    verified_script_execution=False)
bar = newrelic.synthetics.BrokenLinksMonitor("bar",
    locations_privates=["newrelic_synthetics_private_location.private_location.id"],
    period="EVERY_6_HOURS",
    status="ENABLED",
    tags=[newrelic.synthetics.BrokenLinksMonitorTagArgs(
        key="some_key",
        values=["some_value"],
    )],
    uri="https://www.one.example.com")
using System.Collections.Generic;
using Pulumi;
using NewRelic = Pulumi.NewRelic;

return await Deployment.RunAsync(() => 
{
    var bar1 = new NewRelic.Synthetics.PrivateLocation("bar1", new()
    {
        Description = "Test Description",
        VerifiedScriptExecution = false,
    });

    var bar = new NewRelic.Synthetics.BrokenLinksMonitor("bar", new()
    {
        LocationsPrivates = new[]
        {
            "newrelic_synthetics_private_location.private_location.id",
        },
        Period = "EVERY_6_HOURS",
        Status = "ENABLED",
        Tags = new[]
        {
            new NewRelic.Synthetics.Inputs.BrokenLinksMonitorTagArgs
            {
                Key = "some_key",
                Values = new[]
                {
                    "some_value",
                },
            },
        },
        Uri = "https://www.one.example.com",
    });

});
package main

import (
	"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := synthetics.NewPrivateLocation(ctx, "bar1", &synthetics.PrivateLocationArgs{
			Description:             pulumi.String("Test Description"),
			VerifiedScriptExecution: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		_, err = synthetics.NewBrokenLinksMonitor(ctx, "bar", &synthetics.BrokenLinksMonitorArgs{
			LocationsPrivates: pulumi.StringArray{
				pulumi.String("newrelic_synthetics_private_location.private_location.id"),
			},
			Period: pulumi.String("EVERY_6_HOURS"),
			Status: pulumi.String("ENABLED"),
			Tags: synthetics.BrokenLinksMonitorTagArray{
				&synthetics.BrokenLinksMonitorTagArgs{
					Key: pulumi.String("some_key"),
					Values: pulumi.StringArray{
						pulumi.String("some_value"),
					},
				},
			},
			Uri: pulumi.String("https://www.one.example.com"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.newrelic.synthetics.PrivateLocation;
import com.pulumi.newrelic.synthetics.PrivateLocationArgs;
import com.pulumi.newrelic.synthetics.BrokenLinksMonitor;
import com.pulumi.newrelic.synthetics.BrokenLinksMonitorArgs;
import com.pulumi.newrelic.synthetics.inputs.BrokenLinksMonitorTagArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var bar1 = new PrivateLocation("bar1", PrivateLocationArgs.builder()        
            .description("Test Description")
            .verifiedScriptExecution(false)
            .build());

        var bar = new BrokenLinksMonitor("bar", BrokenLinksMonitorArgs.builder()        
            .locationsPrivates("newrelic_synthetics_private_location.private_location.id")
            .period("EVERY_6_HOURS")
            .status("ENABLED")
            .tags(BrokenLinksMonitorTagArgs.builder()
                .key("some_key")
                .values("some_value")
                .build())
            .uri("https://www.one.example.com")
            .build());

    }
}
resources:
  bar1:
    type: newrelic:synthetics:PrivateLocation
    properties:
      description: Test Description
      verifiedScriptExecution: false
  bar:
    type: newrelic:synthetics:BrokenLinksMonitor
    properties:
      locationsPrivates:
        - newrelic_synthetics_private_location.private_location.id
      period: EVERY_6_HOURS
      status: ENABLED
      tags:
        - key: some_key
          values:
            - some_value
      uri: https://www.one.example.com

Example Usage

using System.Collections.Generic;
using Pulumi;
using NewRelic = Pulumi.NewRelic;

return await Deployment.RunAsync(() => 
{
    var monitor = new NewRelic.Synthetics.BrokenLinksMonitor("monitor", new()
    {
        LocationsPublics = new[]
        {
            "AP_SOUTH_1",
        },
        Period = "EVERY_6_HOURS",
        Status = "ENABLED",
        Tags = new[]
        {
            new NewRelic.Synthetics.Inputs.BrokenLinksMonitorTagArgs
            {
                Key = "some_key",
                Values = new[]
                {
                    "some_value",
                },
            },
        },
        Uri = "https://www.one.example.com",
    });

});
package main

import (
	"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := synthetics.NewBrokenLinksMonitor(ctx, "monitor", &synthetics.BrokenLinksMonitorArgs{
			LocationsPublics: pulumi.StringArray{
				pulumi.String("AP_SOUTH_1"),
			},
			Period: pulumi.String("EVERY_6_HOURS"),
			Status: pulumi.String("ENABLED"),
			Tags: synthetics.BrokenLinksMonitorTagArray{
				&synthetics.BrokenLinksMonitorTagArgs{
					Key: pulumi.String("some_key"),
					Values: pulumi.StringArray{
						pulumi.String("some_value"),
					},
				},
			},
			Uri: pulumi.String("https://www.one.example.com"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.newrelic.synthetics.BrokenLinksMonitor;
import com.pulumi.newrelic.synthetics.BrokenLinksMonitorArgs;
import com.pulumi.newrelic.synthetics.inputs.BrokenLinksMonitorTagArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var monitor = new BrokenLinksMonitor("monitor", BrokenLinksMonitorArgs.builder()        
            .locationsPublics("AP_SOUTH_1")
            .period("EVERY_6_HOURS")
            .status("ENABLED")
            .tags(BrokenLinksMonitorTagArgs.builder()
                .key("some_key")
                .values("some_value")
                .build())
            .uri("https://www.one.example.com")
            .build());

    }
}
import pulumi
import pulumi_newrelic as newrelic

monitor = newrelic.synthetics.BrokenLinksMonitor("monitor",
    locations_publics=["AP_SOUTH_1"],
    period="EVERY_6_HOURS",
    status="ENABLED",
    tags=[newrelic.synthetics.BrokenLinksMonitorTagArgs(
        key="some_key",
        values=["some_value"],
    )],
    uri="https://www.one.example.com")
import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";

const monitor = new newrelic.synthetics.BrokenLinksMonitor("monitor", {
    locationsPublics: ["AP_SOUTH_1"],
    period: "EVERY_6_HOURS",
    status: "ENABLED",
    tags: [{
        key: "some_key",
        values: ["some_value"],
    }],
    uri: "https://www.one.example.com",
});
resources:
  monitor:
    type: newrelic:synthetics:BrokenLinksMonitor
    properties:
      locationsPublics:
        - AP_SOUTH_1
      period: EVERY_6_HOURS
      status: ENABLED
      tags:
        - key: some_key
          values:
            - some_value
      uri: https://www.one.example.com

Create a BrokenLinksMonitor Resource

new BrokenLinksMonitor(name: string, args: BrokenLinksMonitorArgs, opts?: CustomResourceOptions);
@overload
def BrokenLinksMonitor(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       account_id: Optional[int] = None,
                       locations_privates: Optional[Sequence[str]] = None,
                       locations_publics: Optional[Sequence[str]] = None,
                       name: Optional[str] = None,
                       period: Optional[str] = None,
                       status: Optional[str] = None,
                       tags: Optional[Sequence[BrokenLinksMonitorTagArgs]] = None,
                       uri: Optional[str] = None)
@overload
def BrokenLinksMonitor(resource_name: str,
                       args: BrokenLinksMonitorArgs,
                       opts: Optional[ResourceOptions] = None)
func NewBrokenLinksMonitor(ctx *Context, name string, args BrokenLinksMonitorArgs, opts ...ResourceOption) (*BrokenLinksMonitor, error)
public BrokenLinksMonitor(string name, BrokenLinksMonitorArgs args, CustomResourceOptions? opts = null)
public BrokenLinksMonitor(String name, BrokenLinksMonitorArgs args)
public BrokenLinksMonitor(String name, BrokenLinksMonitorArgs args, CustomResourceOptions options)
type: newrelic:synthetics:BrokenLinksMonitor
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args BrokenLinksMonitorArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args BrokenLinksMonitorArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args BrokenLinksMonitorArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args BrokenLinksMonitorArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args BrokenLinksMonitorArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

BrokenLinksMonitor Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The BrokenLinksMonitor resource accepts the following input properties:

Period string

The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.

Status string

The run state of the monitor. (i.e. ENABLED, DISABLED, MUTED).

Uri string

The uri the monitor runs against.

AccountId int

The account in which the Synthetics monitor will be created.

LocationsPrivates List<string>

The location the monitor will run from. At least one of either locations_public or location_private is required.

LocationsPublics List<string>

The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. At least one of either locations_public or location_private is required.

Name string

The name for the monitor.

Tags List<Pulumi.NewRelic.Synthetics.Inputs.BrokenLinksMonitorTagArgs>

The tags that will be associated with the monitor. See See Nested tag blocks below for details

Period string

The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.

Status string

The run state of the monitor. (i.e. ENABLED, DISABLED, MUTED).

Uri string

The uri the monitor runs against.

AccountId int

The account in which the Synthetics monitor will be created.

LocationsPrivates []string

The location the monitor will run from. At least one of either locations_public or location_private is required.

LocationsPublics []string

The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. At least one of either locations_public or location_private is required.

Name string

The name for the monitor.

Tags []BrokenLinksMonitorTagArgs

The tags that will be associated with the monitor. See See Nested tag blocks below for details

period String

The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.

status String

The run state of the monitor. (i.e. ENABLED, DISABLED, MUTED).

uri String

The uri the monitor runs against.

accountId Integer

The account in which the Synthetics monitor will be created.

locationsPrivates List<String>

The location the monitor will run from. At least one of either locations_public or location_private is required.

locationsPublics List<String>

The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. At least one of either locations_public or location_private is required.

name String

The name for the monitor.

tags List<BrokenLinksMonitorTagArgs>

The tags that will be associated with the monitor. See See Nested tag blocks below for details

period string

The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.

status string

The run state of the monitor. (i.e. ENABLED, DISABLED, MUTED).

uri string

The uri the monitor runs against.

accountId number

The account in which the Synthetics monitor will be created.

locationsPrivates string[]

The location the monitor will run from. At least one of either locations_public or location_private is required.

locationsPublics string[]

The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. At least one of either locations_public or location_private is required.

name string

The name for the monitor.

tags BrokenLinksMonitorTagArgs[]

The tags that will be associated with the monitor. See See Nested tag blocks below for details

period str

The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.

status str

The run state of the monitor. (i.e. ENABLED, DISABLED, MUTED).

uri str

The uri the monitor runs against.

account_id int

The account in which the Synthetics monitor will be created.

locations_privates Sequence[str]

The location the monitor will run from. At least one of either locations_public or location_private is required.

locations_publics Sequence[str]

The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. At least one of either locations_public or location_private is required.

name str

The name for the monitor.

tags Sequence[BrokenLinksMonitorTagArgs]

The tags that will be associated with the monitor. See See Nested tag blocks below for details

period String

The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.

status String

The run state of the monitor. (i.e. ENABLED, DISABLED, MUTED).

uri String

The uri the monitor runs against.

accountId Number

The account in which the Synthetics monitor will be created.

locationsPrivates List<String>

The location the monitor will run from. At least one of either locations_public or location_private is required.

locationsPublics List<String>

The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. At least one of either locations_public or location_private is required.

name String

The name for the monitor.

tags List<Property Map>

The tags that will be associated with the monitor. See See Nested tag blocks below for details

Outputs

All input properties are implicitly available as output properties. Additionally, the BrokenLinksMonitor resource produces the following output properties:

Guid string

The unique entity identifier of the monitor in New Relic.

Id string

The provider-assigned unique ID for this managed resource.

Guid string

The unique entity identifier of the monitor in New Relic.

Id string

The provider-assigned unique ID for this managed resource.

guid String

The unique entity identifier of the monitor in New Relic.

id String

The provider-assigned unique ID for this managed resource.

guid string

The unique entity identifier of the monitor in New Relic.

id string

The provider-assigned unique ID for this managed resource.

guid str

The unique entity identifier of the monitor in New Relic.

id str

The provider-assigned unique ID for this managed resource.

guid String

The unique entity identifier of the monitor in New Relic.

id String

The provider-assigned unique ID for this managed resource.

Look up an Existing BrokenLinksMonitor Resource

Get an existing BrokenLinksMonitor resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: BrokenLinksMonitorState, opts?: CustomResourceOptions): BrokenLinksMonitor
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[int] = None,
        guid: Optional[str] = None,
        locations_privates: Optional[Sequence[str]] = None,
        locations_publics: Optional[Sequence[str]] = None,
        name: Optional[str] = None,
        period: Optional[str] = None,
        status: Optional[str] = None,
        tags: Optional[Sequence[BrokenLinksMonitorTagArgs]] = None,
        uri: Optional[str] = None) -> BrokenLinksMonitor
func GetBrokenLinksMonitor(ctx *Context, name string, id IDInput, state *BrokenLinksMonitorState, opts ...ResourceOption) (*BrokenLinksMonitor, error)
public static BrokenLinksMonitor Get(string name, Input<string> id, BrokenLinksMonitorState? state, CustomResourceOptions? opts = null)
public static BrokenLinksMonitor get(String name, Output<String> id, BrokenLinksMonitorState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AccountId int

The account in which the Synthetics monitor will be created.

Guid string

The unique entity identifier of the monitor in New Relic.

LocationsPrivates List<string>

The location the monitor will run from. At least one of either locations_public or location_private is required.

LocationsPublics List<string>

The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. At least one of either locations_public or location_private is required.

Name string

The name for the monitor.

Period string

The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.

Status string

The run state of the monitor. (i.e. ENABLED, DISABLED, MUTED).

Tags List<Pulumi.NewRelic.Synthetics.Inputs.BrokenLinksMonitorTagArgs>

The tags that will be associated with the monitor. See See Nested tag blocks below for details

Uri string

The uri the monitor runs against.

AccountId int

The account in which the Synthetics monitor will be created.

Guid string

The unique entity identifier of the monitor in New Relic.

LocationsPrivates []string

The location the monitor will run from. At least one of either locations_public or location_private is required.

LocationsPublics []string

The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. At least one of either locations_public or location_private is required.

Name string

The name for the monitor.

Period string

The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.

Status string

The run state of the monitor. (i.e. ENABLED, DISABLED, MUTED).

Tags []BrokenLinksMonitorTagArgs

The tags that will be associated with the monitor. See See Nested tag blocks below for details

Uri string

The uri the monitor runs against.

accountId Integer

The account in which the Synthetics monitor will be created.

guid String

The unique entity identifier of the monitor in New Relic.

locationsPrivates List<String>

The location the monitor will run from. At least one of either locations_public or location_private is required.

locationsPublics List<String>

The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. At least one of either locations_public or location_private is required.

name String

The name for the monitor.

period String

The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.

status String

The run state of the monitor. (i.e. ENABLED, DISABLED, MUTED).

tags List<BrokenLinksMonitorTagArgs>

The tags that will be associated with the monitor. See See Nested tag blocks below for details

uri String

The uri the monitor runs against.

accountId number

The account in which the Synthetics monitor will be created.

guid string

The unique entity identifier of the monitor in New Relic.

locationsPrivates string[]

The location the monitor will run from. At least one of either locations_public or location_private is required.

locationsPublics string[]

The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. At least one of either locations_public or location_private is required.

name string

The name for the monitor.

period string

The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.

status string

The run state of the monitor. (i.e. ENABLED, DISABLED, MUTED).

tags BrokenLinksMonitorTagArgs[]

The tags that will be associated with the monitor. See See Nested tag blocks below for details

uri string

The uri the monitor runs against.

account_id int

The account in which the Synthetics monitor will be created.

guid str

The unique entity identifier of the monitor in New Relic.

locations_privates Sequence[str]

The location the monitor will run from. At least one of either locations_public or location_private is required.

locations_publics Sequence[str]

The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. At least one of either locations_public or location_private is required.

name str

The name for the monitor.

period str

The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.

status str

The run state of the monitor. (i.e. ENABLED, DISABLED, MUTED).

tags Sequence[BrokenLinksMonitorTagArgs]

The tags that will be associated with the monitor. See See Nested tag blocks below for details

uri str

The uri the monitor runs against.

accountId Number

The account in which the Synthetics monitor will be created.

guid String

The unique entity identifier of the monitor in New Relic.

locationsPrivates List<String>

The location the monitor will run from. At least one of either locations_public or location_private is required.

locationsPublics List<String>

The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. At least one of either locations_public or location_private is required.

name String

The name for the monitor.

period String

The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.

status String

The run state of the monitor. (i.e. ENABLED, DISABLED, MUTED).

tags List<Property Map>

The tags that will be associated with the monitor. See See Nested tag blocks below for details

uri String

The uri the monitor runs against.

Supporting Types

BrokenLinksMonitorTag

Key string

Name of the tag key.

Values List<string>

Values associated with the tag key.

Key string

Name of the tag key.

Values []string

Values associated with the tag key.

key String

Name of the tag key.

values List<String>

Values associated with the tag key.

key string

Name of the tag key.

values string[]

Values associated with the tag key.

key str

Name of the tag key.

values Sequence[str]

Values associated with the tag key.

key String

Name of the tag key.

values List<String>

Values associated with the tag key.

Import

Synthetics broken links monitor scripts can be imported using the guid, e.g. bash

 $ pulumi import newrelic:synthetics/brokenLinksMonitor:BrokenLinksMonitor foo <guid>

Package Details

Repository
https://github.com/pulumi/pulumi-newrelic
License
Apache-2.0
Notes

This Pulumi package is based on the newrelic Terraform Provider.