New Relic

Pulumi Official
Package maintained by Pulumi
v4.19.0 published on Wednesday, Jul 20, 2022 by Pulumi

AlertCondition

New Relic Plugins reached end of life Wednesday June 16, 2021.

This resource has been removed.

For more information, click here

Create a AlertCondition Resource

new AlertCondition(name: string, args: AlertConditionArgs, opts?: CustomResourceOptions);
@overload
def AlertCondition(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   enabled: Optional[bool] = None,
                   entities: Optional[Sequence[int]] = None,
                   metric: Optional[str] = None,
                   metric_description: Optional[str] = None,
                   name: Optional[str] = None,
                   plugin_guid: Optional[str] = None,
                   plugin_id: Optional[str] = None,
                   policy_id: Optional[int] = None,
                   runbook_url: Optional[str] = None,
                   terms: Optional[Sequence[AlertConditionTermArgs]] = None,
                   value_function: Optional[str] = None)
@overload
def AlertCondition(resource_name: str,
                   args: AlertConditionArgs,
                   opts: Optional[ResourceOptions] = None)
func NewAlertCondition(ctx *Context, name string, args AlertConditionArgs, opts ...ResourceOption) (*AlertCondition, error)
public AlertCondition(string name, AlertConditionArgs args, CustomResourceOptions? opts = null)
public AlertCondition(String name, AlertConditionArgs args)
public AlertCondition(String name, AlertConditionArgs args, CustomResourceOptions options)
type: newrelic:plugins:AlertCondition
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AlertConditionArgs
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 AlertConditionArgs
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 AlertConditionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AlertConditionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AlertConditionArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

AlertCondition 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 AlertCondition resource accepts the following input properties:

Entities List<int>

The plugin component IDs to target.

Metric string

The plugin metric to evaluate.

MetricDescription string

The metric description.

PluginGuid string

The GUID of the plugin which produces the metric.

PluginId string

The ID of the installed plugin instance which produces the metric.

PolicyId int

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

Terms List<Pulumi.NewRelic.Plugins.Inputs.AlertConditionTermArgs>
ValueFunction string

The value function to apply to the metric data. One of min, max, average, sample_size, total, or percent.

Enabled bool

Whether or not this condition is enabled.

Name string

The title of the condition. Must be between 1 and 64 characters, inclusive.

RunbookUrl string

Runbook URL to display in notifications.

Entities []int

The plugin component IDs to target.

Metric string

The plugin metric to evaluate.

MetricDescription string

The metric description.

PluginGuid string

The GUID of the plugin which produces the metric.

PluginId string

The ID of the installed plugin instance which produces the metric.

PolicyId int

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

Terms []AlertConditionTermArgs
ValueFunction string

The value function to apply to the metric data. One of min, max, average, sample_size, total, or percent.

Enabled bool

Whether or not this condition is enabled.

Name string

The title of the condition. Must be between 1 and 64 characters, inclusive.

RunbookUrl string

Runbook URL to display in notifications.

entities List<Integer>

The plugin component IDs to target.

metric String

The plugin metric to evaluate.

metricDescription String

The metric description.

pluginGuid String

The GUID of the plugin which produces the metric.

pluginId String

The ID of the installed plugin instance which produces the metric.

policyId Integer

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

terms List<AlertConditionTermArgs>
valueFunction String

The value function to apply to the metric data. One of min, max, average, sample_size, total, or percent.

enabled Boolean

Whether or not this condition is enabled.

name String

The title of the condition. Must be between 1 and 64 characters, inclusive.

runbookUrl String

Runbook URL to display in notifications.

entities number[]

The plugin component IDs to target.

metric string

The plugin metric to evaluate.

metricDescription string

The metric description.

pluginGuid string

The GUID of the plugin which produces the metric.

pluginId string

The ID of the installed plugin instance which produces the metric.

policyId number

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

terms AlertConditionTermArgs[]
valueFunction string

The value function to apply to the metric data. One of min, max, average, sample_size, total, or percent.

enabled boolean

Whether or not this condition is enabled.

name string

The title of the condition. Must be between 1 and 64 characters, inclusive.

runbookUrl string

Runbook URL to display in notifications.

entities Sequence[int]

The plugin component IDs to target.

metric str

The plugin metric to evaluate.

metric_description str

The metric description.

plugin_guid str

The GUID of the plugin which produces the metric.

plugin_id str

The ID of the installed plugin instance which produces the metric.

policy_id int

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

terms Sequence[AlertConditionTermArgs]
value_function str

The value function to apply to the metric data. One of min, max, average, sample_size, total, or percent.

enabled bool

Whether or not this condition is enabled.

name str

The title of the condition. Must be between 1 and 64 characters, inclusive.

runbook_url str

Runbook URL to display in notifications.

entities List<Number>

The plugin component IDs to target.

metric String

The plugin metric to evaluate.

metricDescription String

The metric description.

pluginGuid String

The GUID of the plugin which produces the metric.

pluginId String

The ID of the installed plugin instance which produces the metric.

policyId Number

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

terms List<Property Map>
valueFunction String

The value function to apply to the metric data. One of min, max, average, sample_size, total, or percent.

enabled Boolean

Whether or not this condition is enabled.

name String

The title of the condition. Must be between 1 and 64 characters, inclusive.

runbookUrl String

Runbook URL to display in notifications.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up an Existing AlertCondition Resource

Get an existing AlertCondition 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?: AlertConditionState, opts?: CustomResourceOptions): AlertCondition
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        enabled: Optional[bool] = None,
        entities: Optional[Sequence[int]] = None,
        metric: Optional[str] = None,
        metric_description: Optional[str] = None,
        name: Optional[str] = None,
        plugin_guid: Optional[str] = None,
        plugin_id: Optional[str] = None,
        policy_id: Optional[int] = None,
        runbook_url: Optional[str] = None,
        terms: Optional[Sequence[AlertConditionTermArgs]] = None,
        value_function: Optional[str] = None) -> AlertCondition
func GetAlertCondition(ctx *Context, name string, id IDInput, state *AlertConditionState, opts ...ResourceOption) (*AlertCondition, error)
public static AlertCondition Get(string name, Input<string> id, AlertConditionState? state, CustomResourceOptions? opts = null)
public static AlertCondition get(String name, Output<String> id, AlertConditionState 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:
Enabled bool

Whether or not this condition is enabled.

Entities List<int>

The plugin component IDs to target.

Metric string

The plugin metric to evaluate.

MetricDescription string

The metric description.

Name string

The title of the condition. Must be between 1 and 64 characters, inclusive.

PluginGuid string

The GUID of the plugin which produces the metric.

PluginId string

The ID of the installed plugin instance which produces the metric.

PolicyId int

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

RunbookUrl string

Runbook URL to display in notifications.

Terms List<Pulumi.NewRelic.Plugins.Inputs.AlertConditionTermArgs>
ValueFunction string

The value function to apply to the metric data. One of min, max, average, sample_size, total, or percent.

Enabled bool

Whether or not this condition is enabled.

Entities []int

The plugin component IDs to target.

Metric string

The plugin metric to evaluate.

MetricDescription string

The metric description.

Name string

The title of the condition. Must be between 1 and 64 characters, inclusive.

PluginGuid string

The GUID of the plugin which produces the metric.

PluginId string

The ID of the installed plugin instance which produces the metric.

PolicyId int

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

RunbookUrl string

Runbook URL to display in notifications.

Terms []AlertConditionTermArgs
ValueFunction string

The value function to apply to the metric data. One of min, max, average, sample_size, total, or percent.

enabled Boolean

Whether or not this condition is enabled.

entities List<Integer>

The plugin component IDs to target.

metric String

The plugin metric to evaluate.

metricDescription String

The metric description.

name String

The title of the condition. Must be between 1 and 64 characters, inclusive.

pluginGuid String

The GUID of the plugin which produces the metric.

pluginId String

The ID of the installed plugin instance which produces the metric.

policyId Integer

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

runbookUrl String

Runbook URL to display in notifications.

terms List<AlertConditionTermArgs>
valueFunction String

The value function to apply to the metric data. One of min, max, average, sample_size, total, or percent.

enabled boolean

Whether or not this condition is enabled.

entities number[]

The plugin component IDs to target.

metric string

The plugin metric to evaluate.

metricDescription string

The metric description.

name string

The title of the condition. Must be between 1 and 64 characters, inclusive.

pluginGuid string

The GUID of the plugin which produces the metric.

pluginId string

The ID of the installed plugin instance which produces the metric.

policyId number

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

runbookUrl string

Runbook URL to display in notifications.

terms AlertConditionTermArgs[]
valueFunction string

The value function to apply to the metric data. One of min, max, average, sample_size, total, or percent.

enabled bool

Whether or not this condition is enabled.

entities Sequence[int]

The plugin component IDs to target.

metric str

The plugin metric to evaluate.

metric_description str

The metric description.

name str

The title of the condition. Must be between 1 and 64 characters, inclusive.

plugin_guid str

The GUID of the plugin which produces the metric.

plugin_id str

The ID of the installed plugin instance which produces the metric.

policy_id int

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

runbook_url str

Runbook URL to display in notifications.

terms Sequence[AlertConditionTermArgs]
value_function str

The value function to apply to the metric data. One of min, max, average, sample_size, total, or percent.

enabled Boolean

Whether or not this condition is enabled.

entities List<Number>

The plugin component IDs to target.

metric String

The plugin metric to evaluate.

metricDescription String

The metric description.

name String

The title of the condition. Must be between 1 and 64 characters, inclusive.

pluginGuid String

The GUID of the plugin which produces the metric.

pluginId String

The ID of the installed plugin instance which produces the metric.

policyId Number

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

runbookUrl String

Runbook URL to display in notifications.

terms List<Property Map>
valueFunction String

The value function to apply to the metric data. One of min, max, average, sample_size, total, or percent.

Supporting Types

AlertConditionTerm

Duration int
Threshold double
TimeFunction string
Operator string
Priority string
Duration int
Threshold float64
TimeFunction string
Operator string
Priority string
duration Integer
threshold Double
timeFunction String
operator String
priority String
duration number
threshold number
timeFunction string
operator string
priority string
duration Number
threshold Number
timeFunction String
operator String
priority String

Package Details

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

This Pulumi package is based on the newrelic Terraform Provider.