plugins

package
v2.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertCondition

type AlertCondition struct {
	pulumi.CustomResourceState

	// Whether or not this condition is enabled.
	Enabled pulumi.BoolPtrOutput `pulumi:"enabled"`
	// The plugin component IDs to target.
	Entities pulumi.IntArrayOutput `pulumi:"entities"`
	// The plugin metric to evaluate.
	Metric pulumi.StringOutput `pulumi:"metric"`
	// The metric description.
	MetricDescription pulumi.StringOutput `pulumi:"metricDescription"`
	// The title of the condition. Must be between 1 and 64 characters, inclusive.
	Name pulumi.StringOutput `pulumi:"name"`
	// The GUID of the plugin which produces the metric.
	PluginGuid pulumi.StringOutput `pulumi:"pluginGuid"`
	// The ID of the installed plugin instance which produces the metric.
	PluginId pulumi.StringOutput `pulumi:"pluginId"`
	// The ID of the policy where this condition should be used.
	PolicyId pulumi.IntOutput `pulumi:"policyId"`
	// Runbook URL to display in notifications.
	RunbookUrl pulumi.StringPtrOutput `pulumi:"runbookUrl"`
	// A list of terms for this condition. See Terms below for details.
	Terms AlertConditionTermArrayOutput `pulumi:"terms"`
	// The value function to apply to the metric data.  One of `min`, `max`, `average`, `sampleSize`, `total`, or `percent`.
	ValueFunction pulumi.StringOutput `pulumi:"valueFunction"`
}

Use this resource to create and manage plugins alert conditions in New Relic.

## Terms

The `term` mapping supports the following arguments:

  • `duration` - (Required) In minutes, must be in the range of `5` to `120`, inclusive.
  • `operator` - (Optional) `above`, `below`, or `equal`. Defaults to `equal`.
  • `priority` - (Optional) `critical` or `warning`. Defaults to `critical`.
  • `threshold` - (Required) Must be 0 or greater.
  • `timeFunction` - (Required) `all` or `any`.

func GetAlertCondition

func GetAlertCondition(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AlertConditionState, opts ...pulumi.ResourceOption) (*AlertCondition, error)

GetAlertCondition gets an existing AlertCondition resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAlertCondition

func NewAlertCondition(ctx *pulumi.Context,
	name string, args *AlertConditionArgs, opts ...pulumi.ResourceOption) (*AlertCondition, error)

NewAlertCondition registers a new resource with the given unique name, arguments, and options.

type AlertConditionArgs

type AlertConditionArgs struct {
	// Whether or not this condition is enabled.
	Enabled pulumi.BoolPtrInput
	// The plugin component IDs to target.
	Entities pulumi.IntArrayInput
	// The plugin metric to evaluate.
	Metric pulumi.StringInput
	// The metric description.
	MetricDescription pulumi.StringInput
	// The title of the condition. Must be between 1 and 64 characters, inclusive.
	Name pulumi.StringPtrInput
	// The GUID of the plugin which produces the metric.
	PluginGuid pulumi.StringInput
	// The ID of the installed plugin instance which produces the metric.
	PluginId pulumi.StringInput
	// The ID of the policy where this condition should be used.
	PolicyId pulumi.IntInput
	// Runbook URL to display in notifications.
	RunbookUrl pulumi.StringPtrInput
	// A list of terms for this condition. See Terms below for details.
	Terms AlertConditionTermArrayInput
	// The value function to apply to the metric data.  One of `min`, `max`, `average`, `sampleSize`, `total`, or `percent`.
	ValueFunction pulumi.StringInput
}

The set of arguments for constructing a AlertCondition resource.

func (AlertConditionArgs) ElementType

func (AlertConditionArgs) ElementType() reflect.Type

type AlertConditionState

type AlertConditionState struct {
	// Whether or not this condition is enabled.
	Enabled pulumi.BoolPtrInput
	// The plugin component IDs to target.
	Entities pulumi.IntArrayInput
	// The plugin metric to evaluate.
	Metric pulumi.StringPtrInput
	// The metric description.
	MetricDescription pulumi.StringPtrInput
	// The title of the condition. Must be between 1 and 64 characters, inclusive.
	Name pulumi.StringPtrInput
	// The GUID of the plugin which produces the metric.
	PluginGuid pulumi.StringPtrInput
	// The ID of the installed plugin instance which produces the metric.
	PluginId pulumi.StringPtrInput
	// The ID of the policy where this condition should be used.
	PolicyId pulumi.IntPtrInput
	// Runbook URL to display in notifications.
	RunbookUrl pulumi.StringPtrInput
	// A list of terms for this condition. See Terms below for details.
	Terms AlertConditionTermArrayInput
	// The value function to apply to the metric data.  One of `min`, `max`, `average`, `sampleSize`, `total`, or `percent`.
	ValueFunction pulumi.StringPtrInput
}

func (AlertConditionState) ElementType

func (AlertConditionState) ElementType() reflect.Type

type AlertConditionTerm

type AlertConditionTerm struct {
	Duration     int     `pulumi:"duration"`
	Operator     *string `pulumi:"operator"`
	Priority     *string `pulumi:"priority"`
	Threshold    float64 `pulumi:"threshold"`
	TimeFunction string  `pulumi:"timeFunction"`
}

type AlertConditionTermArgs

type AlertConditionTermArgs struct {
	Duration     pulumi.IntInput       `pulumi:"duration"`
	Operator     pulumi.StringPtrInput `pulumi:"operator"`
	Priority     pulumi.StringPtrInput `pulumi:"priority"`
	Threshold    pulumi.Float64Input   `pulumi:"threshold"`
	TimeFunction pulumi.StringInput    `pulumi:"timeFunction"`
}

func (AlertConditionTermArgs) ElementType

func (AlertConditionTermArgs) ElementType() reflect.Type

func (AlertConditionTermArgs) ToAlertConditionTermOutput

func (i AlertConditionTermArgs) ToAlertConditionTermOutput() AlertConditionTermOutput

func (AlertConditionTermArgs) ToAlertConditionTermOutputWithContext

func (i AlertConditionTermArgs) ToAlertConditionTermOutputWithContext(ctx context.Context) AlertConditionTermOutput

type AlertConditionTermArray

type AlertConditionTermArray []AlertConditionTermInput

func (AlertConditionTermArray) ElementType

func (AlertConditionTermArray) ElementType() reflect.Type

func (AlertConditionTermArray) ToAlertConditionTermArrayOutput

func (i AlertConditionTermArray) ToAlertConditionTermArrayOutput() AlertConditionTermArrayOutput

func (AlertConditionTermArray) ToAlertConditionTermArrayOutputWithContext

func (i AlertConditionTermArray) ToAlertConditionTermArrayOutputWithContext(ctx context.Context) AlertConditionTermArrayOutput

type AlertConditionTermArrayInput

type AlertConditionTermArrayInput interface {
	pulumi.Input

	ToAlertConditionTermArrayOutput() AlertConditionTermArrayOutput
	ToAlertConditionTermArrayOutputWithContext(context.Context) AlertConditionTermArrayOutput
}

AlertConditionTermArrayInput is an input type that accepts AlertConditionTermArray and AlertConditionTermArrayOutput values. You can construct a concrete instance of `AlertConditionTermArrayInput` via:

AlertConditionTermArray{ AlertConditionTermArgs{...} }

type AlertConditionTermArrayOutput

type AlertConditionTermArrayOutput struct{ *pulumi.OutputState }

func (AlertConditionTermArrayOutput) ElementType

func (AlertConditionTermArrayOutput) Index

func (AlertConditionTermArrayOutput) ToAlertConditionTermArrayOutput

func (o AlertConditionTermArrayOutput) ToAlertConditionTermArrayOutput() AlertConditionTermArrayOutput

func (AlertConditionTermArrayOutput) ToAlertConditionTermArrayOutputWithContext

func (o AlertConditionTermArrayOutput) ToAlertConditionTermArrayOutputWithContext(ctx context.Context) AlertConditionTermArrayOutput

type AlertConditionTermInput

type AlertConditionTermInput interface {
	pulumi.Input

	ToAlertConditionTermOutput() AlertConditionTermOutput
	ToAlertConditionTermOutputWithContext(context.Context) AlertConditionTermOutput
}

AlertConditionTermInput is an input type that accepts AlertConditionTermArgs and AlertConditionTermOutput values. You can construct a concrete instance of `AlertConditionTermInput` via:

AlertConditionTermArgs{...}

type AlertConditionTermOutput

type AlertConditionTermOutput struct{ *pulumi.OutputState }

func (AlertConditionTermOutput) Duration

func (AlertConditionTermOutput) ElementType

func (AlertConditionTermOutput) ElementType() reflect.Type

func (AlertConditionTermOutput) Operator

func (AlertConditionTermOutput) Priority

func (AlertConditionTermOutput) Threshold

func (AlertConditionTermOutput) TimeFunction

func (o AlertConditionTermOutput) TimeFunction() pulumi.StringOutput

func (AlertConditionTermOutput) ToAlertConditionTermOutput

func (o AlertConditionTermOutput) ToAlertConditionTermOutput() AlertConditionTermOutput

func (AlertConditionTermOutput) ToAlertConditionTermOutputWithContext

func (o AlertConditionTermOutput) ToAlertConditionTermOutputWithContext(ctx context.Context) AlertConditionTermOutput

type ApplicationSettings added in v2.3.0

type ApplicationSettings struct {
	pulumi.CustomResourceState

	// The appex threshold for the New Relic application.
	AppApdexThreshold pulumi.Float64Output `pulumi:"appApdexThreshold"`
	// Enable or disable real user monitoring for the New Relic application.
	EnableRealUserMonitoring pulumi.BoolOutput `pulumi:"enableRealUserMonitoring"`
	// The user's apdex threshold for the New Relic application.
	EndUserApdexThreshold pulumi.Float64Output `pulumi:"endUserApdexThreshold"`
	// The name of the application in New Relic APM.
	Name pulumi.StringOutput `pulumi:"name"`
}

> **NOTE:** Applications are not created by this resource, but are created by a reporting agent.

Use this resource to manage configuration for an application that already exists in New Relic.

## Notes

> **NOTE:** Applications that have reported data in the last twelve hours cannot be deleted.

func GetApplicationSettings added in v2.3.0

func GetApplicationSettings(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ApplicationSettingsState, opts ...pulumi.ResourceOption) (*ApplicationSettings, error)

GetApplicationSettings gets an existing ApplicationSettings resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewApplicationSettings added in v2.3.0

func NewApplicationSettings(ctx *pulumi.Context,
	name string, args *ApplicationSettingsArgs, opts ...pulumi.ResourceOption) (*ApplicationSettings, error)

NewApplicationSettings registers a new resource with the given unique name, arguments, and options.

type ApplicationSettingsArgs added in v2.3.0

type ApplicationSettingsArgs struct {
	// The appex threshold for the New Relic application.
	AppApdexThreshold pulumi.Float64Input
	// Enable or disable real user monitoring for the New Relic application.
	EnableRealUserMonitoring pulumi.BoolInput
	// The user's apdex threshold for the New Relic application.
	EndUserApdexThreshold pulumi.Float64Input
	// The name of the application in New Relic APM.
	Name pulumi.StringPtrInput
}

The set of arguments for constructing a ApplicationSettings resource.

func (ApplicationSettingsArgs) ElementType added in v2.3.0

func (ApplicationSettingsArgs) ElementType() reflect.Type

type ApplicationSettingsState added in v2.3.0

type ApplicationSettingsState struct {
	// The appex threshold for the New Relic application.
	AppApdexThreshold pulumi.Float64PtrInput
	// Enable or disable real user monitoring for the New Relic application.
	EnableRealUserMonitoring pulumi.BoolPtrInput
	// The user's apdex threshold for the New Relic application.
	EndUserApdexThreshold pulumi.Float64PtrInput
	// The name of the application in New Relic APM.
	Name pulumi.StringPtrInput
}

func (ApplicationSettingsState) ElementType added in v2.3.0

func (ApplicationSettingsState) ElementType() reflect.Type

type GetPluginArgs

type GetPluginArgs struct {
	// The GUID of the plugin in New Relic.
	Guid string `pulumi:"guid"`
}

A collection of arguments for invoking getPlugin.

type GetPluginComponentArgs

type GetPluginComponentArgs struct {
	// The name of the plugin component.
	Name string `pulumi:"name"`
	// The ID of the plugin instance this component belongs to.
	PluginId int `pulumi:"pluginId"`
}

A collection of arguments for invoking getPluginComponent.

type GetPluginComponentResult

type GetPluginComponentResult struct {
	// The health status of the plugin component.
	HealthStatus string `pulumi:"healthStatus"`
	// The ID of the plugin component.
	Id       string `pulumi:"id"`
	Name     string `pulumi:"name"`
	PluginId int    `pulumi:"pluginId"`
}

A collection of values returned by getPluginComponent.

type GetPluginResult

type GetPluginResult struct {
	Guid string `pulumi:"guid"`
	// The ID of the installed plugin instance.
	Id string `pulumi:"id"`
}

A collection of values returned by getPlugin.

func GetPlugin

func GetPlugin(ctx *pulumi.Context, args *GetPluginArgs, opts ...pulumi.InvokeOption) (*GetPluginResult, error)

type Workload added in v2.2.0

type Workload struct {
	pulumi.CustomResourceState

	// The New Relic account ID where you want to create the workload.
	AccountId pulumi.IntOutput `pulumi:"accountId"`
	// The composite query used to compose a dynamic workload.
	CompositeEntitySearchQuery pulumi.StringOutput `pulumi:"compositeEntitySearchQuery"`
	// A list of entity GUIDs manually assigned to this workload.
	EntityGuids pulumi.StringArrayOutput `pulumi:"entityGuids"`
	// A list of search queries that define a dynamic workload.  See Nested entitySearchQuery blocks below for details.
	EntitySearchQueries WorkloadEntitySearchQueryArrayOutput `pulumi:"entitySearchQueries"`
	// The unique entity identifier of the workload in New Relic.
	Guid pulumi.StringOutput `pulumi:"guid"`
	// The workload's name.
	Name pulumi.StringOutput `pulumi:"name"`
	// The URL of the workload.
	Permalink pulumi.StringOutput `pulumi:"permalink"`
	// A list of account IDs that will be used to get entities from.
	ScopeAccountIds pulumi.IntArrayOutput `pulumi:"scopeAccountIds"`
	// The unique entity identifier of the workload.
	WorkloadId pulumi.IntOutput `pulumi:"workloadId"`
}

Use this resource to create, update, and delete a New Relic One workload.

A New Relic Personal API key is required to provision this resource. Set the `providerApiKey` attribute in the `provider` block or the `NEWRELIC_PERSONAL_API_KEY` environment variable with your Personal API key,

func GetWorkload added in v2.2.0

func GetWorkload(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *WorkloadState, opts ...pulumi.ResourceOption) (*Workload, error)

GetWorkload gets an existing Workload resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewWorkload added in v2.2.0

func NewWorkload(ctx *pulumi.Context,
	name string, args *WorkloadArgs, opts ...pulumi.ResourceOption) (*Workload, error)

NewWorkload registers a new resource with the given unique name, arguments, and options.

type WorkloadArgs added in v2.2.0

type WorkloadArgs struct {
	// The New Relic account ID where you want to create the workload.
	AccountId pulumi.IntInput
	// A list of entity GUIDs manually assigned to this workload.
	EntityGuids pulumi.StringArrayInput
	// A list of search queries that define a dynamic workload.  See Nested entitySearchQuery blocks below for details.
	EntitySearchQueries WorkloadEntitySearchQueryArrayInput
	// The workload's name.
	Name pulumi.StringPtrInput
	// A list of account IDs that will be used to get entities from.
	ScopeAccountIds pulumi.IntArrayInput
}

The set of arguments for constructing a Workload resource.

func (WorkloadArgs) ElementType added in v2.2.0

func (WorkloadArgs) ElementType() reflect.Type

type WorkloadEntitySearchQuery added in v2.2.0

type WorkloadEntitySearchQuery struct {
	// The query.
	Query string `pulumi:"query"`
}

type WorkloadEntitySearchQueryArgs added in v2.2.0

type WorkloadEntitySearchQueryArgs struct {
	// The query.
	Query pulumi.StringInput `pulumi:"query"`
}

func (WorkloadEntitySearchQueryArgs) ElementType added in v2.2.0

func (WorkloadEntitySearchQueryArgs) ToWorkloadEntitySearchQueryOutput added in v2.2.0

func (i WorkloadEntitySearchQueryArgs) ToWorkloadEntitySearchQueryOutput() WorkloadEntitySearchQueryOutput

func (WorkloadEntitySearchQueryArgs) ToWorkloadEntitySearchQueryOutputWithContext added in v2.2.0

func (i WorkloadEntitySearchQueryArgs) ToWorkloadEntitySearchQueryOutputWithContext(ctx context.Context) WorkloadEntitySearchQueryOutput

type WorkloadEntitySearchQueryArray added in v2.2.0

type WorkloadEntitySearchQueryArray []WorkloadEntitySearchQueryInput

func (WorkloadEntitySearchQueryArray) ElementType added in v2.2.0

func (WorkloadEntitySearchQueryArray) ToWorkloadEntitySearchQueryArrayOutput added in v2.2.0

func (i WorkloadEntitySearchQueryArray) ToWorkloadEntitySearchQueryArrayOutput() WorkloadEntitySearchQueryArrayOutput

func (WorkloadEntitySearchQueryArray) ToWorkloadEntitySearchQueryArrayOutputWithContext added in v2.2.0

func (i WorkloadEntitySearchQueryArray) ToWorkloadEntitySearchQueryArrayOutputWithContext(ctx context.Context) WorkloadEntitySearchQueryArrayOutput

type WorkloadEntitySearchQueryArrayInput added in v2.2.0

type WorkloadEntitySearchQueryArrayInput interface {
	pulumi.Input

	ToWorkloadEntitySearchQueryArrayOutput() WorkloadEntitySearchQueryArrayOutput
	ToWorkloadEntitySearchQueryArrayOutputWithContext(context.Context) WorkloadEntitySearchQueryArrayOutput
}

WorkloadEntitySearchQueryArrayInput is an input type that accepts WorkloadEntitySearchQueryArray and WorkloadEntitySearchQueryArrayOutput values. You can construct a concrete instance of `WorkloadEntitySearchQueryArrayInput` via:

WorkloadEntitySearchQueryArray{ WorkloadEntitySearchQueryArgs{...} }

type WorkloadEntitySearchQueryArrayOutput added in v2.2.0

type WorkloadEntitySearchQueryArrayOutput struct{ *pulumi.OutputState }

func (WorkloadEntitySearchQueryArrayOutput) ElementType added in v2.2.0

func (WorkloadEntitySearchQueryArrayOutput) Index added in v2.2.0

func (WorkloadEntitySearchQueryArrayOutput) ToWorkloadEntitySearchQueryArrayOutput added in v2.2.0

func (o WorkloadEntitySearchQueryArrayOutput) ToWorkloadEntitySearchQueryArrayOutput() WorkloadEntitySearchQueryArrayOutput

func (WorkloadEntitySearchQueryArrayOutput) ToWorkloadEntitySearchQueryArrayOutputWithContext added in v2.2.0

func (o WorkloadEntitySearchQueryArrayOutput) ToWorkloadEntitySearchQueryArrayOutputWithContext(ctx context.Context) WorkloadEntitySearchQueryArrayOutput

type WorkloadEntitySearchQueryInput added in v2.2.0

type WorkloadEntitySearchQueryInput interface {
	pulumi.Input

	ToWorkloadEntitySearchQueryOutput() WorkloadEntitySearchQueryOutput
	ToWorkloadEntitySearchQueryOutputWithContext(context.Context) WorkloadEntitySearchQueryOutput
}

WorkloadEntitySearchQueryInput is an input type that accepts WorkloadEntitySearchQueryArgs and WorkloadEntitySearchQueryOutput values. You can construct a concrete instance of `WorkloadEntitySearchQueryInput` via:

WorkloadEntitySearchQueryArgs{...}

type WorkloadEntitySearchQueryOutput added in v2.2.0

type WorkloadEntitySearchQueryOutput struct{ *pulumi.OutputState }

func (WorkloadEntitySearchQueryOutput) ElementType added in v2.2.0

func (WorkloadEntitySearchQueryOutput) Query added in v2.2.0

The query.

func (WorkloadEntitySearchQueryOutput) ToWorkloadEntitySearchQueryOutput added in v2.2.0

func (o WorkloadEntitySearchQueryOutput) ToWorkloadEntitySearchQueryOutput() WorkloadEntitySearchQueryOutput

func (WorkloadEntitySearchQueryOutput) ToWorkloadEntitySearchQueryOutputWithContext added in v2.2.0

func (o WorkloadEntitySearchQueryOutput) ToWorkloadEntitySearchQueryOutputWithContext(ctx context.Context) WorkloadEntitySearchQueryOutput

type WorkloadState added in v2.2.0

type WorkloadState struct {
	// The New Relic account ID where you want to create the workload.
	AccountId pulumi.IntPtrInput
	// The composite query used to compose a dynamic workload.
	CompositeEntitySearchQuery pulumi.StringPtrInput
	// A list of entity GUIDs manually assigned to this workload.
	EntityGuids pulumi.StringArrayInput
	// A list of search queries that define a dynamic workload.  See Nested entitySearchQuery blocks below for details.
	EntitySearchQueries WorkloadEntitySearchQueryArrayInput
	// The unique entity identifier of the workload in New Relic.
	Guid pulumi.StringPtrInput
	// The workload's name.
	Name pulumi.StringPtrInput
	// The URL of the workload.
	Permalink pulumi.StringPtrInput
	// A list of account IDs that will be used to get entities from.
	ScopeAccountIds pulumi.IntArrayInput
	// The unique entity identifier of the workload.
	WorkloadId pulumi.IntPtrInput
}

func (WorkloadState) ElementType added in v2.2.0

func (WorkloadState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL