newrelic.synthetics.Monitor
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";
const monitor = new newrelic.synthetics.Monitor("monitor", {
    status: "ENABLED",
    name: "monitor",
    period: "EVERY_MINUTE",
    uri: "https://www.one.newrelic.com",
    type: "SIMPLE",
    locationsPublics: ["AP_SOUTH_1"],
    customHeaders: [{
        name: "some_name",
        value: "some_value",
    }],
    treatRedirectAsFailure: true,
    validationString: "success",
    bypassHeadRequest: true,
    verifySsl: true,
    tags: [{
        key: "some_key",
        values: ["some_value"],
    }],
});
import pulumi
import pulumi_newrelic as newrelic
monitor = newrelic.synthetics.Monitor("monitor",
    status="ENABLED",
    name="monitor",
    period="EVERY_MINUTE",
    uri="https://www.one.newrelic.com",
    type="SIMPLE",
    locations_publics=["AP_SOUTH_1"],
    custom_headers=[{
        "name": "some_name",
        "value": "some_value",
    }],
    treat_redirect_as_failure=True,
    validation_string="success",
    bypass_head_request=True,
    verify_ssl=True,
    tags=[{
        "key": "some_key",
        "values": ["some_value"],
    }])
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.NewMonitor(ctx, "monitor", &synthetics.MonitorArgs{
			Status: pulumi.String("ENABLED"),
			Name:   pulumi.String("monitor"),
			Period: pulumi.String("EVERY_MINUTE"),
			Uri:    pulumi.String("https://www.one.newrelic.com"),
			Type:   pulumi.String("SIMPLE"),
			LocationsPublics: pulumi.StringArray{
				pulumi.String("AP_SOUTH_1"),
			},
			CustomHeaders: synthetics.MonitorCustomHeaderArray{
				&synthetics.MonitorCustomHeaderArgs{
					Name:  pulumi.String("some_name"),
					Value: pulumi.String("some_value"),
				},
			},
			TreatRedirectAsFailure: pulumi.Bool(true),
			ValidationString:       pulumi.String("success"),
			BypassHeadRequest:      pulumi.Bool(true),
			VerifySsl:              pulumi.Bool(true),
			Tags: synthetics.MonitorTagArray{
				&synthetics.MonitorTagArgs{
					Key: pulumi.String("some_key"),
					Values: pulumi.StringArray{
						pulumi.String("some_value"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using NewRelic = Pulumi.NewRelic;
return await Deployment.RunAsync(() => 
{
    var monitor = new NewRelic.Synthetics.Monitor("monitor", new()
    {
        Status = "ENABLED",
        Name = "monitor",
        Period = "EVERY_MINUTE",
        Uri = "https://www.one.newrelic.com",
        Type = "SIMPLE",
        LocationsPublics = new[]
        {
            "AP_SOUTH_1",
        },
        CustomHeaders = new[]
        {
            new NewRelic.Synthetics.Inputs.MonitorCustomHeaderArgs
            {
                Name = "some_name",
                Value = "some_value",
            },
        },
        TreatRedirectAsFailure = true,
        ValidationString = "success",
        BypassHeadRequest = true,
        VerifySsl = true,
        Tags = new[]
        {
            new NewRelic.Synthetics.Inputs.MonitorTagArgs
            {
                Key = "some_key",
                Values = new[]
                {
                    "some_value",
                },
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.newrelic.synthetics.Monitor;
import com.pulumi.newrelic.synthetics.MonitorArgs;
import com.pulumi.newrelic.synthetics.inputs.MonitorCustomHeaderArgs;
import com.pulumi.newrelic.synthetics.inputs.MonitorTagArgs;
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 Monitor("monitor", MonitorArgs.builder()
            .status("ENABLED")
            .name("monitor")
            .period("EVERY_MINUTE")
            .uri("https://www.one.newrelic.com")
            .type("SIMPLE")
            .locationsPublics("AP_SOUTH_1")
            .customHeaders(MonitorCustomHeaderArgs.builder()
                .name("some_name")
                .value("some_value")
                .build())
            .treatRedirectAsFailure(true)
            .validationString("success")
            .bypassHeadRequest(true)
            .verifySsl(true)
            .tags(MonitorTagArgs.builder()
                .key("some_key")
                .values("some_value")
                .build())
            .build());
    }
}
resources:
  monitor:
    type: newrelic:synthetics:Monitor
    properties:
      status: ENABLED
      name: monitor
      period: EVERY_MINUTE
      uri: https://www.one.newrelic.com
      type: SIMPLE
      locationsPublics:
        - AP_SOUTH_1
      customHeaders:
        - name: some_name
          value: some_value
      treatRedirectAsFailure: true
      validationString: success
      bypassHeadRequest: true
      verifySsl: true
      tags:
        - key: some_key
          values:
            - some_value
Type: SIMPLE BROWSER
import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";
const monitor = new newrelic.synthetics.Monitor("monitor", {
    status: "ENABLED",
    name: "monitor",
    period: "EVERY_MINUTE",
    uri: "https://www.one.newrelic.com",
    type: "BROWSER",
    locationsPublics: ["AP_SOUTH_1"],
    enableScreenshotOnFailureAndScript: true,
    validationString: "success",
    verifySsl: true,
    runtimeType: "CHROME_BROWSER",
    runtimeTypeVersion: "100",
    scriptLanguage: "JAVASCRIPT",
    devices: [
        "DESKTOP",
        "TABLET_LANDSCAPE",
        "MOBILE_PORTRAIT",
    ],
    browsers: ["CHROME"],
    customHeaders: [{
        name: "some_name",
        value: "some_value",
    }],
    tags: [{
        key: "some_key",
        values: ["some_value"],
    }],
});
import pulumi
import pulumi_newrelic as newrelic
monitor = newrelic.synthetics.Monitor("monitor",
    status="ENABLED",
    name="monitor",
    period="EVERY_MINUTE",
    uri="https://www.one.newrelic.com",
    type="BROWSER",
    locations_publics=["AP_SOUTH_1"],
    enable_screenshot_on_failure_and_script=True,
    validation_string="success",
    verify_ssl=True,
    runtime_type="CHROME_BROWSER",
    runtime_type_version="100",
    script_language="JAVASCRIPT",
    devices=[
        "DESKTOP",
        "TABLET_LANDSCAPE",
        "MOBILE_PORTRAIT",
    ],
    browsers=["CHROME"],
    custom_headers=[{
        "name": "some_name",
        "value": "some_value",
    }],
    tags=[{
        "key": "some_key",
        "values": ["some_value"],
    }])
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.NewMonitor(ctx, "monitor", &synthetics.MonitorArgs{
			Status: pulumi.String("ENABLED"),
			Name:   pulumi.String("monitor"),
			Period: pulumi.String("EVERY_MINUTE"),
			Uri:    pulumi.String("https://www.one.newrelic.com"),
			Type:   pulumi.String("BROWSER"),
			LocationsPublics: pulumi.StringArray{
				pulumi.String("AP_SOUTH_1"),
			},
			EnableScreenshotOnFailureAndScript: pulumi.Bool(true),
			ValidationString:                   pulumi.String("success"),
			VerifySsl:                          pulumi.Bool(true),
			RuntimeType:                        pulumi.String("CHROME_BROWSER"),
			RuntimeTypeVersion:                 pulumi.String("100"),
			ScriptLanguage:                     pulumi.String("JAVASCRIPT"),
			Devices: pulumi.StringArray{
				pulumi.String("DESKTOP"),
				pulumi.String("TABLET_LANDSCAPE"),
				pulumi.String("MOBILE_PORTRAIT"),
			},
			Browsers: pulumi.StringArray{
				pulumi.String("CHROME"),
			},
			CustomHeaders: synthetics.MonitorCustomHeaderArray{
				&synthetics.MonitorCustomHeaderArgs{
					Name:  pulumi.String("some_name"),
					Value: pulumi.String("some_value"),
				},
			},
			Tags: synthetics.MonitorTagArray{
				&synthetics.MonitorTagArgs{
					Key: pulumi.String("some_key"),
					Values: pulumi.StringArray{
						pulumi.String("some_value"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using NewRelic = Pulumi.NewRelic;
return await Deployment.RunAsync(() => 
{
    var monitor = new NewRelic.Synthetics.Monitor("monitor", new()
    {
        Status = "ENABLED",
        Name = "monitor",
        Period = "EVERY_MINUTE",
        Uri = "https://www.one.newrelic.com",
        Type = "BROWSER",
        LocationsPublics = new[]
        {
            "AP_SOUTH_1",
        },
        EnableScreenshotOnFailureAndScript = true,
        ValidationString = "success",
        VerifySsl = true,
        RuntimeType = "CHROME_BROWSER",
        RuntimeTypeVersion = "100",
        ScriptLanguage = "JAVASCRIPT",
        Devices = new[]
        {
            "DESKTOP",
            "TABLET_LANDSCAPE",
            "MOBILE_PORTRAIT",
        },
        Browsers = new[]
        {
            "CHROME",
        },
        CustomHeaders = new[]
        {
            new NewRelic.Synthetics.Inputs.MonitorCustomHeaderArgs
            {
                Name = "some_name",
                Value = "some_value",
            },
        },
        Tags = new[]
        {
            new NewRelic.Synthetics.Inputs.MonitorTagArgs
            {
                Key = "some_key",
                Values = new[]
                {
                    "some_value",
                },
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.newrelic.synthetics.Monitor;
import com.pulumi.newrelic.synthetics.MonitorArgs;
import com.pulumi.newrelic.synthetics.inputs.MonitorCustomHeaderArgs;
import com.pulumi.newrelic.synthetics.inputs.MonitorTagArgs;
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 Monitor("monitor", MonitorArgs.builder()
            .status("ENABLED")
            .name("monitor")
            .period("EVERY_MINUTE")
            .uri("https://www.one.newrelic.com")
            .type("BROWSER")
            .locationsPublics("AP_SOUTH_1")
            .enableScreenshotOnFailureAndScript(true)
            .validationString("success")
            .verifySsl(true)
            .runtimeType("CHROME_BROWSER")
            .runtimeTypeVersion("100")
            .scriptLanguage("JAVASCRIPT")
            .devices(            
                "DESKTOP",
                "TABLET_LANDSCAPE",
                "MOBILE_PORTRAIT")
            .browsers("CHROME")
            .customHeaders(MonitorCustomHeaderArgs.builder()
                .name("some_name")
                .value("some_value")
                .build())
            .tags(MonitorTagArgs.builder()
                .key("some_key")
                .values("some_value")
                .build())
            .build());
    }
}
resources:
  monitor:
    type: newrelic:synthetics:Monitor
    properties:
      status: ENABLED
      name: monitor
      period: EVERY_MINUTE
      uri: https://www.one.newrelic.com
      type: BROWSER
      locationsPublics:
        - AP_SOUTH_1
      enableScreenshotOnFailureAndScript: true
      validationString: success
      verifySsl: true
      runtimeType: CHROME_BROWSER
      runtimeTypeVersion: '100'
      scriptLanguage: JAVASCRIPT
      devices:
        - DESKTOP
        - TABLET_LANDSCAPE
        - MOBILE_PORTRAIT
      browsers:
        - CHROME
      customHeaders:
        - name: some_name
          value: some_value
      tags:
        - key: some_key
          values:
            - some_value
See additional examples.
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.
Type: SIMPLE
import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";
const location = new newrelic.synthetics.PrivateLocation("location", {
    description: "Example private location",
    name: "private_location",
    verifiedScriptExecution: false,
});
const monitor = new newrelic.synthetics.Monitor("monitor", {
    status: "ENABLED",
    name: "monitor",
    period: "EVERY_MINUTE",
    uri: "https://www.one.newrelic.com",
    type: "SIMPLE",
    locationsPrivates: [location.id],
    customHeaders: [{
        name: "some_name",
        value: "some_value",
    }],
    treatRedirectAsFailure: true,
    validationString: "success",
    bypassHeadRequest: true,
    verifySsl: true,
    tags: [{
        key: "some_key",
        values: ["some_value"],
    }],
});
import pulumi
import pulumi_newrelic as newrelic
location = newrelic.synthetics.PrivateLocation("location",
    description="Example private location",
    name="private_location",
    verified_script_execution=False)
monitor = newrelic.synthetics.Monitor("monitor",
    status="ENABLED",
    name="monitor",
    period="EVERY_MINUTE",
    uri="https://www.one.newrelic.com",
    type="SIMPLE",
    locations_privates=[location.id],
    custom_headers=[{
        "name": "some_name",
        "value": "some_value",
    }],
    treat_redirect_as_failure=True,
    validation_string="success",
    bypass_head_request=True,
    verify_ssl=True,
    tags=[{
        "key": "some_key",
        "values": ["some_value"],
    }])
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 {
		location, err := synthetics.NewPrivateLocation(ctx, "location", &synthetics.PrivateLocationArgs{
			Description:             pulumi.String("Example private location"),
			Name:                    pulumi.String("private_location"),
			VerifiedScriptExecution: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		_, err = synthetics.NewMonitor(ctx, "monitor", &synthetics.MonitorArgs{
			Status: pulumi.String("ENABLED"),
			Name:   pulumi.String("monitor"),
			Period: pulumi.String("EVERY_MINUTE"),
			Uri:    pulumi.String("https://www.one.newrelic.com"),
			Type:   pulumi.String("SIMPLE"),
			LocationsPrivates: pulumi.StringArray{
				location.ID(),
			},
			CustomHeaders: synthetics.MonitorCustomHeaderArray{
				&synthetics.MonitorCustomHeaderArgs{
					Name:  pulumi.String("some_name"),
					Value: pulumi.String("some_value"),
				},
			},
			TreatRedirectAsFailure: pulumi.Bool(true),
			ValidationString:       pulumi.String("success"),
			BypassHeadRequest:      pulumi.Bool(true),
			VerifySsl:              pulumi.Bool(true),
			Tags: synthetics.MonitorTagArray{
				&synthetics.MonitorTagArgs{
					Key: pulumi.String("some_key"),
					Values: pulumi.StringArray{
						pulumi.String("some_value"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using NewRelic = Pulumi.NewRelic;
return await Deployment.RunAsync(() => 
{
    var location = new NewRelic.Synthetics.PrivateLocation("location", new()
    {
        Description = "Example private location",
        Name = "private_location",
        VerifiedScriptExecution = false,
    });
    var monitor = new NewRelic.Synthetics.Monitor("monitor", new()
    {
        Status = "ENABLED",
        Name = "monitor",
        Period = "EVERY_MINUTE",
        Uri = "https://www.one.newrelic.com",
        Type = "SIMPLE",
        LocationsPrivates = new[]
        {
            location.Id,
        },
        CustomHeaders = new[]
        {
            new NewRelic.Synthetics.Inputs.MonitorCustomHeaderArgs
            {
                Name = "some_name",
                Value = "some_value",
            },
        },
        TreatRedirectAsFailure = true,
        ValidationString = "success",
        BypassHeadRequest = true,
        VerifySsl = true,
        Tags = new[]
        {
            new NewRelic.Synthetics.Inputs.MonitorTagArgs
            {
                Key = "some_key",
                Values = new[]
                {
                    "some_value",
                },
            },
        },
    });
});
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.Monitor;
import com.pulumi.newrelic.synthetics.MonitorArgs;
import com.pulumi.newrelic.synthetics.inputs.MonitorCustomHeaderArgs;
import com.pulumi.newrelic.synthetics.inputs.MonitorTagArgs;
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 location = new PrivateLocation("location", PrivateLocationArgs.builder()
            .description("Example private location")
            .name("private_location")
            .verifiedScriptExecution(false)
            .build());
        var monitor = new Monitor("monitor", MonitorArgs.builder()
            .status("ENABLED")
            .name("monitor")
            .period("EVERY_MINUTE")
            .uri("https://www.one.newrelic.com")
            .type("SIMPLE")
            .locationsPrivates(location.id())
            .customHeaders(MonitorCustomHeaderArgs.builder()
                .name("some_name")
                .value("some_value")
                .build())
            .treatRedirectAsFailure(true)
            .validationString("success")
            .bypassHeadRequest(true)
            .verifySsl(true)
            .tags(MonitorTagArgs.builder()
                .key("some_key")
                .values("some_value")
                .build())
            .build());
    }
}
resources:
  location:
    type: newrelic:synthetics:PrivateLocation
    properties:
      description: Example private location
      name: private_location
      verifiedScriptExecution: false
  monitor:
    type: newrelic:synthetics:Monitor
    properties:
      status: ENABLED
      name: monitor
      period: EVERY_MINUTE
      uri: https://www.one.newrelic.com
      type: SIMPLE
      locationsPrivates:
        - ${location.id}
      customHeaders:
        - name: some_name
          value: some_value
      treatRedirectAsFailure: true
      validationString: success
      bypassHeadRequest: true
      verifySsl: true
      tags:
        - key: some_key
          values:
            - some_value
Type: BROWSER
import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";
const location = new newrelic.synthetics.PrivateLocation("location", {
    description: "Example private location",
    name: "private-location",
    verifiedScriptExecution: false,
});
const monitor = new newrelic.synthetics.Monitor("monitor", {
    status: "ENABLED",
    type: "BROWSER",
    uri: "https://www.one.newrelic.com",
    name: "monitor",
    period: "EVERY_MINUTE",
    locationsPrivates: [location.id],
    enableScreenshotOnFailureAndScript: true,
    validationString: "success",
    verifySsl: true,
    runtimeTypeVersion: "100",
    runtimeType: "CHROME_BROWSER",
    scriptLanguage: "JAVASCRIPT",
    devices: [
        "DESKTOP",
        "TABLET_LANDSCAPE",
        "MOBILE_PORTRAIT",
    ],
    browsers: ["CHROME"],
    customHeaders: [{
        name: "some_name",
        value: "some_value",
    }],
    tags: [{
        key: "some_key",
        values: ["some_value"],
    }],
});
import pulumi
import pulumi_newrelic as newrelic
location = newrelic.synthetics.PrivateLocation("location",
    description="Example private location",
    name="private-location",
    verified_script_execution=False)
monitor = newrelic.synthetics.Monitor("monitor",
    status="ENABLED",
    type="BROWSER",
    uri="https://www.one.newrelic.com",
    name="monitor",
    period="EVERY_MINUTE",
    locations_privates=[location.id],
    enable_screenshot_on_failure_and_script=True,
    validation_string="success",
    verify_ssl=True,
    runtime_type_version="100",
    runtime_type="CHROME_BROWSER",
    script_language="JAVASCRIPT",
    devices=[
        "DESKTOP",
        "TABLET_LANDSCAPE",
        "MOBILE_PORTRAIT",
    ],
    browsers=["CHROME"],
    custom_headers=[{
        "name": "some_name",
        "value": "some_value",
    }],
    tags=[{
        "key": "some_key",
        "values": ["some_value"],
    }])
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 {
		location, err := synthetics.NewPrivateLocation(ctx, "location", &synthetics.PrivateLocationArgs{
			Description:             pulumi.String("Example private location"),
			Name:                    pulumi.String("private-location"),
			VerifiedScriptExecution: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		_, err = synthetics.NewMonitor(ctx, "monitor", &synthetics.MonitorArgs{
			Status: pulumi.String("ENABLED"),
			Type:   pulumi.String("BROWSER"),
			Uri:    pulumi.String("https://www.one.newrelic.com"),
			Name:   pulumi.String("monitor"),
			Period: pulumi.String("EVERY_MINUTE"),
			LocationsPrivates: pulumi.StringArray{
				location.ID(),
			},
			EnableScreenshotOnFailureAndScript: pulumi.Bool(true),
			ValidationString:                   pulumi.String("success"),
			VerifySsl:                          pulumi.Bool(true),
			RuntimeTypeVersion:                 pulumi.String("100"),
			RuntimeType:                        pulumi.String("CHROME_BROWSER"),
			ScriptLanguage:                     pulumi.String("JAVASCRIPT"),
			Devices: pulumi.StringArray{
				pulumi.String("DESKTOP"),
				pulumi.String("TABLET_LANDSCAPE"),
				pulumi.String("MOBILE_PORTRAIT"),
			},
			Browsers: pulumi.StringArray{
				pulumi.String("CHROME"),
			},
			CustomHeaders: synthetics.MonitorCustomHeaderArray{
				&synthetics.MonitorCustomHeaderArgs{
					Name:  pulumi.String("some_name"),
					Value: pulumi.String("some_value"),
				},
			},
			Tags: synthetics.MonitorTagArray{
				&synthetics.MonitorTagArgs{
					Key: pulumi.String("some_key"),
					Values: pulumi.StringArray{
						pulumi.String("some_value"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using NewRelic = Pulumi.NewRelic;
return await Deployment.RunAsync(() => 
{
    var location = new NewRelic.Synthetics.PrivateLocation("location", new()
    {
        Description = "Example private location",
        Name = "private-location",
        VerifiedScriptExecution = false,
    });
    var monitor = new NewRelic.Synthetics.Monitor("monitor", new()
    {
        Status = "ENABLED",
        Type = "BROWSER",
        Uri = "https://www.one.newrelic.com",
        Name = "monitor",
        Period = "EVERY_MINUTE",
        LocationsPrivates = new[]
        {
            location.Id,
        },
        EnableScreenshotOnFailureAndScript = true,
        ValidationString = "success",
        VerifySsl = true,
        RuntimeTypeVersion = "100",
        RuntimeType = "CHROME_BROWSER",
        ScriptLanguage = "JAVASCRIPT",
        Devices = new[]
        {
            "DESKTOP",
            "TABLET_LANDSCAPE",
            "MOBILE_PORTRAIT",
        },
        Browsers = new[]
        {
            "CHROME",
        },
        CustomHeaders = new[]
        {
            new NewRelic.Synthetics.Inputs.MonitorCustomHeaderArgs
            {
                Name = "some_name",
                Value = "some_value",
            },
        },
        Tags = new[]
        {
            new NewRelic.Synthetics.Inputs.MonitorTagArgs
            {
                Key = "some_key",
                Values = new[]
                {
                    "some_value",
                },
            },
        },
    });
});
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.Monitor;
import com.pulumi.newrelic.synthetics.MonitorArgs;
import com.pulumi.newrelic.synthetics.inputs.MonitorCustomHeaderArgs;
import com.pulumi.newrelic.synthetics.inputs.MonitorTagArgs;
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 location = new PrivateLocation("location", PrivateLocationArgs.builder()
            .description("Example private location")
            .name("private-location")
            .verifiedScriptExecution(false)
            .build());
        var monitor = new Monitor("monitor", MonitorArgs.builder()
            .status("ENABLED")
            .type("BROWSER")
            .uri("https://www.one.newrelic.com")
            .name("monitor")
            .period("EVERY_MINUTE")
            .locationsPrivates(location.id())
            .enableScreenshotOnFailureAndScript(true)
            .validationString("success")
            .verifySsl(true)
            .runtimeTypeVersion("100")
            .runtimeType("CHROME_BROWSER")
            .scriptLanguage("JAVASCRIPT")
            .devices(            
                "DESKTOP",
                "TABLET_LANDSCAPE",
                "MOBILE_PORTRAIT")
            .browsers("CHROME")
            .customHeaders(MonitorCustomHeaderArgs.builder()
                .name("some_name")
                .value("some_value")
                .build())
            .tags(MonitorTagArgs.builder()
                .key("some_key")
                .values("some_value")
                .build())
            .build());
    }
}
resources:
  location:
    type: newrelic:synthetics:PrivateLocation
    properties:
      description: Example private location
      name: private-location
      verifiedScriptExecution: false
  monitor:
    type: newrelic:synthetics:Monitor
    properties:
      status: ENABLED
      type: BROWSER
      uri: https://www.one.newrelic.com
      name: monitor
      period: EVERY_MINUTE
      locationsPrivates:
        - ${location.id}
      enableScreenshotOnFailureAndScript: true
      validationString: success
      verifySsl: true
      runtimeTypeVersion: '100'
      runtimeType: CHROME_BROWSER
      scriptLanguage: JAVASCRIPT
      devices:
        - DESKTOP
        - TABLET_LANDSCAPE
        - MOBILE_PORTRAIT
      browsers:
        - CHROME
      customHeaders:
        - name: some_name
          value: some_value
      tags:
        - key: some_key
          values:
            - some_value
Create Monitor Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Monitor(name: string, args: MonitorArgs, opts?: CustomResourceOptions);@overload
def Monitor(resource_name: str,
            args: MonitorArgs,
            opts: Optional[ResourceOptions] = None)
@overload
def Monitor(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            status: Optional[str] = None,
            type: Optional[str] = None,
            device_type: Optional[str] = None,
            runtime_type_version: Optional[str] = None,
            device_orientation: Optional[str] = None,
            account_id: Optional[str] = None,
            devices: Optional[Sequence[str]] = None,
            enable_screenshot_on_failure_and_script: Optional[bool] = None,
            locations_privates: Optional[Sequence[str]] = None,
            locations_publics: Optional[Sequence[str]] = None,
            name: Optional[str] = None,
            period: Optional[str] = None,
            runtime_type: Optional[str] = None,
            custom_headers: Optional[Sequence[MonitorCustomHeaderArgs]] = None,
            script_language: Optional[str] = None,
            bypass_head_request: Optional[bool] = None,
            tags: Optional[Sequence[MonitorTagArgs]] = None,
            treat_redirect_as_failure: Optional[bool] = None,
            browsers: Optional[Sequence[str]] = None,
            uri: Optional[str] = None,
            use_unsupported_legacy_runtime: Optional[bool] = None,
            validation_string: Optional[str] = None,
            verify_ssl: Optional[bool] = None)func NewMonitor(ctx *Context, name string, args MonitorArgs, opts ...ResourceOption) (*Monitor, error)public Monitor(string name, MonitorArgs args, CustomResourceOptions? opts = null)
public Monitor(String name, MonitorArgs args)
public Monitor(String name, MonitorArgs args, CustomResourceOptions options)
type: newrelic:synthetics:Monitor
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args MonitorArgs
- 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 MonitorArgs
- 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 MonitorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MonitorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MonitorArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var monitorResource = new NewRelic.Synthetics.Monitor("monitorResource", new()
{
    Status = "string",
    Type = "string",
    DeviceType = "string",
    RuntimeTypeVersion = "string",
    DeviceOrientation = "string",
    AccountId = "string",
    Devices = new[]
    {
        "string",
    },
    EnableScreenshotOnFailureAndScript = false,
    LocationsPrivates = new[]
    {
        "string",
    },
    LocationsPublics = new[]
    {
        "string",
    },
    Name = "string",
    Period = "string",
    RuntimeType = "string",
    CustomHeaders = new[]
    {
        new NewRelic.Synthetics.Inputs.MonitorCustomHeaderArgs
        {
            Name = "string",
            Value = "string",
        },
    },
    ScriptLanguage = "string",
    BypassHeadRequest = false,
    Tags = new[]
    {
        new NewRelic.Synthetics.Inputs.MonitorTagArgs
        {
            Key = "string",
            Values = new[]
            {
                "string",
            },
        },
    },
    TreatRedirectAsFailure = false,
    Browsers = new[]
    {
        "string",
    },
    Uri = "string",
    UseUnsupportedLegacyRuntime = false,
    ValidationString = "string",
    VerifySsl = false,
});
example, err := synthetics.NewMonitor(ctx, "monitorResource", &synthetics.MonitorArgs{
	Status:             pulumi.String("string"),
	Type:               pulumi.String("string"),
	DeviceType:         pulumi.String("string"),
	RuntimeTypeVersion: pulumi.String("string"),
	DeviceOrientation:  pulumi.String("string"),
	AccountId:          pulumi.String("string"),
	Devices: pulumi.StringArray{
		pulumi.String("string"),
	},
	EnableScreenshotOnFailureAndScript: pulumi.Bool(false),
	LocationsPrivates: pulumi.StringArray{
		pulumi.String("string"),
	},
	LocationsPublics: pulumi.StringArray{
		pulumi.String("string"),
	},
	Name:        pulumi.String("string"),
	Period:      pulumi.String("string"),
	RuntimeType: pulumi.String("string"),
	CustomHeaders: synthetics.MonitorCustomHeaderArray{
		&synthetics.MonitorCustomHeaderArgs{
			Name:  pulumi.String("string"),
			Value: pulumi.String("string"),
		},
	},
	ScriptLanguage:    pulumi.String("string"),
	BypassHeadRequest: pulumi.Bool(false),
	Tags: synthetics.MonitorTagArray{
		&synthetics.MonitorTagArgs{
			Key: pulumi.String("string"),
			Values: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
	},
	TreatRedirectAsFailure: pulumi.Bool(false),
	Browsers: pulumi.StringArray{
		pulumi.String("string"),
	},
	Uri:                         pulumi.String("string"),
	UseUnsupportedLegacyRuntime: pulumi.Bool(false),
	ValidationString:            pulumi.String("string"),
	VerifySsl:                   pulumi.Bool(false),
})
var monitorResource = new Monitor("monitorResource", MonitorArgs.builder()
    .status("string")
    .type("string")
    .deviceType("string")
    .runtimeTypeVersion("string")
    .deviceOrientation("string")
    .accountId("string")
    .devices("string")
    .enableScreenshotOnFailureAndScript(false)
    .locationsPrivates("string")
    .locationsPublics("string")
    .name("string")
    .period("string")
    .runtimeType("string")
    .customHeaders(MonitorCustomHeaderArgs.builder()
        .name("string")
        .value("string")
        .build())
    .scriptLanguage("string")
    .bypassHeadRequest(false)
    .tags(MonitorTagArgs.builder()
        .key("string")
        .values("string")
        .build())
    .treatRedirectAsFailure(false)
    .browsers("string")
    .uri("string")
    .useUnsupportedLegacyRuntime(false)
    .validationString("string")
    .verifySsl(false)
    .build());
monitor_resource = newrelic.synthetics.Monitor("monitorResource",
    status="string",
    type="string",
    device_type="string",
    runtime_type_version="string",
    device_orientation="string",
    account_id="string",
    devices=["string"],
    enable_screenshot_on_failure_and_script=False,
    locations_privates=["string"],
    locations_publics=["string"],
    name="string",
    period="string",
    runtime_type="string",
    custom_headers=[{
        "name": "string",
        "value": "string",
    }],
    script_language="string",
    bypass_head_request=False,
    tags=[{
        "key": "string",
        "values": ["string"],
    }],
    treat_redirect_as_failure=False,
    browsers=["string"],
    uri="string",
    use_unsupported_legacy_runtime=False,
    validation_string="string",
    verify_ssl=False)
const monitorResource = new newrelic.synthetics.Monitor("monitorResource", {
    status: "string",
    type: "string",
    deviceType: "string",
    runtimeTypeVersion: "string",
    deviceOrientation: "string",
    accountId: "string",
    devices: ["string"],
    enableScreenshotOnFailureAndScript: false,
    locationsPrivates: ["string"],
    locationsPublics: ["string"],
    name: "string",
    period: "string",
    runtimeType: "string",
    customHeaders: [{
        name: "string",
        value: "string",
    }],
    scriptLanguage: "string",
    bypassHeadRequest: false,
    tags: [{
        key: "string",
        values: ["string"],
    }],
    treatRedirectAsFailure: false,
    browsers: ["string"],
    uri: "string",
    useUnsupportedLegacyRuntime: false,
    validationString: "string",
    verifySsl: false,
});
type: newrelic:synthetics:Monitor
properties:
    accountId: string
    browsers:
        - string
    bypassHeadRequest: false
    customHeaders:
        - name: string
          value: string
    deviceOrientation: string
    deviceType: string
    devices:
        - string
    enableScreenshotOnFailureAndScript: false
    locationsPrivates:
        - string
    locationsPublics:
        - string
    name: string
    period: string
    runtimeType: string
    runtimeTypeVersion: string
    scriptLanguage: string
    status: string
    tags:
        - key: string
          values:
            - string
    treatRedirectAsFailure: false
    type: string
    uri: string
    useUnsupportedLegacyRuntime: false
    validationString: string
    verifySsl: false
Monitor Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Monitor resource accepts the following input properties:
- Status string
- The run state of the monitor. (ENABLEDorDISABLED).
- Type string
- The monitor type. Valid values are SIMPLEandBROWSER.
- AccountId string
- The account in which the Synthetics monitor will be created.
- Browsers List<string>
- The multiple browsers list on which synthetic monitors will run. Valid values are CHROMEandFIREFOX.
- BypassHead boolRequest 
- Monitor should skip default HEAD request and instead use GET verb in check. - The - BROWSERmonitor type supports the following additional arguments:
- CustomHeaders List<Pulumi.New Relic. Synthetics. Inputs. Monitor Custom Header> 
- Custom headers to use in monitor job. See Nested custom_header blocks below for details.
- DeviceOrientation string
- Device emulation orientation field. Valid values are LANDSCAPEandPORTRAIT.- We recommend you to use devicesfield instead ofdevice_type,device_orientationfields, as it allows you to select multiple combinations of device types and orientations.
 
- We recommend you to use 
- DeviceType string
- Device emulation type field. Valid values are MOBILEandTABLET.- We recommend you to use devicesfield instead ofdevice_type,device_orientationfields, as it allows you to select multiple combinations of device types and orientations.
 
- We recommend you to use 
- Devices List<string>
- The multiple devices list on which synthetic monitors will run. Valid values are DESKTOP,MOBILE_LANDSCAPE,MOBILE_PORTRAIT,TABLET_LANDSCAPEandTABLET_PORTRAIT.
- EnableScreenshot boolOn Failure And Script 
- Capture a screenshot during job execution.
- LocationsPrivates List<string>
- The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either locations_publicorlocations_privateis required.
- LocationsPublics List<string>
- The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis required.
- Name string
- The human-readable identifier 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, orEVERY_DAY.
- RuntimeType string
- The runtime that the monitor will use to run jobs (CHROME_BROWSER).
- RuntimeType stringVersion 
- The specific version of the runtime type selected (100).
- ScriptLanguage string
- The programing language that should execute the script.
- 
List<Pulumi.New Relic. Synthetics. Inputs. Monitor Tag> 
- The tags that will be associated with the monitor. See Nested tag blocks below for details. - The - SIMPLEmonitor type supports the following additional arguments:
- TreatRedirect boolAs Failure 
- Categorize redirects during a monitor job as a failure.
- Uri string
- The URI the monitor runs against.
- UseUnsupported boolLegacy Runtime 
- ValidationString string
- Validation text for monitor to search for at given URI.
- VerifySsl bool
- Monitor should validate SSL certificate chain.
- Status string
- The run state of the monitor. (ENABLEDorDISABLED).
- Type string
- The monitor type. Valid values are SIMPLEandBROWSER.
- AccountId string
- The account in which the Synthetics monitor will be created.
- Browsers []string
- The multiple browsers list on which synthetic monitors will run. Valid values are CHROMEandFIREFOX.
- BypassHead boolRequest 
- Monitor should skip default HEAD request and instead use GET verb in check. - The - BROWSERmonitor type supports the following additional arguments:
- CustomHeaders []MonitorCustom Header Args 
- Custom headers to use in monitor job. See Nested custom_header blocks below for details.
- DeviceOrientation string
- Device emulation orientation field. Valid values are LANDSCAPEandPORTRAIT.- We recommend you to use devicesfield instead ofdevice_type,device_orientationfields, as it allows you to select multiple combinations of device types and orientations.
 
- We recommend you to use 
- DeviceType string
- Device emulation type field. Valid values are MOBILEandTABLET.- We recommend you to use devicesfield instead ofdevice_type,device_orientationfields, as it allows you to select multiple combinations of device types and orientations.
 
- We recommend you to use 
- Devices []string
- The multiple devices list on which synthetic monitors will run. Valid values are DESKTOP,MOBILE_LANDSCAPE,MOBILE_PORTRAIT,TABLET_LANDSCAPEandTABLET_PORTRAIT.
- EnableScreenshot boolOn Failure And Script 
- Capture a screenshot during job execution.
- LocationsPrivates []string
- The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either locations_publicorlocations_privateis required.
- LocationsPublics []string
- The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis required.
- Name string
- The human-readable identifier 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, orEVERY_DAY.
- RuntimeType string
- The runtime that the monitor will use to run jobs (CHROME_BROWSER).
- RuntimeType stringVersion 
- The specific version of the runtime type selected (100).
- ScriptLanguage string
- The programing language that should execute the script.
- 
[]MonitorTag Args 
- The tags that will be associated with the monitor. See Nested tag blocks below for details. - The - SIMPLEmonitor type supports the following additional arguments:
- TreatRedirect boolAs Failure 
- Categorize redirects during a monitor job as a failure.
- Uri string
- The URI the monitor runs against.
- UseUnsupported boolLegacy Runtime 
- ValidationString string
- Validation text for monitor to search for at given URI.
- VerifySsl bool
- Monitor should validate SSL certificate chain.
- status String
- The run state of the monitor. (ENABLEDorDISABLED).
- type String
- The monitor type. Valid values are SIMPLEandBROWSER.
- accountId String
- The account in which the Synthetics monitor will be created.
- browsers List<String>
- The multiple browsers list on which synthetic monitors will run. Valid values are CHROMEandFIREFOX.
- bypassHead BooleanRequest 
- Monitor should skip default HEAD request and instead use GET verb in check. - The - BROWSERmonitor type supports the following additional arguments:
- customHeaders List<MonitorCustom Header> 
- Custom headers to use in monitor job. See Nested custom_header blocks below for details.
- deviceOrientation String
- Device emulation orientation field. Valid values are LANDSCAPEandPORTRAIT.- We recommend you to use devicesfield instead ofdevice_type,device_orientationfields, as it allows you to select multiple combinations of device types and orientations.
 
- We recommend you to use 
- deviceType String
- Device emulation type field. Valid values are MOBILEandTABLET.- We recommend you to use devicesfield instead ofdevice_type,device_orientationfields, as it allows you to select multiple combinations of device types and orientations.
 
- We recommend you to use 
- devices List<String>
- The multiple devices list on which synthetic monitors will run. Valid values are DESKTOP,MOBILE_LANDSCAPE,MOBILE_PORTRAIT,TABLET_LANDSCAPEandTABLET_PORTRAIT.
- enableScreenshot BooleanOn Failure And Script 
- Capture a screenshot during job execution.
- locationsPrivates List<String>
- The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either locations_publicorlocations_privateis required.
- locationsPublics List<String>
- The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis required.
- name String
- The human-readable identifier 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, orEVERY_DAY.
- runtimeType String
- The runtime that the monitor will use to run jobs (CHROME_BROWSER).
- runtimeType StringVersion 
- The specific version of the runtime type selected (100).
- scriptLanguage String
- The programing language that should execute the script.
- 
List<MonitorTag> 
- The tags that will be associated with the monitor. See Nested tag blocks below for details. - The - SIMPLEmonitor type supports the following additional arguments:
- treatRedirect BooleanAs Failure 
- Categorize redirects during a monitor job as a failure.
- uri String
- The URI the monitor runs against.
- useUnsupported BooleanLegacy Runtime 
- validationString String
- Validation text for monitor to search for at given URI.
- verifySsl Boolean
- Monitor should validate SSL certificate chain.
- status string
- The run state of the monitor. (ENABLEDorDISABLED).
- type string
- The monitor type. Valid values are SIMPLEandBROWSER.
- accountId string
- The account in which the Synthetics monitor will be created.
- browsers string[]
- The multiple browsers list on which synthetic monitors will run. Valid values are CHROMEandFIREFOX.
- bypassHead booleanRequest 
- Monitor should skip default HEAD request and instead use GET verb in check. - The - BROWSERmonitor type supports the following additional arguments:
- customHeaders MonitorCustom Header[] 
- Custom headers to use in monitor job. See Nested custom_header blocks below for details.
- deviceOrientation string
- Device emulation orientation field. Valid values are LANDSCAPEandPORTRAIT.- We recommend you to use devicesfield instead ofdevice_type,device_orientationfields, as it allows you to select multiple combinations of device types and orientations.
 
- We recommend you to use 
- deviceType string
- Device emulation type field. Valid values are MOBILEandTABLET.- We recommend you to use devicesfield instead ofdevice_type,device_orientationfields, as it allows you to select multiple combinations of device types and orientations.
 
- We recommend you to use 
- devices string[]
- The multiple devices list on which synthetic monitors will run. Valid values are DESKTOP,MOBILE_LANDSCAPE,MOBILE_PORTRAIT,TABLET_LANDSCAPEandTABLET_PORTRAIT.
- enableScreenshot booleanOn Failure And Script 
- Capture a screenshot during job execution.
- locationsPrivates string[]
- The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either locations_publicorlocations_privateis required.
- locationsPublics string[]
- The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis required.
- name string
- The human-readable identifier 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, orEVERY_DAY.
- runtimeType string
- The runtime that the monitor will use to run jobs (CHROME_BROWSER).
- runtimeType stringVersion 
- The specific version of the runtime type selected (100).
- scriptLanguage string
- The programing language that should execute the script.
- 
MonitorTag[] 
- The tags that will be associated with the monitor. See Nested tag blocks below for details. - The - SIMPLEmonitor type supports the following additional arguments:
- treatRedirect booleanAs Failure 
- Categorize redirects during a monitor job as a failure.
- uri string
- The URI the monitor runs against.
- useUnsupported booleanLegacy Runtime 
- validationString string
- Validation text for monitor to search for at given URI.
- verifySsl boolean
- Monitor should validate SSL certificate chain.
- status str
- The run state of the monitor. (ENABLEDorDISABLED).
- type str
- The monitor type. Valid values are SIMPLEandBROWSER.
- account_id str
- The account in which the Synthetics monitor will be created.
- browsers Sequence[str]
- The multiple browsers list on which synthetic monitors will run. Valid values are CHROMEandFIREFOX.
- bypass_head_ boolrequest 
- Monitor should skip default HEAD request and instead use GET verb in check. - The - BROWSERmonitor type supports the following additional arguments:
- custom_headers Sequence[MonitorCustom Header Args] 
- Custom headers to use in monitor job. See Nested custom_header blocks below for details.
- device_orientation str
- Device emulation orientation field. Valid values are LANDSCAPEandPORTRAIT.- We recommend you to use devicesfield instead ofdevice_type,device_orientationfields, as it allows you to select multiple combinations of device types and orientations.
 
- We recommend you to use 
- device_type str
- Device emulation type field. Valid values are MOBILEandTABLET.- We recommend you to use devicesfield instead ofdevice_type,device_orientationfields, as it allows you to select multiple combinations of device types and orientations.
 
- We recommend you to use 
- devices Sequence[str]
- The multiple devices list on which synthetic monitors will run. Valid values are DESKTOP,MOBILE_LANDSCAPE,MOBILE_PORTRAIT,TABLET_LANDSCAPEandTABLET_PORTRAIT.
- enable_screenshot_ boolon_ failure_ and_ script 
- Capture a screenshot during job execution.
- locations_privates Sequence[str]
- The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either locations_publicorlocations_privateis required.
- locations_publics Sequence[str]
- The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis required.
- name str
- The human-readable identifier 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, orEVERY_DAY.
- runtime_type str
- The runtime that the monitor will use to run jobs (CHROME_BROWSER).
- runtime_type_ strversion 
- The specific version of the runtime type selected (100).
- script_language str
- The programing language that should execute the script.
- 
Sequence[MonitorTag Args] 
- The tags that will be associated with the monitor. See Nested tag blocks below for details. - The - SIMPLEmonitor type supports the following additional arguments:
- treat_redirect_ boolas_ failure 
- Categorize redirects during a monitor job as a failure.
- uri str
- The URI the monitor runs against.
- use_unsupported_ boollegacy_ runtime 
- validation_string str
- Validation text for monitor to search for at given URI.
- verify_ssl bool
- Monitor should validate SSL certificate chain.
- status String
- The run state of the monitor. (ENABLEDorDISABLED).
- type String
- The monitor type. Valid values are SIMPLEandBROWSER.
- accountId String
- The account in which the Synthetics monitor will be created.
- browsers List<String>
- The multiple browsers list on which synthetic monitors will run. Valid values are CHROMEandFIREFOX.
- bypassHead BooleanRequest 
- Monitor should skip default HEAD request and instead use GET verb in check. - The - BROWSERmonitor type supports the following additional arguments:
- customHeaders List<Property Map>
- Custom headers to use in monitor job. See Nested custom_header blocks below for details.
- deviceOrientation String
- Device emulation orientation field. Valid values are LANDSCAPEandPORTRAIT.- We recommend you to use devicesfield instead ofdevice_type,device_orientationfields, as it allows you to select multiple combinations of device types and orientations.
 
- We recommend you to use 
- deviceType String
- Device emulation type field. Valid values are MOBILEandTABLET.- We recommend you to use devicesfield instead ofdevice_type,device_orientationfields, as it allows you to select multiple combinations of device types and orientations.
 
- We recommend you to use 
- devices List<String>
- The multiple devices list on which synthetic monitors will run. Valid values are DESKTOP,MOBILE_LANDSCAPE,MOBILE_PORTRAIT,TABLET_LANDSCAPEandTABLET_PORTRAIT.
- enableScreenshot BooleanOn Failure And Script 
- Capture a screenshot during job execution.
- locationsPrivates List<String>
- The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either locations_publicorlocations_privateis required.
- locationsPublics List<String>
- The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis required.
- name String
- The human-readable identifier 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, orEVERY_DAY.
- runtimeType String
- The runtime that the monitor will use to run jobs (CHROME_BROWSER).
- runtimeType StringVersion 
- The specific version of the runtime type selected (100).
- scriptLanguage String
- The programing language that should execute the script.
- List<Property Map>
- The tags that will be associated with the monitor. See Nested tag blocks below for details. - The - SIMPLEmonitor type supports the following additional arguments:
- treatRedirect BooleanAs Failure 
- Categorize redirects during a monitor job as a failure.
- uri String
- The URI the monitor runs against.
- useUnsupported BooleanLegacy Runtime 
- validationString String
- Validation text for monitor to search for at given URI.
- verifySsl Boolean
- Monitor should validate SSL certificate chain.
Outputs
All input properties are implicitly available as output properties. Additionally, the Monitor resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- PeriodIn intMinutes 
- The interval in minutes at which Synthetic monitor should run.
- Id string
- The provider-assigned unique ID for this managed resource.
- PeriodIn intMinutes 
- The interval in minutes at which Synthetic monitor should run.
- id String
- The provider-assigned unique ID for this managed resource.
- periodIn IntegerMinutes 
- The interval in minutes at which Synthetic monitor should run.
- id string
- The provider-assigned unique ID for this managed resource.
- periodIn numberMinutes 
- The interval in minutes at which Synthetic monitor should run.
- id str
- The provider-assigned unique ID for this managed resource.
- period_in_ intminutes 
- The interval in minutes at which Synthetic monitor should run.
- id String
- The provider-assigned unique ID for this managed resource.
- periodIn NumberMinutes 
- The interval in minutes at which Synthetic monitor should run.
Look up Existing Monitor Resource
Get an existing Monitor 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?: MonitorState, opts?: CustomResourceOptions): Monitor@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[str] = None,
        browsers: Optional[Sequence[str]] = None,
        bypass_head_request: Optional[bool] = None,
        custom_headers: Optional[Sequence[MonitorCustomHeaderArgs]] = None,
        device_orientation: Optional[str] = None,
        device_type: Optional[str] = None,
        devices: Optional[Sequence[str]] = None,
        enable_screenshot_on_failure_and_script: Optional[bool] = None,
        locations_privates: Optional[Sequence[str]] = None,
        locations_publics: Optional[Sequence[str]] = None,
        name: Optional[str] = None,
        period: Optional[str] = None,
        period_in_minutes: Optional[int] = None,
        runtime_type: Optional[str] = None,
        runtime_type_version: Optional[str] = None,
        script_language: Optional[str] = None,
        status: Optional[str] = None,
        tags: Optional[Sequence[MonitorTagArgs]] = None,
        treat_redirect_as_failure: Optional[bool] = None,
        type: Optional[str] = None,
        uri: Optional[str] = None,
        use_unsupported_legacy_runtime: Optional[bool] = None,
        validation_string: Optional[str] = None,
        verify_ssl: Optional[bool] = None) -> Monitorfunc GetMonitor(ctx *Context, name string, id IDInput, state *MonitorState, opts ...ResourceOption) (*Monitor, error)public static Monitor Get(string name, Input<string> id, MonitorState? state, CustomResourceOptions? opts = null)public static Monitor get(String name, Output<String> id, MonitorState state, CustomResourceOptions options)resources:  _:    type: newrelic:synthetics:Monitor    get:      id: ${id}- 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.
- AccountId string
- The account in which the Synthetics monitor will be created.
- Browsers List<string>
- The multiple browsers list on which synthetic monitors will run. Valid values are CHROMEandFIREFOX.
- BypassHead boolRequest 
- Monitor should skip default HEAD request and instead use GET verb in check. - The - BROWSERmonitor type supports the following additional arguments:
- CustomHeaders List<Pulumi.New Relic. Synthetics. Inputs. Monitor Custom Header> 
- Custom headers to use in monitor job. See Nested custom_header blocks below for details.
- DeviceOrientation string
- Device emulation orientation field. Valid values are LANDSCAPEandPORTRAIT.- We recommend you to use devicesfield instead ofdevice_type,device_orientationfields, as it allows you to select multiple combinations of device types and orientations.
 
- We recommend you to use 
- DeviceType string
- Device emulation type field. Valid values are MOBILEandTABLET.- We recommend you to use devicesfield instead ofdevice_type,device_orientationfields, as it allows you to select multiple combinations of device types and orientations.
 
- We recommend you to use 
- Devices List<string>
- The multiple devices list on which synthetic monitors will run. Valid values are DESKTOP,MOBILE_LANDSCAPE,MOBILE_PORTRAIT,TABLET_LANDSCAPEandTABLET_PORTRAIT.
- EnableScreenshot boolOn Failure And Script 
- Capture a screenshot during job execution.
- LocationsPrivates List<string>
- The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either locations_publicorlocations_privateis required.
- LocationsPublics List<string>
- The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis required.
- Name string
- The human-readable identifier 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, orEVERY_DAY.
- PeriodIn intMinutes 
- The interval in minutes at which Synthetic monitor should run.
- RuntimeType string
- The runtime that the monitor will use to run jobs (CHROME_BROWSER).
- RuntimeType stringVersion 
- The specific version of the runtime type selected (100).
- ScriptLanguage string
- The programing language that should execute the script.
- Status string
- The run state of the monitor. (ENABLEDorDISABLED).
- 
List<Pulumi.New Relic. Synthetics. Inputs. Monitor Tag> 
- The tags that will be associated with the monitor. See Nested tag blocks below for details. - The - SIMPLEmonitor type supports the following additional arguments:
- TreatRedirect boolAs Failure 
- Categorize redirects during a monitor job as a failure.
- Type string
- The monitor type. Valid values are SIMPLEandBROWSER.
- Uri string
- The URI the monitor runs against.
- UseUnsupported boolLegacy Runtime 
- ValidationString string
- Validation text for monitor to search for at given URI.
- VerifySsl bool
- Monitor should validate SSL certificate chain.
- AccountId string
- The account in which the Synthetics monitor will be created.
- Browsers []string
- The multiple browsers list on which synthetic monitors will run. Valid values are CHROMEandFIREFOX.
- BypassHead boolRequest 
- Monitor should skip default HEAD request and instead use GET verb in check. - The - BROWSERmonitor type supports the following additional arguments:
- CustomHeaders []MonitorCustom Header Args 
- Custom headers to use in monitor job. See Nested custom_header blocks below for details.
- DeviceOrientation string
- Device emulation orientation field. Valid values are LANDSCAPEandPORTRAIT.- We recommend you to use devicesfield instead ofdevice_type,device_orientationfields, as it allows you to select multiple combinations of device types and orientations.
 
- We recommend you to use 
- DeviceType string
- Device emulation type field. Valid values are MOBILEandTABLET.- We recommend you to use devicesfield instead ofdevice_type,device_orientationfields, as it allows you to select multiple combinations of device types and orientations.
 
- We recommend you to use 
- Devices []string
- The multiple devices list on which synthetic monitors will run. Valid values are DESKTOP,MOBILE_LANDSCAPE,MOBILE_PORTRAIT,TABLET_LANDSCAPEandTABLET_PORTRAIT.
- EnableScreenshot boolOn Failure And Script 
- Capture a screenshot during job execution.
- LocationsPrivates []string
- The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either locations_publicorlocations_privateis required.
- LocationsPublics []string
- The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis required.
- Name string
- The human-readable identifier 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, orEVERY_DAY.
- PeriodIn intMinutes 
- The interval in minutes at which Synthetic monitor should run.
- RuntimeType string
- The runtime that the monitor will use to run jobs (CHROME_BROWSER).
- RuntimeType stringVersion 
- The specific version of the runtime type selected (100).
- ScriptLanguage string
- The programing language that should execute the script.
- Status string
- The run state of the monitor. (ENABLEDorDISABLED).
- 
[]MonitorTag Args 
- The tags that will be associated with the monitor. See Nested tag blocks below for details. - The - SIMPLEmonitor type supports the following additional arguments:
- TreatRedirect boolAs Failure 
- Categorize redirects during a monitor job as a failure.
- Type string
- The monitor type. Valid values are SIMPLEandBROWSER.
- Uri string
- The URI the monitor runs against.
- UseUnsupported boolLegacy Runtime 
- ValidationString string
- Validation text for monitor to search for at given URI.
- VerifySsl bool
- Monitor should validate SSL certificate chain.
- accountId String
- The account in which the Synthetics monitor will be created.
- browsers List<String>
- The multiple browsers list on which synthetic monitors will run. Valid values are CHROMEandFIREFOX.
- bypassHead BooleanRequest 
- Monitor should skip default HEAD request and instead use GET verb in check. - The - BROWSERmonitor type supports the following additional arguments:
- customHeaders List<MonitorCustom Header> 
- Custom headers to use in monitor job. See Nested custom_header blocks below for details.
- deviceOrientation String
- Device emulation orientation field. Valid values are LANDSCAPEandPORTRAIT.- We recommend you to use devicesfield instead ofdevice_type,device_orientationfields, as it allows you to select multiple combinations of device types and orientations.
 
- We recommend you to use 
- deviceType String
- Device emulation type field. Valid values are MOBILEandTABLET.- We recommend you to use devicesfield instead ofdevice_type,device_orientationfields, as it allows you to select multiple combinations of device types and orientations.
 
- We recommend you to use 
- devices List<String>
- The multiple devices list on which synthetic monitors will run. Valid values are DESKTOP,MOBILE_LANDSCAPE,MOBILE_PORTRAIT,TABLET_LANDSCAPEandTABLET_PORTRAIT.
- enableScreenshot BooleanOn Failure And Script 
- Capture a screenshot during job execution.
- locationsPrivates List<String>
- The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either locations_publicorlocations_privateis required.
- locationsPublics List<String>
- The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis required.
- name String
- The human-readable identifier 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, orEVERY_DAY.
- periodIn IntegerMinutes 
- The interval in minutes at which Synthetic monitor should run.
- runtimeType String
- The runtime that the monitor will use to run jobs (CHROME_BROWSER).
- runtimeType StringVersion 
- The specific version of the runtime type selected (100).
- scriptLanguage String
- The programing language that should execute the script.
- status String
- The run state of the monitor. (ENABLEDorDISABLED).
- 
List<MonitorTag> 
- The tags that will be associated with the monitor. See Nested tag blocks below for details. - The - SIMPLEmonitor type supports the following additional arguments:
- treatRedirect BooleanAs Failure 
- Categorize redirects during a monitor job as a failure.
- type String
- The monitor type. Valid values are SIMPLEandBROWSER.
- uri String
- The URI the monitor runs against.
- useUnsupported BooleanLegacy Runtime 
- validationString String
- Validation text for monitor to search for at given URI.
- verifySsl Boolean
- Monitor should validate SSL certificate chain.
- accountId string
- The account in which the Synthetics monitor will be created.
- browsers string[]
- The multiple browsers list on which synthetic monitors will run. Valid values are CHROMEandFIREFOX.
- bypassHead booleanRequest 
- Monitor should skip default HEAD request and instead use GET verb in check. - The - BROWSERmonitor type supports the following additional arguments:
- customHeaders MonitorCustom Header[] 
- Custom headers to use in monitor job. See Nested custom_header blocks below for details.
- deviceOrientation string
- Device emulation orientation field. Valid values are LANDSCAPEandPORTRAIT.- We recommend you to use devicesfield instead ofdevice_type,device_orientationfields, as it allows you to select multiple combinations of device types and orientations.
 
- We recommend you to use 
- deviceType string
- Device emulation type field. Valid values are MOBILEandTABLET.- We recommend you to use devicesfield instead ofdevice_type,device_orientationfields, as it allows you to select multiple combinations of device types and orientations.
 
- We recommend you to use 
- devices string[]
- The multiple devices list on which synthetic monitors will run. Valid values are DESKTOP,MOBILE_LANDSCAPE,MOBILE_PORTRAIT,TABLET_LANDSCAPEandTABLET_PORTRAIT.
- enableScreenshot booleanOn Failure And Script 
- Capture a screenshot during job execution.
- locationsPrivates string[]
- The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either locations_publicorlocations_privateis required.
- locationsPublics string[]
- The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis required.
- name string
- The human-readable identifier 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, orEVERY_DAY.
- periodIn numberMinutes 
- The interval in minutes at which Synthetic monitor should run.
- runtimeType string
- The runtime that the monitor will use to run jobs (CHROME_BROWSER).
- runtimeType stringVersion 
- The specific version of the runtime type selected (100).
- scriptLanguage string
- The programing language that should execute the script.
- status string
- The run state of the monitor. (ENABLEDorDISABLED).
- 
MonitorTag[] 
- The tags that will be associated with the monitor. See Nested tag blocks below for details. - The - SIMPLEmonitor type supports the following additional arguments:
- treatRedirect booleanAs Failure 
- Categorize redirects during a monitor job as a failure.
- type string
- The monitor type. Valid values are SIMPLEandBROWSER.
- uri string
- The URI the monitor runs against.
- useUnsupported booleanLegacy Runtime 
- validationString string
- Validation text for monitor to search for at given URI.
- verifySsl boolean
- Monitor should validate SSL certificate chain.
- account_id str
- The account in which the Synthetics monitor will be created.
- browsers Sequence[str]
- The multiple browsers list on which synthetic monitors will run. Valid values are CHROMEandFIREFOX.
- bypass_head_ boolrequest 
- Monitor should skip default HEAD request and instead use GET verb in check. - The - BROWSERmonitor type supports the following additional arguments:
- custom_headers Sequence[MonitorCustom Header Args] 
- Custom headers to use in monitor job. See Nested custom_header blocks below for details.
- device_orientation str
- Device emulation orientation field. Valid values are LANDSCAPEandPORTRAIT.- We recommend you to use devicesfield instead ofdevice_type,device_orientationfields, as it allows you to select multiple combinations of device types and orientations.
 
- We recommend you to use 
- device_type str
- Device emulation type field. Valid values are MOBILEandTABLET.- We recommend you to use devicesfield instead ofdevice_type,device_orientationfields, as it allows you to select multiple combinations of device types and orientations.
 
- We recommend you to use 
- devices Sequence[str]
- The multiple devices list on which synthetic monitors will run. Valid values are DESKTOP,MOBILE_LANDSCAPE,MOBILE_PORTRAIT,TABLET_LANDSCAPEandTABLET_PORTRAIT.
- enable_screenshot_ boolon_ failure_ and_ script 
- Capture a screenshot during job execution.
- locations_privates Sequence[str]
- The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either locations_publicorlocations_privateis required.
- locations_publics Sequence[str]
- The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis required.
- name str
- The human-readable identifier 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, orEVERY_DAY.
- period_in_ intminutes 
- The interval in minutes at which Synthetic monitor should run.
- runtime_type str
- The runtime that the monitor will use to run jobs (CHROME_BROWSER).
- runtime_type_ strversion 
- The specific version of the runtime type selected (100).
- script_language str
- The programing language that should execute the script.
- status str
- The run state of the monitor. (ENABLEDorDISABLED).
- 
Sequence[MonitorTag Args] 
- The tags that will be associated with the monitor. See Nested tag blocks below for details. - The - SIMPLEmonitor type supports the following additional arguments:
- treat_redirect_ boolas_ failure 
- Categorize redirects during a monitor job as a failure.
- type str
- The monitor type. Valid values are SIMPLEandBROWSER.
- uri str
- The URI the monitor runs against.
- use_unsupported_ boollegacy_ runtime 
- validation_string str
- Validation text for monitor to search for at given URI.
- verify_ssl bool
- Monitor should validate SSL certificate chain.
- accountId String
- The account in which the Synthetics monitor will be created.
- browsers List<String>
- The multiple browsers list on which synthetic monitors will run. Valid values are CHROMEandFIREFOX.
- bypassHead BooleanRequest 
- Monitor should skip default HEAD request and instead use GET verb in check. - The - BROWSERmonitor type supports the following additional arguments:
- customHeaders List<Property Map>
- Custom headers to use in monitor job. See Nested custom_header blocks below for details.
- deviceOrientation String
- Device emulation orientation field. Valid values are LANDSCAPEandPORTRAIT.- We recommend you to use devicesfield instead ofdevice_type,device_orientationfields, as it allows you to select multiple combinations of device types and orientations.
 
- We recommend you to use 
- deviceType String
- Device emulation type field. Valid values are MOBILEandTABLET.- We recommend you to use devicesfield instead ofdevice_type,device_orientationfields, as it allows you to select multiple combinations of device types and orientations.
 
- We recommend you to use 
- devices List<String>
- The multiple devices list on which synthetic monitors will run. Valid values are DESKTOP,MOBILE_LANDSCAPE,MOBILE_PORTRAIT,TABLET_LANDSCAPEandTABLET_PORTRAIT.
- enableScreenshot BooleanOn Failure And Script 
- Capture a screenshot during job execution.
- locationsPrivates List<String>
- The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either locations_publicorlocations_privateis required.
- locationsPublics List<String>
- The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis required.
- name String
- The human-readable identifier 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, orEVERY_DAY.
- periodIn NumberMinutes 
- The interval in minutes at which Synthetic monitor should run.
- runtimeType String
- The runtime that the monitor will use to run jobs (CHROME_BROWSER).
- runtimeType StringVersion 
- The specific version of the runtime type selected (100).
- scriptLanguage String
- The programing language that should execute the script.
- status String
- The run state of the monitor. (ENABLEDorDISABLED).
- List<Property Map>
- The tags that will be associated with the monitor. See Nested tag blocks below for details. - The - SIMPLEmonitor type supports the following additional arguments:
- treatRedirect BooleanAs Failure 
- Categorize redirects during a monitor job as a failure.
- type String
- The monitor type. Valid values are SIMPLEandBROWSER.
- uri String
- The URI the monitor runs against.
- useUnsupported BooleanLegacy Runtime 
- validationString String
- Validation text for monitor to search for at given URI.
- verifySsl Boolean
- Monitor should validate SSL certificate chain.
Supporting Types
MonitorCustomHeader, MonitorCustomHeaderArgs      
MonitorTag, MonitorTagArgs    
Import
Synthetics monitor can be imported using the guid, e.g.
bash
$ pulumi import newrelic:synthetics/monitor:Monitor monitor <guid>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- New Relic pulumi/pulumi-newrelic
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the newrelicTerraform Provider.