Class MonitorScript
Use this resource to update a synthetics monitor script in New Relic.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.NewRelic.Synthetics
Assembly: Pulumi.NewRelic.dll
Syntax
public class MonitorScript : CustomResource
Constructors
View SourceMonitorScript(String, MonitorScriptArgs, CustomResourceOptions)
Create a MonitorScript resource with the given unique name, arguments, and options.
Declaration
public MonitorScript(string name, MonitorScriptArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| MonitorScriptArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceMonitorId
The ID of the monitor to attach the script to.
Declaration
public Output<string> MonitorId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Text
The plaintext representing the monitor script.
Declaration
public Output<string> Text { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, MonitorScriptState, CustomResourceOptions)
Get an existing MonitorScript resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static MonitorScript Get(string name, Input<string> id, MonitorScriptState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| MonitorScriptState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| MonitorScript |