synthetics

This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-newrelic repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-newrelic repo.

class pulumi_newrelic.synthetics.AlertCondition(resource_name, opts=None, enabled=None, monitor_id=None, name=None, policy_id=None, runbook_url=None, __props__=None, __name__=None, __opts__=None)

Create a AlertCondition resource with the given unique name, props, and options.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • enabled (pulumi.Input[bool]) – Set whether to enable the alert condition. Defaults to true.

  • monitor_id (pulumi.Input[str]) – The ID of the Synthetics monitor to be referenced in the alert condition.

  • name (pulumi.Input[str]) – The title of this condition.

  • policy_id (pulumi.Input[float]) – The ID of the policy where this condition should be used.

  • runbook_url (pulumi.Input[str]) – Runbook URL to display in notifications.

enabled = None

Set whether to enable the alert condition. Defaults to true.

monitor_id = None

The ID of the Synthetics monitor to be referenced in the alert condition.

name = None

The title of this condition.

policy_id = None

The ID of the policy where this condition should be used.

runbook_url = None

Runbook URL to display in notifications.

static get(resource_name, id, opts=None, enabled=None, monitor_id=None, name=None, policy_id=None, runbook_url=None)

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

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • enabled (pulumi.Input[bool]) – Set whether to enable the alert condition. Defaults to true.

  • monitor_id (pulumi.Input[str]) – The ID of the Synthetics monitor to be referenced in the alert condition.

  • name (pulumi.Input[str]) – The title of this condition.

  • policy_id (pulumi.Input[float]) – The ID of the policy where this condition should be used.

  • runbook_url (pulumi.Input[str]) – Runbook URL to display in notifications.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_newrelic.synthetics.AwaitableGetMonitorResult(monitor_id=None, name=None, id=None)
class pulumi_newrelic.synthetics.GetMonitorResult(monitor_id=None, name=None, id=None)

A collection of values returned by getMonitor.

id = None

id is the provider-assigned unique ID for this managed resource.

class pulumi_newrelic.synthetics.Monitor(resource_name, opts=None, bypass_head_request=None, frequency=None, locations=None, name=None, sla_threshold=None, status=None, treat_redirect_as_failure=None, type=None, uri=None, validation_string=None, verify_ssl=None, __props__=None, __name__=None, __opts__=None)

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

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • bypass_head_request (pulumi.Input[bool]) – Bypass HEAD request.

  • frequency (pulumi.Input[float]) – The interval (in minutes) at which this monitor should run.

  • locations (pulumi.Input[list]) – The locations in which this monitor should be run.

  • name (pulumi.Input[str]) – The title of this monitor.

  • sla_threshold (pulumi.Input[float]) – The base threshold for the SLA report.

  • status (pulumi.Input[str]) – The monitor status (i.e. ENABLED, MUTED, DISABLED)

  • type (pulumi.Input[str]) – The monitor type.

  • uri (pulumi.Input[str]) – The URI for the monitor to hit.

  • validation_string (pulumi.Input[str]) – The string to validate against in the response.

  • verify_ssl (pulumi.Input[bool]) – Verify SSL.

bypass_head_request = None

Bypass HEAD request.

frequency = None

The interval (in minutes) at which this monitor should run.

locations = None

The locations in which this monitor should be run.

name = None

The title of this monitor.

sla_threshold = None

The base threshold for the SLA report.

status = None

The monitor status (i.e. ENABLED, MUTED, DISABLED)

type = None

The monitor type.

uri = None

The URI for the monitor to hit.

validation_string = None

The string to validate against in the response.

verify_ssl = None

Verify SSL.

static get(resource_name, id, opts=None, bypass_head_request=None, frequency=None, locations=None, name=None, sla_threshold=None, status=None, treat_redirect_as_failure=None, type=None, uri=None, validation_string=None, verify_ssl=None)

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

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • bypass_head_request (pulumi.Input[bool]) – Bypass HEAD request.

  • frequency (pulumi.Input[float]) – The interval (in minutes) at which this monitor should run.

  • locations (pulumi.Input[list]) – The locations in which this monitor should be run.

  • name (pulumi.Input[str]) – The title of this monitor.

  • sla_threshold (pulumi.Input[float]) – The base threshold for the SLA report.

  • status (pulumi.Input[str]) – The monitor status (i.e. ENABLED, MUTED, DISABLED)

  • type (pulumi.Input[str]) – The monitor type.

  • uri (pulumi.Input[str]) – The URI for the monitor to hit.

  • validation_string (pulumi.Input[str]) – The string to validate against in the response.

  • verify_ssl (pulumi.Input[bool]) – Verify SSL.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_newrelic.synthetics.MonitorScript(resource_name, opts=None, monitor_id=None, text=None, __props__=None, __name__=None, __opts__=None)

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

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • monitor_id (pulumi.Input[str]) – The ID of the monitor to attach the script to.

  • text (pulumi.Input[str]) – plaintext of the monitor script.

monitor_id = None

The ID of the monitor to attach the script to.

text = None

plaintext of the monitor script.

static get(resource_name, id, opts=None, monitor_id=None, text=None)

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

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • monitor_id (pulumi.Input[str]) – The ID of the monitor to attach the script to.

  • text (pulumi.Input[str]) – plaintext of the monitor script.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

pulumi_newrelic.synthetics.get_monitor(name=None, opts=None)

Use this data source to get information about a specific synthetics monitor in New Relic. This can then be used to set up a synthetics alert condition.

Parameters

name (str) – The name of the synthetics monitor in New Relic.