Documentation ¶
Overview ¶
A Pulumi package for creating and managing New Relic resources.
Index ¶
- type AlertChannel
- type AlertChannelArgs
- type AlertChannelConfig
- type AlertChannelConfigArgs
- func (AlertChannelConfigArgs) ElementType() reflect.Type
- func (i AlertChannelConfigArgs) ToAlertChannelConfigOutput() AlertChannelConfigOutput
- func (i AlertChannelConfigArgs) ToAlertChannelConfigOutputWithContext(ctx context.Context) AlertChannelConfigOutput
- func (i AlertChannelConfigArgs) ToAlertChannelConfigPtrOutput() AlertChannelConfigPtrOutput
- func (i AlertChannelConfigArgs) ToAlertChannelConfigPtrOutputWithContext(ctx context.Context) AlertChannelConfigPtrOutput
- type AlertChannelConfigInput
- type AlertChannelConfigOutput
- func (o AlertChannelConfigOutput) ApiKey() pulumi.StringPtrOutput
- func (o AlertChannelConfigOutput) AuthPassword() pulumi.StringPtrOutput
- func (o AlertChannelConfigOutput) AuthType() pulumi.StringPtrOutput
- func (o AlertChannelConfigOutput) AuthUsername() pulumi.StringPtrOutput
- func (o AlertChannelConfigOutput) BaseUrl() pulumi.StringPtrOutput
- func (o AlertChannelConfigOutput) Channel() pulumi.StringPtrOutput
- func (AlertChannelConfigOutput) ElementType() reflect.Type
- func (o AlertChannelConfigOutput) Headers() pulumi.StringMapOutput
- func (o AlertChannelConfigOutput) HeadersString() pulumi.StringPtrOutput
- func (o AlertChannelConfigOutput) IncludeJsonAttachment() pulumi.StringPtrOutput
- func (o AlertChannelConfigOutput) Key() pulumi.StringPtrOutput
- func (o AlertChannelConfigOutput) Payload() pulumi.StringMapOutput
- func (o AlertChannelConfigOutput) PayloadString() pulumi.StringPtrOutput
- func (o AlertChannelConfigOutput) PayloadType() pulumi.StringPtrOutput
- func (o AlertChannelConfigOutput) Recipients() pulumi.StringPtrOutput
- func (o AlertChannelConfigOutput) Region() pulumi.StringPtrOutput
- func (o AlertChannelConfigOutput) RouteKey() pulumi.StringPtrOutput
- func (o AlertChannelConfigOutput) ServiceKey() pulumi.StringPtrOutput
- func (o AlertChannelConfigOutput) Tags() pulumi.StringPtrOutput
- func (o AlertChannelConfigOutput) Teams() pulumi.StringPtrOutput
- func (o AlertChannelConfigOutput) ToAlertChannelConfigOutput() AlertChannelConfigOutput
- func (o AlertChannelConfigOutput) ToAlertChannelConfigOutputWithContext(ctx context.Context) AlertChannelConfigOutput
- func (o AlertChannelConfigOutput) ToAlertChannelConfigPtrOutput() AlertChannelConfigPtrOutput
- func (o AlertChannelConfigOutput) ToAlertChannelConfigPtrOutputWithContext(ctx context.Context) AlertChannelConfigPtrOutput
- func (o AlertChannelConfigOutput) Url() pulumi.StringPtrOutput
- func (o AlertChannelConfigOutput) UserId() pulumi.StringPtrOutput
- type AlertChannelConfigPtrInput
- type AlertChannelConfigPtrOutput
- func (o AlertChannelConfigPtrOutput) ApiKey() pulumi.StringPtrOutput
- func (o AlertChannelConfigPtrOutput) AuthPassword() pulumi.StringPtrOutput
- func (o AlertChannelConfigPtrOutput) AuthType() pulumi.StringPtrOutput
- func (o AlertChannelConfigPtrOutput) AuthUsername() pulumi.StringPtrOutput
- func (o AlertChannelConfigPtrOutput) BaseUrl() pulumi.StringPtrOutput
- func (o AlertChannelConfigPtrOutput) Channel() pulumi.StringPtrOutput
- func (o AlertChannelConfigPtrOutput) Elem() AlertChannelConfigOutput
- func (AlertChannelConfigPtrOutput) ElementType() reflect.Type
- func (o AlertChannelConfigPtrOutput) Headers() pulumi.StringMapOutput
- func (o AlertChannelConfigPtrOutput) HeadersString() pulumi.StringPtrOutput
- func (o AlertChannelConfigPtrOutput) IncludeJsonAttachment() pulumi.StringPtrOutput
- func (o AlertChannelConfigPtrOutput) Key() pulumi.StringPtrOutput
- func (o AlertChannelConfigPtrOutput) Payload() pulumi.StringMapOutput
- func (o AlertChannelConfigPtrOutput) PayloadString() pulumi.StringPtrOutput
- func (o AlertChannelConfigPtrOutput) PayloadType() pulumi.StringPtrOutput
- func (o AlertChannelConfigPtrOutput) Recipients() pulumi.StringPtrOutput
- func (o AlertChannelConfigPtrOutput) Region() pulumi.StringPtrOutput
- func (o AlertChannelConfigPtrOutput) RouteKey() pulumi.StringPtrOutput
- func (o AlertChannelConfigPtrOutput) ServiceKey() pulumi.StringPtrOutput
- func (o AlertChannelConfigPtrOutput) Tags() pulumi.StringPtrOutput
- func (o AlertChannelConfigPtrOutput) Teams() pulumi.StringPtrOutput
- func (o AlertChannelConfigPtrOutput) ToAlertChannelConfigPtrOutput() AlertChannelConfigPtrOutput
- func (o AlertChannelConfigPtrOutput) ToAlertChannelConfigPtrOutputWithContext(ctx context.Context) AlertChannelConfigPtrOutput
- func (o AlertChannelConfigPtrOutput) Url() pulumi.StringPtrOutput
- func (o AlertChannelConfigPtrOutput) UserId() pulumi.StringPtrOutput
- type AlertChannelState
- type AlertCondition
- type AlertConditionArgs
- type AlertConditionState
- type AlertConditionTerm
- type AlertConditionTermArgs
- type AlertConditionTermArray
- type AlertConditionTermArrayInput
- type AlertConditionTermArrayOutput
- func (AlertConditionTermArrayOutput) ElementType() reflect.Type
- func (o AlertConditionTermArrayOutput) Index(i pulumi.IntInput) AlertConditionTermOutput
- func (o AlertConditionTermArrayOutput) ToAlertConditionTermArrayOutput() AlertConditionTermArrayOutput
- func (o AlertConditionTermArrayOutput) ToAlertConditionTermArrayOutputWithContext(ctx context.Context) AlertConditionTermArrayOutput
- type AlertConditionTermInput
- type AlertConditionTermOutput
- func (o AlertConditionTermOutput) Duration() pulumi.IntOutput
- func (AlertConditionTermOutput) ElementType() reflect.Type
- func (o AlertConditionTermOutput) Operator() pulumi.StringPtrOutput
- func (o AlertConditionTermOutput) Priority() pulumi.StringPtrOutput
- func (o AlertConditionTermOutput) Threshold() pulumi.Float64Output
- func (o AlertConditionTermOutput) TimeFunction() pulumi.StringOutput
- func (o AlertConditionTermOutput) ToAlertConditionTermOutput() AlertConditionTermOutput
- func (o AlertConditionTermOutput) ToAlertConditionTermOutputWithContext(ctx context.Context) AlertConditionTermOutput
- type AlertMutingRule
- type AlertMutingRuleArgs
- type AlertMutingRuleCondition
- type AlertMutingRuleConditionArgs
- func (AlertMutingRuleConditionArgs) ElementType() reflect.Type
- func (i AlertMutingRuleConditionArgs) ToAlertMutingRuleConditionOutput() AlertMutingRuleConditionOutput
- func (i AlertMutingRuleConditionArgs) ToAlertMutingRuleConditionOutputWithContext(ctx context.Context) AlertMutingRuleConditionOutput
- func (i AlertMutingRuleConditionArgs) ToAlertMutingRuleConditionPtrOutput() AlertMutingRuleConditionPtrOutput
- func (i AlertMutingRuleConditionArgs) ToAlertMutingRuleConditionPtrOutputWithContext(ctx context.Context) AlertMutingRuleConditionPtrOutput
- type AlertMutingRuleConditionCondition
- type AlertMutingRuleConditionConditionArgs
- func (AlertMutingRuleConditionConditionArgs) ElementType() reflect.Type
- func (i AlertMutingRuleConditionConditionArgs) ToAlertMutingRuleConditionConditionOutput() AlertMutingRuleConditionConditionOutput
- func (i AlertMutingRuleConditionConditionArgs) ToAlertMutingRuleConditionConditionOutputWithContext(ctx context.Context) AlertMutingRuleConditionConditionOutput
- type AlertMutingRuleConditionConditionArray
- func (AlertMutingRuleConditionConditionArray) ElementType() reflect.Type
- func (i AlertMutingRuleConditionConditionArray) ToAlertMutingRuleConditionConditionArrayOutput() AlertMutingRuleConditionConditionArrayOutput
- func (i AlertMutingRuleConditionConditionArray) ToAlertMutingRuleConditionConditionArrayOutputWithContext(ctx context.Context) AlertMutingRuleConditionConditionArrayOutput
- type AlertMutingRuleConditionConditionArrayInput
- type AlertMutingRuleConditionConditionArrayOutput
- func (AlertMutingRuleConditionConditionArrayOutput) ElementType() reflect.Type
- func (o AlertMutingRuleConditionConditionArrayOutput) Index(i pulumi.IntInput) AlertMutingRuleConditionConditionOutput
- func (o AlertMutingRuleConditionConditionArrayOutput) ToAlertMutingRuleConditionConditionArrayOutput() AlertMutingRuleConditionConditionArrayOutput
- func (o AlertMutingRuleConditionConditionArrayOutput) ToAlertMutingRuleConditionConditionArrayOutputWithContext(ctx context.Context) AlertMutingRuleConditionConditionArrayOutput
- type AlertMutingRuleConditionConditionInput
- type AlertMutingRuleConditionConditionOutput
- func (o AlertMutingRuleConditionConditionOutput) Attribute() pulumi.StringOutput
- func (AlertMutingRuleConditionConditionOutput) ElementType() reflect.Type
- func (o AlertMutingRuleConditionConditionOutput) Operator() pulumi.StringOutput
- func (o AlertMutingRuleConditionConditionOutput) ToAlertMutingRuleConditionConditionOutput() AlertMutingRuleConditionConditionOutput
- func (o AlertMutingRuleConditionConditionOutput) ToAlertMutingRuleConditionConditionOutputWithContext(ctx context.Context) AlertMutingRuleConditionConditionOutput
- func (o AlertMutingRuleConditionConditionOutput) Values() pulumi.StringArrayOutput
- type AlertMutingRuleConditionInput
- type AlertMutingRuleConditionOutput
- func (o AlertMutingRuleConditionOutput) Conditions() AlertMutingRuleConditionConditionArrayOutput
- func (AlertMutingRuleConditionOutput) ElementType() reflect.Type
- func (o AlertMutingRuleConditionOutput) Operator() pulumi.StringOutput
- func (o AlertMutingRuleConditionOutput) ToAlertMutingRuleConditionOutput() AlertMutingRuleConditionOutput
- func (o AlertMutingRuleConditionOutput) ToAlertMutingRuleConditionOutputWithContext(ctx context.Context) AlertMutingRuleConditionOutput
- func (o AlertMutingRuleConditionOutput) ToAlertMutingRuleConditionPtrOutput() AlertMutingRuleConditionPtrOutput
- func (o AlertMutingRuleConditionOutput) ToAlertMutingRuleConditionPtrOutputWithContext(ctx context.Context) AlertMutingRuleConditionPtrOutput
- type AlertMutingRuleConditionPtrInput
- type AlertMutingRuleConditionPtrOutput
- func (o AlertMutingRuleConditionPtrOutput) Conditions() AlertMutingRuleConditionConditionArrayOutput
- func (o AlertMutingRuleConditionPtrOutput) Elem() AlertMutingRuleConditionOutput
- func (AlertMutingRuleConditionPtrOutput) ElementType() reflect.Type
- func (o AlertMutingRuleConditionPtrOutput) Operator() pulumi.StringPtrOutput
- func (o AlertMutingRuleConditionPtrOutput) ToAlertMutingRuleConditionPtrOutput() AlertMutingRuleConditionPtrOutput
- func (o AlertMutingRuleConditionPtrOutput) ToAlertMutingRuleConditionPtrOutputWithContext(ctx context.Context) AlertMutingRuleConditionPtrOutput
- type AlertMutingRuleState
- type AlertPolicy
- type AlertPolicyArgs
- type AlertPolicyChannel
- type AlertPolicyChannelArgs
- type AlertPolicyChannelState
- type AlertPolicyState
- type ApiAccessKey
- type ApiAccessKeyArgs
- type ApiAccessKeyState
- type Dashboard
- type DashboardArgs
- type DashboardFilter
- type DashboardFilterArgs
- func (DashboardFilterArgs) ElementType() reflect.Type
- func (i DashboardFilterArgs) ToDashboardFilterOutput() DashboardFilterOutput
- func (i DashboardFilterArgs) ToDashboardFilterOutputWithContext(ctx context.Context) DashboardFilterOutput
- func (i DashboardFilterArgs) ToDashboardFilterPtrOutput() DashboardFilterPtrOutput
- func (i DashboardFilterArgs) ToDashboardFilterPtrOutputWithContext(ctx context.Context) DashboardFilterPtrOutput
- type DashboardFilterInput
- type DashboardFilterOutput
- func (o DashboardFilterOutput) Attributes() pulumi.StringArrayOutput
- func (DashboardFilterOutput) ElementType() reflect.Type
- func (o DashboardFilterOutput) EventTypes() pulumi.StringArrayOutput
- func (o DashboardFilterOutput) ToDashboardFilterOutput() DashboardFilterOutput
- func (o DashboardFilterOutput) ToDashboardFilterOutputWithContext(ctx context.Context) DashboardFilterOutput
- func (o DashboardFilterOutput) ToDashboardFilterPtrOutput() DashboardFilterPtrOutput
- func (o DashboardFilterOutput) ToDashboardFilterPtrOutputWithContext(ctx context.Context) DashboardFilterPtrOutput
- type DashboardFilterPtrInput
- type DashboardFilterPtrOutput
- func (o DashboardFilterPtrOutput) Attributes() pulumi.StringArrayOutput
- func (o DashboardFilterPtrOutput) Elem() DashboardFilterOutput
- func (DashboardFilterPtrOutput) ElementType() reflect.Type
- func (o DashboardFilterPtrOutput) EventTypes() pulumi.StringArrayOutput
- func (o DashboardFilterPtrOutput) ToDashboardFilterPtrOutput() DashboardFilterPtrOutput
- func (o DashboardFilterPtrOutput) ToDashboardFilterPtrOutputWithContext(ctx context.Context) DashboardFilterPtrOutput
- type DashboardState
- type DashboardWidget
- type DashboardWidgetArgs
- type DashboardWidgetArray
- type DashboardWidgetArrayInput
- type DashboardWidgetArrayOutput
- func (DashboardWidgetArrayOutput) ElementType() reflect.Type
- func (o DashboardWidgetArrayOutput) Index(i pulumi.IntInput) DashboardWidgetOutput
- func (o DashboardWidgetArrayOutput) ToDashboardWidgetArrayOutput() DashboardWidgetArrayOutput
- func (o DashboardWidgetArrayOutput) ToDashboardWidgetArrayOutputWithContext(ctx context.Context) DashboardWidgetArrayOutput
- type DashboardWidgetCompareWith
- type DashboardWidgetCompareWithArgs
- func (DashboardWidgetCompareWithArgs) ElementType() reflect.Type
- func (i DashboardWidgetCompareWithArgs) ToDashboardWidgetCompareWithOutput() DashboardWidgetCompareWithOutput
- func (i DashboardWidgetCompareWithArgs) ToDashboardWidgetCompareWithOutputWithContext(ctx context.Context) DashboardWidgetCompareWithOutput
- type DashboardWidgetCompareWithArray
- func (DashboardWidgetCompareWithArray) ElementType() reflect.Type
- func (i DashboardWidgetCompareWithArray) ToDashboardWidgetCompareWithArrayOutput() DashboardWidgetCompareWithArrayOutput
- func (i DashboardWidgetCompareWithArray) ToDashboardWidgetCompareWithArrayOutputWithContext(ctx context.Context) DashboardWidgetCompareWithArrayOutput
- type DashboardWidgetCompareWithArrayInput
- type DashboardWidgetCompareWithArrayOutput
- func (DashboardWidgetCompareWithArrayOutput) ElementType() reflect.Type
- func (o DashboardWidgetCompareWithArrayOutput) Index(i pulumi.IntInput) DashboardWidgetCompareWithOutput
- func (o DashboardWidgetCompareWithArrayOutput) ToDashboardWidgetCompareWithArrayOutput() DashboardWidgetCompareWithArrayOutput
- func (o DashboardWidgetCompareWithArrayOutput) ToDashboardWidgetCompareWithArrayOutputWithContext(ctx context.Context) DashboardWidgetCompareWithArrayOutput
- type DashboardWidgetCompareWithInput
- type DashboardWidgetCompareWithOutput
- func (DashboardWidgetCompareWithOutput) ElementType() reflect.Type
- func (o DashboardWidgetCompareWithOutput) OffsetDuration() pulumi.StringOutput
- func (o DashboardWidgetCompareWithOutput) Presentation() DashboardWidgetCompareWithPresentationOutput
- func (o DashboardWidgetCompareWithOutput) ToDashboardWidgetCompareWithOutput() DashboardWidgetCompareWithOutput
- func (o DashboardWidgetCompareWithOutput) ToDashboardWidgetCompareWithOutputWithContext(ctx context.Context) DashboardWidgetCompareWithOutput
- type DashboardWidgetCompareWithPresentation
- type DashboardWidgetCompareWithPresentationArgs
- func (DashboardWidgetCompareWithPresentationArgs) ElementType() reflect.Type
- func (i DashboardWidgetCompareWithPresentationArgs) ToDashboardWidgetCompareWithPresentationOutput() DashboardWidgetCompareWithPresentationOutput
- func (i DashboardWidgetCompareWithPresentationArgs) ToDashboardWidgetCompareWithPresentationOutputWithContext(ctx context.Context) DashboardWidgetCompareWithPresentationOutput
- type DashboardWidgetCompareWithPresentationInput
- type DashboardWidgetCompareWithPresentationOutput
- func (o DashboardWidgetCompareWithPresentationOutput) Color() pulumi.StringOutput
- func (DashboardWidgetCompareWithPresentationOutput) ElementType() reflect.Type
- func (o DashboardWidgetCompareWithPresentationOutput) Name() pulumi.StringOutput
- func (o DashboardWidgetCompareWithPresentationOutput) ToDashboardWidgetCompareWithPresentationOutput() DashboardWidgetCompareWithPresentationOutput
- func (o DashboardWidgetCompareWithPresentationOutput) ToDashboardWidgetCompareWithPresentationOutputWithContext(ctx context.Context) DashboardWidgetCompareWithPresentationOutput
- type DashboardWidgetInput
- type DashboardWidgetMetric
- type DashboardWidgetMetricArgs
- type DashboardWidgetMetricArray
- func (DashboardWidgetMetricArray) ElementType() reflect.Type
- func (i DashboardWidgetMetricArray) ToDashboardWidgetMetricArrayOutput() DashboardWidgetMetricArrayOutput
- func (i DashboardWidgetMetricArray) ToDashboardWidgetMetricArrayOutputWithContext(ctx context.Context) DashboardWidgetMetricArrayOutput
- type DashboardWidgetMetricArrayInput
- type DashboardWidgetMetricArrayOutput
- func (DashboardWidgetMetricArrayOutput) ElementType() reflect.Type
- func (o DashboardWidgetMetricArrayOutput) Index(i pulumi.IntInput) DashboardWidgetMetricOutput
- func (o DashboardWidgetMetricArrayOutput) ToDashboardWidgetMetricArrayOutput() DashboardWidgetMetricArrayOutput
- func (o DashboardWidgetMetricArrayOutput) ToDashboardWidgetMetricArrayOutputWithContext(ctx context.Context) DashboardWidgetMetricArrayOutput
- type DashboardWidgetMetricInput
- type DashboardWidgetMetricOutput
- func (DashboardWidgetMetricOutput) ElementType() reflect.Type
- func (o DashboardWidgetMetricOutput) Name() pulumi.StringOutput
- func (o DashboardWidgetMetricOutput) Scope() pulumi.StringPtrOutput
- func (o DashboardWidgetMetricOutput) ToDashboardWidgetMetricOutput() DashboardWidgetMetricOutput
- func (o DashboardWidgetMetricOutput) ToDashboardWidgetMetricOutputWithContext(ctx context.Context) DashboardWidgetMetricOutput
- func (o DashboardWidgetMetricOutput) Units() pulumi.StringPtrOutput
- func (o DashboardWidgetMetricOutput) Values() pulumi.StringArrayOutput
- type DashboardWidgetOutput
- func (o DashboardWidgetOutput) Column() pulumi.IntOutput
- func (o DashboardWidgetOutput) CompareWiths() DashboardWidgetCompareWithArrayOutput
- func (o DashboardWidgetOutput) DrilldownDashboardId() pulumi.IntPtrOutput
- func (o DashboardWidgetOutput) Duration() pulumi.IntPtrOutput
- func (DashboardWidgetOutput) ElementType() reflect.Type
- func (o DashboardWidgetOutput) EndTime() pulumi.IntPtrOutput
- func (o DashboardWidgetOutput) EntityIds() pulumi.IntArrayOutput
- func (o DashboardWidgetOutput) Facet() pulumi.StringPtrOutput
- func (o DashboardWidgetOutput) Height() pulumi.IntPtrOutput
- func (o DashboardWidgetOutput) Limit() pulumi.IntPtrOutput
- func (o DashboardWidgetOutput) Metrics() DashboardWidgetMetricArrayOutput
- func (o DashboardWidgetOutput) Notes() pulumi.StringPtrOutput
- func (o DashboardWidgetOutput) Nrql() pulumi.StringPtrOutput
- func (o DashboardWidgetOutput) OrderBy() pulumi.StringPtrOutput
- func (o DashboardWidgetOutput) RawMetricName() pulumi.StringPtrOutput
- func (o DashboardWidgetOutput) Row() pulumi.IntOutput
- func (o DashboardWidgetOutput) Source() pulumi.StringPtrOutput
- func (o DashboardWidgetOutput) ThresholdRed() pulumi.Float64PtrOutput
- func (o DashboardWidgetOutput) ThresholdYellow() pulumi.Float64PtrOutput
- func (o DashboardWidgetOutput) Title() pulumi.StringOutput
- func (o DashboardWidgetOutput) ToDashboardWidgetOutput() DashboardWidgetOutput
- func (o DashboardWidgetOutput) ToDashboardWidgetOutputWithContext(ctx context.Context) DashboardWidgetOutput
- func (o DashboardWidgetOutput) Visualization() pulumi.StringOutput
- func (o DashboardWidgetOutput) WidgetId() pulumi.IntPtrOutput
- func (o DashboardWidgetOutput) Width() pulumi.IntPtrOutput
- type EntityTags
- type EntityTagsArgs
- type EntityTagsState
- type EntityTagsTag
- type EntityTagsTagArgs
- type EntityTagsTagArray
- type EntityTagsTagArrayInput
- type EntityTagsTagArrayOutput
- func (EntityTagsTagArrayOutput) ElementType() reflect.Type
- func (o EntityTagsTagArrayOutput) Index(i pulumi.IntInput) EntityTagsTagOutput
- func (o EntityTagsTagArrayOutput) ToEntityTagsTagArrayOutput() EntityTagsTagArrayOutput
- func (o EntityTagsTagArrayOutput) ToEntityTagsTagArrayOutputWithContext(ctx context.Context) EntityTagsTagArrayOutput
- type EntityTagsTagInput
- type EntityTagsTagOutput
- func (EntityTagsTagOutput) ElementType() reflect.Type
- func (o EntityTagsTagOutput) Key() pulumi.StringOutput
- func (o EntityTagsTagOutput) ToEntityTagsTagOutput() EntityTagsTagOutput
- func (o EntityTagsTagOutput) ToEntityTagsTagOutputWithContext(ctx context.Context) EntityTagsTagOutput
- func (o EntityTagsTagOutput) Values() pulumi.StringArrayOutput
- type EventsToMetricsRule
- type EventsToMetricsRuleArgs
- type EventsToMetricsRuleState
- type GetAccountArgs
- type GetAccountResult
- type GetAlertChannelConfig
- type GetAlertChannelConfigArgs
- type GetAlertChannelConfigInput
- type GetAlertChannelConfigOutput
- func (o GetAlertChannelConfigOutput) ApiKey() pulumi.StringPtrOutput
- func (o GetAlertChannelConfigOutput) AuthPassword() pulumi.StringPtrOutput
- func (o GetAlertChannelConfigOutput) AuthType() pulumi.StringPtrOutput
- func (o GetAlertChannelConfigOutput) AuthUsername() pulumi.StringPtrOutput
- func (o GetAlertChannelConfigOutput) BaseUrl() pulumi.StringPtrOutput
- func (o GetAlertChannelConfigOutput) Channel() pulumi.StringPtrOutput
- func (GetAlertChannelConfigOutput) ElementType() reflect.Type
- func (o GetAlertChannelConfigOutput) Headers() pulumi.StringMapOutput
- func (o GetAlertChannelConfigOutput) IncludeJsonAttachment() pulumi.StringPtrOutput
- func (o GetAlertChannelConfigOutput) Key() pulumi.StringPtrOutput
- func (o GetAlertChannelConfigOutput) Payload() pulumi.StringMapOutput
- func (o GetAlertChannelConfigOutput) PayloadType() pulumi.StringPtrOutput
- func (o GetAlertChannelConfigOutput) Recipients() pulumi.StringPtrOutput
- func (o GetAlertChannelConfigOutput) Region() pulumi.StringPtrOutput
- func (o GetAlertChannelConfigOutput) RouteKey() pulumi.StringPtrOutput
- func (o GetAlertChannelConfigOutput) ServiceKey() pulumi.StringPtrOutput
- func (o GetAlertChannelConfigOutput) Tags() pulumi.StringPtrOutput
- func (o GetAlertChannelConfigOutput) Teams() pulumi.StringPtrOutput
- func (o GetAlertChannelConfigOutput) ToGetAlertChannelConfigOutput() GetAlertChannelConfigOutput
- func (o GetAlertChannelConfigOutput) ToGetAlertChannelConfigOutputWithContext(ctx context.Context) GetAlertChannelConfigOutput
- func (o GetAlertChannelConfigOutput) Url() pulumi.StringPtrOutput
- func (o GetAlertChannelConfigOutput) UserId() pulumi.StringPtrOutput
- type GetApplicationArgs
- type GetApplicationResult
- type GetEntityArgs
- type GetEntityResult
- type GetEntityTag
- type GetEntityTagArgs
- type GetEntityTagInput
- type GetEntityTagOutput
- func (GetEntityTagOutput) ElementType() reflect.Type
- func (o GetEntityTagOutput) Key() pulumi.StringOutput
- func (o GetEntityTagOutput) ToGetEntityTagOutput() GetEntityTagOutput
- func (o GetEntityTagOutput) ToGetEntityTagOutputWithContext(ctx context.Context) GetEntityTagOutput
- func (o GetEntityTagOutput) Value() pulumi.StringOutput
- type GetKeyTransactionArgs
- type GetKeyTransactionResult
- type InfraAlertCondition
- type InfraAlertConditionArgs
- type InfraAlertConditionCritical
- type InfraAlertConditionCriticalArgs
- func (InfraAlertConditionCriticalArgs) ElementType() reflect.Type
- func (i InfraAlertConditionCriticalArgs) ToInfraAlertConditionCriticalOutput() InfraAlertConditionCriticalOutput
- func (i InfraAlertConditionCriticalArgs) ToInfraAlertConditionCriticalOutputWithContext(ctx context.Context) InfraAlertConditionCriticalOutput
- func (i InfraAlertConditionCriticalArgs) ToInfraAlertConditionCriticalPtrOutput() InfraAlertConditionCriticalPtrOutput
- func (i InfraAlertConditionCriticalArgs) ToInfraAlertConditionCriticalPtrOutputWithContext(ctx context.Context) InfraAlertConditionCriticalPtrOutput
- type InfraAlertConditionCriticalInput
- type InfraAlertConditionCriticalOutput
- func (o InfraAlertConditionCriticalOutput) Duration() pulumi.IntOutput
- func (InfraAlertConditionCriticalOutput) ElementType() reflect.Type
- func (o InfraAlertConditionCriticalOutput) TimeFunction() pulumi.StringPtrOutput
- func (o InfraAlertConditionCriticalOutput) ToInfraAlertConditionCriticalOutput() InfraAlertConditionCriticalOutput
- func (o InfraAlertConditionCriticalOutput) ToInfraAlertConditionCriticalOutputWithContext(ctx context.Context) InfraAlertConditionCriticalOutput
- func (o InfraAlertConditionCriticalOutput) ToInfraAlertConditionCriticalPtrOutput() InfraAlertConditionCriticalPtrOutput
- func (o InfraAlertConditionCriticalOutput) ToInfraAlertConditionCriticalPtrOutputWithContext(ctx context.Context) InfraAlertConditionCriticalPtrOutput
- func (o InfraAlertConditionCriticalOutput) Value() pulumi.Float64PtrOutput
- type InfraAlertConditionCriticalPtrInput
- type InfraAlertConditionCriticalPtrOutput
- func (o InfraAlertConditionCriticalPtrOutput) Duration() pulumi.IntPtrOutput
- func (o InfraAlertConditionCriticalPtrOutput) Elem() InfraAlertConditionCriticalOutput
- func (InfraAlertConditionCriticalPtrOutput) ElementType() reflect.Type
- func (o InfraAlertConditionCriticalPtrOutput) TimeFunction() pulumi.StringPtrOutput
- func (o InfraAlertConditionCriticalPtrOutput) ToInfraAlertConditionCriticalPtrOutput() InfraAlertConditionCriticalPtrOutput
- func (o InfraAlertConditionCriticalPtrOutput) ToInfraAlertConditionCriticalPtrOutputWithContext(ctx context.Context) InfraAlertConditionCriticalPtrOutput
- func (o InfraAlertConditionCriticalPtrOutput) Value() pulumi.Float64PtrOutput
- type InfraAlertConditionState
- type InfraAlertConditionWarning
- type InfraAlertConditionWarningArgs
- func (InfraAlertConditionWarningArgs) ElementType() reflect.Type
- func (i InfraAlertConditionWarningArgs) ToInfraAlertConditionWarningOutput() InfraAlertConditionWarningOutput
- func (i InfraAlertConditionWarningArgs) ToInfraAlertConditionWarningOutputWithContext(ctx context.Context) InfraAlertConditionWarningOutput
- func (i InfraAlertConditionWarningArgs) ToInfraAlertConditionWarningPtrOutput() InfraAlertConditionWarningPtrOutput
- func (i InfraAlertConditionWarningArgs) ToInfraAlertConditionWarningPtrOutputWithContext(ctx context.Context) InfraAlertConditionWarningPtrOutput
- type InfraAlertConditionWarningInput
- type InfraAlertConditionWarningOutput
- func (o InfraAlertConditionWarningOutput) Duration() pulumi.IntOutput
- func (InfraAlertConditionWarningOutput) ElementType() reflect.Type
- func (o InfraAlertConditionWarningOutput) TimeFunction() pulumi.StringPtrOutput
- func (o InfraAlertConditionWarningOutput) ToInfraAlertConditionWarningOutput() InfraAlertConditionWarningOutput
- func (o InfraAlertConditionWarningOutput) ToInfraAlertConditionWarningOutputWithContext(ctx context.Context) InfraAlertConditionWarningOutput
- func (o InfraAlertConditionWarningOutput) ToInfraAlertConditionWarningPtrOutput() InfraAlertConditionWarningPtrOutput
- func (o InfraAlertConditionWarningOutput) ToInfraAlertConditionWarningPtrOutputWithContext(ctx context.Context) InfraAlertConditionWarningPtrOutput
- func (o InfraAlertConditionWarningOutput) Value() pulumi.Float64PtrOutput
- type InfraAlertConditionWarningPtrInput
- type InfraAlertConditionWarningPtrOutput
- func (o InfraAlertConditionWarningPtrOutput) Duration() pulumi.IntPtrOutput
- func (o InfraAlertConditionWarningPtrOutput) Elem() InfraAlertConditionWarningOutput
- func (InfraAlertConditionWarningPtrOutput) ElementType() reflect.Type
- func (o InfraAlertConditionWarningPtrOutput) TimeFunction() pulumi.StringPtrOutput
- func (o InfraAlertConditionWarningPtrOutput) ToInfraAlertConditionWarningPtrOutput() InfraAlertConditionWarningPtrOutput
- func (o InfraAlertConditionWarningPtrOutput) ToInfraAlertConditionWarningPtrOutputWithContext(ctx context.Context) InfraAlertConditionWarningPtrOutput
- func (o InfraAlertConditionWarningPtrOutput) Value() pulumi.Float64PtrOutput
- type LookupAlertChannelArgs
- type LookupAlertChannelResult
- type LookupAlertPolicyArgs
- type LookupAlertPolicyResult
- type NrqlAlertCondition
- type NrqlAlertConditionArgs
- type NrqlAlertConditionCritical
- type NrqlAlertConditionCriticalArgs
- func (NrqlAlertConditionCriticalArgs) ElementType() reflect.Type
- func (i NrqlAlertConditionCriticalArgs) ToNrqlAlertConditionCriticalOutput() NrqlAlertConditionCriticalOutput
- func (i NrqlAlertConditionCriticalArgs) ToNrqlAlertConditionCriticalOutputWithContext(ctx context.Context) NrqlAlertConditionCriticalOutput
- func (i NrqlAlertConditionCriticalArgs) ToNrqlAlertConditionCriticalPtrOutput() NrqlAlertConditionCriticalPtrOutput
- func (i NrqlAlertConditionCriticalArgs) ToNrqlAlertConditionCriticalPtrOutputWithContext(ctx context.Context) NrqlAlertConditionCriticalPtrOutput
- type NrqlAlertConditionCriticalInput
- type NrqlAlertConditionCriticalOutput
- func (o NrqlAlertConditionCriticalOutput) Duration() pulumi.IntPtrOutputdeprecated
- func (NrqlAlertConditionCriticalOutput) ElementType() reflect.Type
- func (o NrqlAlertConditionCriticalOutput) Operator() pulumi.StringPtrOutput
- func (o NrqlAlertConditionCriticalOutput) Threshold() pulumi.Float64Output
- func (o NrqlAlertConditionCriticalOutput) ThresholdDuration() pulumi.IntPtrOutput
- func (o NrqlAlertConditionCriticalOutput) ThresholdOccurrences() pulumi.StringPtrOutput
- func (o NrqlAlertConditionCriticalOutput) TimeFunction() pulumi.StringPtrOutputdeprecated
- func (o NrqlAlertConditionCriticalOutput) ToNrqlAlertConditionCriticalOutput() NrqlAlertConditionCriticalOutput
- func (o NrqlAlertConditionCriticalOutput) ToNrqlAlertConditionCriticalOutputWithContext(ctx context.Context) NrqlAlertConditionCriticalOutput
- func (o NrqlAlertConditionCriticalOutput) ToNrqlAlertConditionCriticalPtrOutput() NrqlAlertConditionCriticalPtrOutput
- func (o NrqlAlertConditionCriticalOutput) ToNrqlAlertConditionCriticalPtrOutputWithContext(ctx context.Context) NrqlAlertConditionCriticalPtrOutput
- type NrqlAlertConditionCriticalPtrInput
- type NrqlAlertConditionCriticalPtrOutput
- func (o NrqlAlertConditionCriticalPtrOutput) Duration() pulumi.IntPtrOutputdeprecated
- func (o NrqlAlertConditionCriticalPtrOutput) Elem() NrqlAlertConditionCriticalOutput
- func (NrqlAlertConditionCriticalPtrOutput) ElementType() reflect.Type
- func (o NrqlAlertConditionCriticalPtrOutput) Operator() pulumi.StringPtrOutput
- func (o NrqlAlertConditionCriticalPtrOutput) Threshold() pulumi.Float64PtrOutput
- func (o NrqlAlertConditionCriticalPtrOutput) ThresholdDuration() pulumi.IntPtrOutput
- func (o NrqlAlertConditionCriticalPtrOutput) ThresholdOccurrences() pulumi.StringPtrOutput
- func (o NrqlAlertConditionCriticalPtrOutput) TimeFunction() pulumi.StringPtrOutputdeprecated
- func (o NrqlAlertConditionCriticalPtrOutput) ToNrqlAlertConditionCriticalPtrOutput() NrqlAlertConditionCriticalPtrOutput
- func (o NrqlAlertConditionCriticalPtrOutput) ToNrqlAlertConditionCriticalPtrOutputWithContext(ctx context.Context) NrqlAlertConditionCriticalPtrOutput
- type NrqlAlertConditionNrql
- type NrqlAlertConditionNrqlArgs
- func (NrqlAlertConditionNrqlArgs) ElementType() reflect.Type
- func (i NrqlAlertConditionNrqlArgs) ToNrqlAlertConditionNrqlOutput() NrqlAlertConditionNrqlOutput
- func (i NrqlAlertConditionNrqlArgs) ToNrqlAlertConditionNrqlOutputWithContext(ctx context.Context) NrqlAlertConditionNrqlOutput
- func (i NrqlAlertConditionNrqlArgs) ToNrqlAlertConditionNrqlPtrOutput() NrqlAlertConditionNrqlPtrOutput
- func (i NrqlAlertConditionNrqlArgs) ToNrqlAlertConditionNrqlPtrOutputWithContext(ctx context.Context) NrqlAlertConditionNrqlPtrOutput
- type NrqlAlertConditionNrqlInput
- type NrqlAlertConditionNrqlOutput
- func (NrqlAlertConditionNrqlOutput) ElementType() reflect.Type
- func (o NrqlAlertConditionNrqlOutput) EvaluationOffset() pulumi.IntPtrOutput
- func (o NrqlAlertConditionNrqlOutput) Query() pulumi.StringOutput
- func (o NrqlAlertConditionNrqlOutput) SinceValue() pulumi.StringPtrOutputdeprecated
- func (o NrqlAlertConditionNrqlOutput) ToNrqlAlertConditionNrqlOutput() NrqlAlertConditionNrqlOutput
- func (o NrqlAlertConditionNrqlOutput) ToNrqlAlertConditionNrqlOutputWithContext(ctx context.Context) NrqlAlertConditionNrqlOutput
- func (o NrqlAlertConditionNrqlOutput) ToNrqlAlertConditionNrqlPtrOutput() NrqlAlertConditionNrqlPtrOutput
- func (o NrqlAlertConditionNrqlOutput) ToNrqlAlertConditionNrqlPtrOutputWithContext(ctx context.Context) NrqlAlertConditionNrqlPtrOutput
- type NrqlAlertConditionNrqlPtrInput
- type NrqlAlertConditionNrqlPtrOutput
- func (o NrqlAlertConditionNrqlPtrOutput) Elem() NrqlAlertConditionNrqlOutput
- func (NrqlAlertConditionNrqlPtrOutput) ElementType() reflect.Type
- func (o NrqlAlertConditionNrqlPtrOutput) EvaluationOffset() pulumi.IntPtrOutput
- func (o NrqlAlertConditionNrqlPtrOutput) Query() pulumi.StringPtrOutput
- func (o NrqlAlertConditionNrqlPtrOutput) SinceValue() pulumi.StringPtrOutputdeprecated
- func (o NrqlAlertConditionNrqlPtrOutput) ToNrqlAlertConditionNrqlPtrOutput() NrqlAlertConditionNrqlPtrOutput
- func (o NrqlAlertConditionNrqlPtrOutput) ToNrqlAlertConditionNrqlPtrOutputWithContext(ctx context.Context) NrqlAlertConditionNrqlPtrOutput
- type NrqlAlertConditionState
- type NrqlAlertConditionTerm
- type NrqlAlertConditionTermArgs
- type NrqlAlertConditionTermArray
- func (NrqlAlertConditionTermArray) ElementType() reflect.Type
- func (i NrqlAlertConditionTermArray) ToNrqlAlertConditionTermArrayOutput() NrqlAlertConditionTermArrayOutput
- func (i NrqlAlertConditionTermArray) ToNrqlAlertConditionTermArrayOutputWithContext(ctx context.Context) NrqlAlertConditionTermArrayOutput
- type NrqlAlertConditionTermArrayInput
- type NrqlAlertConditionTermArrayOutput
- func (NrqlAlertConditionTermArrayOutput) ElementType() reflect.Type
- func (o NrqlAlertConditionTermArrayOutput) Index(i pulumi.IntInput) NrqlAlertConditionTermOutput
- func (o NrqlAlertConditionTermArrayOutput) ToNrqlAlertConditionTermArrayOutput() NrqlAlertConditionTermArrayOutput
- func (o NrqlAlertConditionTermArrayOutput) ToNrqlAlertConditionTermArrayOutputWithContext(ctx context.Context) NrqlAlertConditionTermArrayOutput
- type NrqlAlertConditionTermInput
- type NrqlAlertConditionTermOutput
- func (o NrqlAlertConditionTermOutput) Duration() pulumi.IntPtrOutputdeprecated
- func (NrqlAlertConditionTermOutput) ElementType() reflect.Type
- func (o NrqlAlertConditionTermOutput) Operator() pulumi.StringPtrOutput
- func (o NrqlAlertConditionTermOutput) Priority() pulumi.StringPtrOutput
- func (o NrqlAlertConditionTermOutput) Threshold() pulumi.Float64Output
- func (o NrqlAlertConditionTermOutput) ThresholdDuration() pulumi.IntPtrOutput
- func (o NrqlAlertConditionTermOutput) ThresholdOccurrences() pulumi.StringPtrOutput
- func (o NrqlAlertConditionTermOutput) TimeFunction() pulumi.StringPtrOutputdeprecated
- func (o NrqlAlertConditionTermOutput) ToNrqlAlertConditionTermOutput() NrqlAlertConditionTermOutput
- func (o NrqlAlertConditionTermOutput) ToNrqlAlertConditionTermOutputWithContext(ctx context.Context) NrqlAlertConditionTermOutput
- type NrqlAlertConditionWarning
- type NrqlAlertConditionWarningArgs
- func (NrqlAlertConditionWarningArgs) ElementType() reflect.Type
- func (i NrqlAlertConditionWarningArgs) ToNrqlAlertConditionWarningOutput() NrqlAlertConditionWarningOutput
- func (i NrqlAlertConditionWarningArgs) ToNrqlAlertConditionWarningOutputWithContext(ctx context.Context) NrqlAlertConditionWarningOutput
- func (i NrqlAlertConditionWarningArgs) ToNrqlAlertConditionWarningPtrOutput() NrqlAlertConditionWarningPtrOutput
- func (i NrqlAlertConditionWarningArgs) ToNrqlAlertConditionWarningPtrOutputWithContext(ctx context.Context) NrqlAlertConditionWarningPtrOutput
- type NrqlAlertConditionWarningInput
- type NrqlAlertConditionWarningOutput
- func (o NrqlAlertConditionWarningOutput) Duration() pulumi.IntPtrOutputdeprecated
- func (NrqlAlertConditionWarningOutput) ElementType() reflect.Type
- func (o NrqlAlertConditionWarningOutput) Operator() pulumi.StringPtrOutput
- func (o NrqlAlertConditionWarningOutput) Threshold() pulumi.Float64Output
- func (o NrqlAlertConditionWarningOutput) ThresholdDuration() pulumi.IntPtrOutput
- func (o NrqlAlertConditionWarningOutput) ThresholdOccurrences() pulumi.StringPtrOutput
- func (o NrqlAlertConditionWarningOutput) TimeFunction() pulumi.StringPtrOutputdeprecated
- func (o NrqlAlertConditionWarningOutput) ToNrqlAlertConditionWarningOutput() NrqlAlertConditionWarningOutput
- func (o NrqlAlertConditionWarningOutput) ToNrqlAlertConditionWarningOutputWithContext(ctx context.Context) NrqlAlertConditionWarningOutput
- func (o NrqlAlertConditionWarningOutput) ToNrqlAlertConditionWarningPtrOutput() NrqlAlertConditionWarningPtrOutput
- func (o NrqlAlertConditionWarningOutput) ToNrqlAlertConditionWarningPtrOutputWithContext(ctx context.Context) NrqlAlertConditionWarningPtrOutput
- type NrqlAlertConditionWarningPtrInput
- type NrqlAlertConditionWarningPtrOutput
- func (o NrqlAlertConditionWarningPtrOutput) Duration() pulumi.IntPtrOutputdeprecated
- func (o NrqlAlertConditionWarningPtrOutput) Elem() NrqlAlertConditionWarningOutput
- func (NrqlAlertConditionWarningPtrOutput) ElementType() reflect.Type
- func (o NrqlAlertConditionWarningPtrOutput) Operator() pulumi.StringPtrOutput
- func (o NrqlAlertConditionWarningPtrOutput) Threshold() pulumi.Float64PtrOutput
- func (o NrqlAlertConditionWarningPtrOutput) ThresholdDuration() pulumi.IntPtrOutput
- func (o NrqlAlertConditionWarningPtrOutput) ThresholdOccurrences() pulumi.StringPtrOutput
- func (o NrqlAlertConditionWarningPtrOutput) TimeFunction() pulumi.StringPtrOutputdeprecated
- func (o NrqlAlertConditionWarningPtrOutput) ToNrqlAlertConditionWarningPtrOutput() NrqlAlertConditionWarningPtrOutput
- func (o NrqlAlertConditionWarningPtrOutput) ToNrqlAlertConditionWarningPtrOutputWithContext(ctx context.Context) NrqlAlertConditionWarningPtrOutput
- type Provider
- type ProviderArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertChannel ¶
type AlertChannel struct { pulumi.CustomResourceState // A nested block that describes an alert channel configuration. Only one config block is permitted per alert channel definition. See Nested config blocks below for details. Config AlertChannelConfigPtrOutput `pulumi:"config"` // The name of the channel. Name pulumi.StringOutput `pulumi:"name"` // The type of channel. One of: `email`, `slack`, `opsgenie`, `pagerduty`, `victorops`, or `webhook`. Type pulumi.StringOutput `pulumi:"type"` }
Use this resource to create and manage New Relic alert policies.
func GetAlertChannel ¶
func GetAlertChannel(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AlertChannelState, opts ...pulumi.ResourceOption) (*AlertChannel, error)
GetAlertChannel gets an existing AlertChannel 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 NewAlertChannel ¶
func NewAlertChannel(ctx *pulumi.Context, name string, args *AlertChannelArgs, opts ...pulumi.ResourceOption) (*AlertChannel, error)
NewAlertChannel registers a new resource with the given unique name, arguments, and options.
type AlertChannelArgs ¶
type AlertChannelArgs struct { // A nested block that describes an alert channel configuration. Only one config block is permitted per alert channel definition. See Nested config blocks below for details. Config AlertChannelConfigPtrInput // The name of the channel. Name pulumi.StringPtrInput // The type of channel. One of: `email`, `slack`, `opsgenie`, `pagerduty`, `victorops`, or `webhook`. Type pulumi.StringInput }
The set of arguments for constructing a AlertChannel resource.
func (AlertChannelArgs) ElementType ¶
func (AlertChannelArgs) ElementType() reflect.Type
type AlertChannelConfig ¶
type AlertChannelConfig struct { // The API key for integrating with OpsGenie. ApiKey *string `pulumi:"apiKey"` // Specifies an authentication password for use with a channel. Supported by the `webhook` channel type. AuthPassword *string `pulumi:"authPassword"` // Specifies an authentication method for use with a channel. Supported by the `webhook` channel type. Only HTTP basic authentication is currently supported via the value `BASIC`. AuthType *string `pulumi:"authType"` // Specifies an authentication username for use with a channel. Supported by the `webhook` channel type. AuthUsername *string `pulumi:"authUsername"` // The base URL of the webhook destination. BaseUrl *string `pulumi:"baseUrl"` // The Slack channel to send notifications to. // * `opsgenie` Channel *string `pulumi:"channel"` // A map of key/value pairs that represents extra HTTP headers to be sent along with the webhook payload. Headers map[string]string `pulumi:"headers"` // Use instead of `headers` if the desired payload is more complex than a list of key/value pairs (e.g. a set of headers that makes use of nested objects). The value provided should be a valid JSON string with escaped double quotes. Conflicts with `headers`. HeadersString *string `pulumi:"headersString"` // `0` or `1`. Flag for whether or not to attach a JSON document containing information about the associated alert to the email that is sent to recipients. // * `webhook` IncludeJsonAttachment *string `pulumi:"includeJsonAttachment"` // The key for integrating with VictorOps. Key *string `pulumi:"key"` // A map of key/value pairs that represents the webhook payload. Must provide `payloadType` if setting this argument. Payload map[string]string `pulumi:"payload"` // Use instead of `payload` if the desired payload is more complex than a list of key/value pairs (e.g. a payload that makes use of nested objects). The value provided should be a valid JSON string with escaped double quotes. Conflicts with `payload`. PayloadString *string `pulumi:"payloadString"` // Can either be `application/json` or `application/x-www-form-urlencoded`. The `payloadType` argument is _required_ if `payload` is set. // * `pagerduty` PayloadType *string `pulumi:"payloadType"` // A set of recipients for targeting notifications. Multiple values are comma separated. Recipients *string `pulumi:"recipients"` // The data center region to store your data. Valid values are `US` and `EU`. Default is `US`. Region *string `pulumi:"region"` // The route key for integrating with VictorOps. // * `slack` RouteKey *string `pulumi:"routeKey"` // Specifies the service key for integrating with Pagerduty. // * `victorops` ServiceKey *string `pulumi:"serviceKey"` // A set of tags for targeting notifications. Multiple values are comma separated. Tags *string `pulumi:"tags"` // A set of teams for targeting notifications. Multiple values are comma separated. Teams *string `pulumi:"teams"` // Your organization's Slack URL. Url *string `pulumi:"url"` UserId *string `pulumi:"userId"` }
type AlertChannelConfigArgs ¶
type AlertChannelConfigArgs struct { // The API key for integrating with OpsGenie. ApiKey pulumi.StringPtrInput `pulumi:"apiKey"` // Specifies an authentication password for use with a channel. Supported by the `webhook` channel type. AuthPassword pulumi.StringPtrInput `pulumi:"authPassword"` // Specifies an authentication method for use with a channel. Supported by the `webhook` channel type. Only HTTP basic authentication is currently supported via the value `BASIC`. AuthType pulumi.StringPtrInput `pulumi:"authType"` // Specifies an authentication username for use with a channel. Supported by the `webhook` channel type. AuthUsername pulumi.StringPtrInput `pulumi:"authUsername"` // The base URL of the webhook destination. BaseUrl pulumi.StringPtrInput `pulumi:"baseUrl"` // The Slack channel to send notifications to. // * `opsgenie` Channel pulumi.StringPtrInput `pulumi:"channel"` // A map of key/value pairs that represents extra HTTP headers to be sent along with the webhook payload. Headers pulumi.StringMapInput `pulumi:"headers"` // Use instead of `headers` if the desired payload is more complex than a list of key/value pairs (e.g. a set of headers that makes use of nested objects). The value provided should be a valid JSON string with escaped double quotes. Conflicts with `headers`. HeadersString pulumi.StringPtrInput `pulumi:"headersString"` // `0` or `1`. Flag for whether or not to attach a JSON document containing information about the associated alert to the email that is sent to recipients. // * `webhook` IncludeJsonAttachment pulumi.StringPtrInput `pulumi:"includeJsonAttachment"` // The key for integrating with VictorOps. Key pulumi.StringPtrInput `pulumi:"key"` // A map of key/value pairs that represents the webhook payload. Must provide `payloadType` if setting this argument. Payload pulumi.StringMapInput `pulumi:"payload"` // Use instead of `payload` if the desired payload is more complex than a list of key/value pairs (e.g. a payload that makes use of nested objects). The value provided should be a valid JSON string with escaped double quotes. Conflicts with `payload`. PayloadString pulumi.StringPtrInput `pulumi:"payloadString"` // Can either be `application/json` or `application/x-www-form-urlencoded`. The `payloadType` argument is _required_ if `payload` is set. // * `pagerduty` PayloadType pulumi.StringPtrInput `pulumi:"payloadType"` // A set of recipients for targeting notifications. Multiple values are comma separated. Recipients pulumi.StringPtrInput `pulumi:"recipients"` // The data center region to store your data. Valid values are `US` and `EU`. Default is `US`. Region pulumi.StringPtrInput `pulumi:"region"` // The route key for integrating with VictorOps. // * `slack` RouteKey pulumi.StringPtrInput `pulumi:"routeKey"` // Specifies the service key for integrating with Pagerduty. // * `victorops` ServiceKey pulumi.StringPtrInput `pulumi:"serviceKey"` // A set of tags for targeting notifications. Multiple values are comma separated. Tags pulumi.StringPtrInput `pulumi:"tags"` // A set of teams for targeting notifications. Multiple values are comma separated. Teams pulumi.StringPtrInput `pulumi:"teams"` // Your organization's Slack URL. Url pulumi.StringPtrInput `pulumi:"url"` UserId pulumi.StringPtrInput `pulumi:"userId"` }
func (AlertChannelConfigArgs) ElementType ¶
func (AlertChannelConfigArgs) ElementType() reflect.Type
func (AlertChannelConfigArgs) ToAlertChannelConfigOutput ¶
func (i AlertChannelConfigArgs) ToAlertChannelConfigOutput() AlertChannelConfigOutput
func (AlertChannelConfigArgs) ToAlertChannelConfigOutputWithContext ¶
func (i AlertChannelConfigArgs) ToAlertChannelConfigOutputWithContext(ctx context.Context) AlertChannelConfigOutput
func (AlertChannelConfigArgs) ToAlertChannelConfigPtrOutput ¶
func (i AlertChannelConfigArgs) ToAlertChannelConfigPtrOutput() AlertChannelConfigPtrOutput
func (AlertChannelConfigArgs) ToAlertChannelConfigPtrOutputWithContext ¶
func (i AlertChannelConfigArgs) ToAlertChannelConfigPtrOutputWithContext(ctx context.Context) AlertChannelConfigPtrOutput
type AlertChannelConfigInput ¶
type AlertChannelConfigInput interface { pulumi.Input ToAlertChannelConfigOutput() AlertChannelConfigOutput ToAlertChannelConfigOutputWithContext(context.Context) AlertChannelConfigOutput }
AlertChannelConfigInput is an input type that accepts AlertChannelConfigArgs and AlertChannelConfigOutput values. You can construct a concrete instance of `AlertChannelConfigInput` via:
AlertChannelConfigArgs{...}
type AlertChannelConfigOutput ¶
type AlertChannelConfigOutput struct{ *pulumi.OutputState }
func (AlertChannelConfigOutput) ApiKey ¶
func (o AlertChannelConfigOutput) ApiKey() pulumi.StringPtrOutput
The API key for integrating with OpsGenie.
func (AlertChannelConfigOutput) AuthPassword ¶
func (o AlertChannelConfigOutput) AuthPassword() pulumi.StringPtrOutput
Specifies an authentication password for use with a channel. Supported by the `webhook` channel type.
func (AlertChannelConfigOutput) AuthType ¶
func (o AlertChannelConfigOutput) AuthType() pulumi.StringPtrOutput
Specifies an authentication method for use with a channel. Supported by the `webhook` channel type. Only HTTP basic authentication is currently supported via the value `BASIC`.
func (AlertChannelConfigOutput) AuthUsername ¶
func (o AlertChannelConfigOutput) AuthUsername() pulumi.StringPtrOutput
Specifies an authentication username for use with a channel. Supported by the `webhook` channel type.
func (AlertChannelConfigOutput) BaseUrl ¶
func (o AlertChannelConfigOutput) BaseUrl() pulumi.StringPtrOutput
The base URL of the webhook destination.
func (AlertChannelConfigOutput) Channel ¶
func (o AlertChannelConfigOutput) Channel() pulumi.StringPtrOutput
The Slack channel to send notifications to. * `opsgenie`
func (AlertChannelConfigOutput) ElementType ¶
func (AlertChannelConfigOutput) ElementType() reflect.Type
func (AlertChannelConfigOutput) Headers ¶
func (o AlertChannelConfigOutput) Headers() pulumi.StringMapOutput
A map of key/value pairs that represents extra HTTP headers to be sent along with the webhook payload.
func (AlertChannelConfigOutput) HeadersString ¶
func (o AlertChannelConfigOutput) HeadersString() pulumi.StringPtrOutput
Use instead of `headers` if the desired payload is more complex than a list of key/value pairs (e.g. a set of headers that makes use of nested objects). The value provided should be a valid JSON string with escaped double quotes. Conflicts with `headers`.
func (AlertChannelConfigOutput) IncludeJsonAttachment ¶
func (o AlertChannelConfigOutput) IncludeJsonAttachment() pulumi.StringPtrOutput
`0` or `1`. Flag for whether or not to attach a JSON document containing information about the associated alert to the email that is sent to recipients. * `webhook`
func (AlertChannelConfigOutput) Key ¶
func (o AlertChannelConfigOutput) Key() pulumi.StringPtrOutput
The key for integrating with VictorOps.
func (AlertChannelConfigOutput) Payload ¶
func (o AlertChannelConfigOutput) Payload() pulumi.StringMapOutput
A map of key/value pairs that represents the webhook payload. Must provide `payloadType` if setting this argument.
func (AlertChannelConfigOutput) PayloadString ¶
func (o AlertChannelConfigOutput) PayloadString() pulumi.StringPtrOutput
Use instead of `payload` if the desired payload is more complex than a list of key/value pairs (e.g. a payload that makes use of nested objects). The value provided should be a valid JSON string with escaped double quotes. Conflicts with `payload`.
func (AlertChannelConfigOutput) PayloadType ¶
func (o AlertChannelConfigOutput) PayloadType() pulumi.StringPtrOutput
Can either be `application/json` or `application/x-www-form-urlencoded`. The `payloadType` argument is _required_ if `payload` is set. * `pagerduty`
func (AlertChannelConfigOutput) Recipients ¶
func (o AlertChannelConfigOutput) Recipients() pulumi.StringPtrOutput
A set of recipients for targeting notifications. Multiple values are comma separated.
func (AlertChannelConfigOutput) Region ¶
func (o AlertChannelConfigOutput) Region() pulumi.StringPtrOutput
The data center region to store your data. Valid values are `US` and `EU`. Default is `US`.
func (AlertChannelConfigOutput) RouteKey ¶
func (o AlertChannelConfigOutput) RouteKey() pulumi.StringPtrOutput
The route key for integrating with VictorOps. * `slack`
func (AlertChannelConfigOutput) ServiceKey ¶
func (o AlertChannelConfigOutput) ServiceKey() pulumi.StringPtrOutput
Specifies the service key for integrating with Pagerduty. * `victorops`
func (AlertChannelConfigOutput) Tags ¶
func (o AlertChannelConfigOutput) Tags() pulumi.StringPtrOutput
A set of tags for targeting notifications. Multiple values are comma separated.
func (AlertChannelConfigOutput) Teams ¶
func (o AlertChannelConfigOutput) Teams() pulumi.StringPtrOutput
A set of teams for targeting notifications. Multiple values are comma separated.
func (AlertChannelConfigOutput) ToAlertChannelConfigOutput ¶
func (o AlertChannelConfigOutput) ToAlertChannelConfigOutput() AlertChannelConfigOutput
func (AlertChannelConfigOutput) ToAlertChannelConfigOutputWithContext ¶
func (o AlertChannelConfigOutput) ToAlertChannelConfigOutputWithContext(ctx context.Context) AlertChannelConfigOutput
func (AlertChannelConfigOutput) ToAlertChannelConfigPtrOutput ¶
func (o AlertChannelConfigOutput) ToAlertChannelConfigPtrOutput() AlertChannelConfigPtrOutput
func (AlertChannelConfigOutput) ToAlertChannelConfigPtrOutputWithContext ¶
func (o AlertChannelConfigOutput) ToAlertChannelConfigPtrOutputWithContext(ctx context.Context) AlertChannelConfigPtrOutput
func (AlertChannelConfigOutput) Url ¶
func (o AlertChannelConfigOutput) Url() pulumi.StringPtrOutput
Your organization's Slack URL.
func (AlertChannelConfigOutput) UserId ¶
func (o AlertChannelConfigOutput) UserId() pulumi.StringPtrOutput
type AlertChannelConfigPtrInput ¶
type AlertChannelConfigPtrInput interface { pulumi.Input ToAlertChannelConfigPtrOutput() AlertChannelConfigPtrOutput ToAlertChannelConfigPtrOutputWithContext(context.Context) AlertChannelConfigPtrOutput }
AlertChannelConfigPtrInput is an input type that accepts AlertChannelConfigArgs, AlertChannelConfigPtr and AlertChannelConfigPtrOutput values. You can construct a concrete instance of `AlertChannelConfigPtrInput` via:
AlertChannelConfigArgs{...} or: nil
func AlertChannelConfigPtr ¶
func AlertChannelConfigPtr(v *AlertChannelConfigArgs) AlertChannelConfigPtrInput
type AlertChannelConfigPtrOutput ¶
type AlertChannelConfigPtrOutput struct{ *pulumi.OutputState }
func (AlertChannelConfigPtrOutput) ApiKey ¶
func (o AlertChannelConfigPtrOutput) ApiKey() pulumi.StringPtrOutput
The API key for integrating with OpsGenie.
func (AlertChannelConfigPtrOutput) AuthPassword ¶
func (o AlertChannelConfigPtrOutput) AuthPassword() pulumi.StringPtrOutput
Specifies an authentication password for use with a channel. Supported by the `webhook` channel type.
func (AlertChannelConfigPtrOutput) AuthType ¶
func (o AlertChannelConfigPtrOutput) AuthType() pulumi.StringPtrOutput
Specifies an authentication method for use with a channel. Supported by the `webhook` channel type. Only HTTP basic authentication is currently supported via the value `BASIC`.
func (AlertChannelConfigPtrOutput) AuthUsername ¶
func (o AlertChannelConfigPtrOutput) AuthUsername() pulumi.StringPtrOutput
Specifies an authentication username for use with a channel. Supported by the `webhook` channel type.
func (AlertChannelConfigPtrOutput) BaseUrl ¶
func (o AlertChannelConfigPtrOutput) BaseUrl() pulumi.StringPtrOutput
The base URL of the webhook destination.
func (AlertChannelConfigPtrOutput) Channel ¶
func (o AlertChannelConfigPtrOutput) Channel() pulumi.StringPtrOutput
The Slack channel to send notifications to. * `opsgenie`
func (AlertChannelConfigPtrOutput) Elem ¶
func (o AlertChannelConfigPtrOutput) Elem() AlertChannelConfigOutput
func (AlertChannelConfigPtrOutput) ElementType ¶
func (AlertChannelConfigPtrOutput) ElementType() reflect.Type
func (AlertChannelConfigPtrOutput) Headers ¶
func (o AlertChannelConfigPtrOutput) Headers() pulumi.StringMapOutput
A map of key/value pairs that represents extra HTTP headers to be sent along with the webhook payload.
func (AlertChannelConfigPtrOutput) HeadersString ¶
func (o AlertChannelConfigPtrOutput) HeadersString() pulumi.StringPtrOutput
Use instead of `headers` if the desired payload is more complex than a list of key/value pairs (e.g. a set of headers that makes use of nested objects). The value provided should be a valid JSON string with escaped double quotes. Conflicts with `headers`.
func (AlertChannelConfigPtrOutput) IncludeJsonAttachment ¶
func (o AlertChannelConfigPtrOutput) IncludeJsonAttachment() pulumi.StringPtrOutput
`0` or `1`. Flag for whether or not to attach a JSON document containing information about the associated alert to the email that is sent to recipients. * `webhook`
func (AlertChannelConfigPtrOutput) Key ¶
func (o AlertChannelConfigPtrOutput) Key() pulumi.StringPtrOutput
The key for integrating with VictorOps.
func (AlertChannelConfigPtrOutput) Payload ¶
func (o AlertChannelConfigPtrOutput) Payload() pulumi.StringMapOutput
A map of key/value pairs that represents the webhook payload. Must provide `payloadType` if setting this argument.
func (AlertChannelConfigPtrOutput) PayloadString ¶
func (o AlertChannelConfigPtrOutput) PayloadString() pulumi.StringPtrOutput
Use instead of `payload` if the desired payload is more complex than a list of key/value pairs (e.g. a payload that makes use of nested objects). The value provided should be a valid JSON string with escaped double quotes. Conflicts with `payload`.
func (AlertChannelConfigPtrOutput) PayloadType ¶
func (o AlertChannelConfigPtrOutput) PayloadType() pulumi.StringPtrOutput
Can either be `application/json` or `application/x-www-form-urlencoded`. The `payloadType` argument is _required_ if `payload` is set. * `pagerduty`
func (AlertChannelConfigPtrOutput) Recipients ¶
func (o AlertChannelConfigPtrOutput) Recipients() pulumi.StringPtrOutput
A set of recipients for targeting notifications. Multiple values are comma separated.
func (AlertChannelConfigPtrOutput) Region ¶
func (o AlertChannelConfigPtrOutput) Region() pulumi.StringPtrOutput
The data center region to store your data. Valid values are `US` and `EU`. Default is `US`.
func (AlertChannelConfigPtrOutput) RouteKey ¶
func (o AlertChannelConfigPtrOutput) RouteKey() pulumi.StringPtrOutput
The route key for integrating with VictorOps. * `slack`
func (AlertChannelConfigPtrOutput) ServiceKey ¶
func (o AlertChannelConfigPtrOutput) ServiceKey() pulumi.StringPtrOutput
Specifies the service key for integrating with Pagerduty. * `victorops`
func (AlertChannelConfigPtrOutput) Tags ¶
func (o AlertChannelConfigPtrOutput) Tags() pulumi.StringPtrOutput
A set of tags for targeting notifications. Multiple values are comma separated.
func (AlertChannelConfigPtrOutput) Teams ¶
func (o AlertChannelConfigPtrOutput) Teams() pulumi.StringPtrOutput
A set of teams for targeting notifications. Multiple values are comma separated.
func (AlertChannelConfigPtrOutput) ToAlertChannelConfigPtrOutput ¶
func (o AlertChannelConfigPtrOutput) ToAlertChannelConfigPtrOutput() AlertChannelConfigPtrOutput
func (AlertChannelConfigPtrOutput) ToAlertChannelConfigPtrOutputWithContext ¶
func (o AlertChannelConfigPtrOutput) ToAlertChannelConfigPtrOutputWithContext(ctx context.Context) AlertChannelConfigPtrOutput
func (AlertChannelConfigPtrOutput) Url ¶
func (o AlertChannelConfigPtrOutput) Url() pulumi.StringPtrOutput
Your organization's Slack URL.
func (AlertChannelConfigPtrOutput) UserId ¶
func (o AlertChannelConfigPtrOutput) UserId() pulumi.StringPtrOutput
type AlertChannelState ¶
type AlertChannelState struct { // A nested block that describes an alert channel configuration. Only one config block is permitted per alert channel definition. See Nested config blocks below for details. Config AlertChannelConfigPtrInput // The name of the channel. Name pulumi.StringPtrInput // The type of channel. One of: `email`, `slack`, `opsgenie`, `pagerduty`, `victorops`, or `webhook`. Type pulumi.StringPtrInput }
func (AlertChannelState) ElementType ¶
func (AlertChannelState) ElementType() reflect.Type
type AlertCondition ¶
type AlertCondition struct { pulumi.CustomResourceState // `application` or `instance`. Choose `application` for most scenarios. If you are using the JVM plugin in New Relic, the `instance` setting allows your condition to trigger [for specific app instances](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances). ConditionScope pulumi.StringPtrOutput `pulumi:"conditionScope"` // Whether the condition is enabled or not. Defaults to true. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // The instance IDs associated with this condition. Entities pulumi.IntArrayOutput `pulumi:"entities"` // A valid Garbage Collection metric e.g. `GC/G1 Young Generation`. GcMetric pulumi.StringPtrOutput `pulumi:"gcMetric"` // The metric field accepts parameters based on the `type` set. One of these metrics based on `type`: // * `apmAppMetric` // * `apdex` // * `errorPercentage` // * `responseTimeBackground` // * `responseTimeWeb` // * `throughputBackground` // * `throughputWeb` // * `userDefined` // * `apmKtMetric` // * `apdex` // * `errorCount` // * `errorPercentage` // * `responseTime` // * `throughput` // * `browserMetric` // * `ajaxResponseTime` // * `ajaxThroughput` // * `domProcessing` // * `endUserApdex` // * `network` // * `pageRendering` // * `pageViewThroughput` // * `pageViewsWithJsErrors` // * `requestQueuing` // * `totalPageLoad` // * `userDefined` // * `webApplication` // * `mobileMetric` // * `database` // * `images` // * `json` // * `mobileCrashRate` // * `networkErrorPercentage` // * `network` // * `statusErrorPercentage` // * `userDefined` // * `viewLoading` Metric pulumi.StringOutput `pulumi:"metric"` // The title of the condition. Must be between 1 and 64 characters, inclusive. Name pulumi.StringOutput `pulumi:"name"` // 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 type of condition. One of: `apmAppMetric`, `apmKtMetric`, `browserMetric`, `mobileMetric` Type pulumi.StringOutput `pulumi:"type"` // A custom metric to be evaluated. UserDefinedMetric pulumi.StringPtrOutput `pulumi:"userDefinedMetric"` // One of: `average`, `min`, `max`, `total`, or `sampleSize`. UserDefinedValueFunction pulumi.StringPtrOutput `pulumi:"userDefinedValueFunction"` // Automatically close instance-based violations, including JVM health metric violations, after the number of hours specified. Must be: `1`, `2`, `4`, `8`, `12` or `24`. ViolationCloseTimer pulumi.IntPtrOutput `pulumi:"violationCloseTimer"` }
Use this resource to create and manage alert conditions for APM, Browser, and Mobile in New Relic.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v3/go/newrelic" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { opt0 := "APPLICATION" opt1 := "APM" _, err := newrelic.GetEntity(ctx, &newrelic.GetEntityArgs{ Name: "my-app", Type: &opt0, Domain: &opt1, }, nil) if err != nil { return err } fooAlertPolicy, err := newrelic.NewAlertPolicy(ctx, "fooAlertPolicy", nil) if err != nil { return err } _, err = newrelic.NewAlertCondition(ctx, "fooAlertCondition", &newrelic.AlertConditionArgs{ PolicyId: fooAlertPolicy.ID(), Type: pulumi.String("apm_app_metric"), Entities: pulumi.IntArray{ pulumi.Any(data.Newrelic_application.App.Application_id), }, Metric: pulumi.String("apdex"), RunbookUrl: pulumi.String("https://www.example.com"), ConditionScope: pulumi.String("application"), Terms: newrelic.AlertConditionTermArray{ &newrelic.AlertConditionTermArgs{ Duration: pulumi.Int(5), Operator: pulumi.String("below"), Priority: pulumi.String("critical"), Threshold: pulumi.Float64(0.75), TimeFunction: pulumi.String("all"), }, }, }) if err != nil { return err } return nil }) }
``` ## 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`. Terms must include at least one `critical` priority term
- `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 { // `application` or `instance`. Choose `application` for most scenarios. If you are using the JVM plugin in New Relic, the `instance` setting allows your condition to trigger [for specific app instances](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances). ConditionScope pulumi.StringPtrInput // Whether the condition is enabled or not. Defaults to true. Enabled pulumi.BoolPtrInput // The instance IDs associated with this condition. Entities pulumi.IntArrayInput // A valid Garbage Collection metric e.g. `GC/G1 Young Generation`. GcMetric pulumi.StringPtrInput // The metric field accepts parameters based on the `type` set. One of these metrics based on `type`: // * `apmAppMetric` // * `apdex` // * `errorPercentage` // * `responseTimeBackground` // * `responseTimeWeb` // * `throughputBackground` // * `throughputWeb` // * `userDefined` // * `apmKtMetric` // * `apdex` // * `errorCount` // * `errorPercentage` // * `responseTime` // * `throughput` // * `browserMetric` // * `ajaxResponseTime` // * `ajaxThroughput` // * `domProcessing` // * `endUserApdex` // * `network` // * `pageRendering` // * `pageViewThroughput` // * `pageViewsWithJsErrors` // * `requestQueuing` // * `totalPageLoad` // * `userDefined` // * `webApplication` // * `mobileMetric` // * `database` // * `images` // * `json` // * `mobileCrashRate` // * `networkErrorPercentage` // * `network` // * `statusErrorPercentage` // * `userDefined` // * `viewLoading` Metric pulumi.StringInput // The title of the condition. Must be between 1 and 64 characters, inclusive. Name pulumi.StringPtrInput // 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 type of condition. One of: `apmAppMetric`, `apmKtMetric`, `browserMetric`, `mobileMetric` Type pulumi.StringInput // A custom metric to be evaluated. UserDefinedMetric pulumi.StringPtrInput // One of: `average`, `min`, `max`, `total`, or `sampleSize`. UserDefinedValueFunction pulumi.StringPtrInput // Automatically close instance-based violations, including JVM health metric violations, after the number of hours specified. Must be: `1`, `2`, `4`, `8`, `12` or `24`. ViolationCloseTimer pulumi.IntPtrInput }
The set of arguments for constructing a AlertCondition resource.
func (AlertConditionArgs) ElementType ¶
func (AlertConditionArgs) ElementType() reflect.Type
type AlertConditionState ¶
type AlertConditionState struct { // `application` or `instance`. Choose `application` for most scenarios. If you are using the JVM plugin in New Relic, the `instance` setting allows your condition to trigger [for specific app instances](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances). ConditionScope pulumi.StringPtrInput // Whether the condition is enabled or not. Defaults to true. Enabled pulumi.BoolPtrInput // The instance IDs associated with this condition. Entities pulumi.IntArrayInput // A valid Garbage Collection metric e.g. `GC/G1 Young Generation`. GcMetric pulumi.StringPtrInput // The metric field accepts parameters based on the `type` set. One of these metrics based on `type`: // * `apmAppMetric` // * `apdex` // * `errorPercentage` // * `responseTimeBackground` // * `responseTimeWeb` // * `throughputBackground` // * `throughputWeb` // * `userDefined` // * `apmKtMetric` // * `apdex` // * `errorCount` // * `errorPercentage` // * `responseTime` // * `throughput` // * `browserMetric` // * `ajaxResponseTime` // * `ajaxThroughput` // * `domProcessing` // * `endUserApdex` // * `network` // * `pageRendering` // * `pageViewThroughput` // * `pageViewsWithJsErrors` // * `requestQueuing` // * `totalPageLoad` // * `userDefined` // * `webApplication` // * `mobileMetric` // * `database` // * `images` // * `json` // * `mobileCrashRate` // * `networkErrorPercentage` // * `network` // * `statusErrorPercentage` // * `userDefined` // * `viewLoading` Metric pulumi.StringPtrInput // The title of the condition. Must be between 1 and 64 characters, inclusive. Name 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 type of condition. One of: `apmAppMetric`, `apmKtMetric`, `browserMetric`, `mobileMetric` Type pulumi.StringPtrInput // A custom metric to be evaluated. UserDefinedMetric pulumi.StringPtrInput // One of: `average`, `min`, `max`, `total`, or `sampleSize`. UserDefinedValueFunction pulumi.StringPtrInput // Automatically close instance-based violations, including JVM health metric violations, after the number of hours specified. Must be: `1`, `2`, `4`, `8`, `12` or `24`. ViolationCloseTimer pulumi.IntPtrInput }
func (AlertConditionState) ElementType ¶
func (AlertConditionState) ElementType() reflect.Type
type AlertConditionTerm ¶
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) ElementType() reflect.Type
func (AlertConditionTermArrayOutput) Index ¶
func (o AlertConditionTermArrayOutput) Index(i pulumi.IntInput) AlertConditionTermOutput
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 (o AlertConditionTermOutput) Duration() pulumi.IntOutput
func (AlertConditionTermOutput) ElementType ¶
func (AlertConditionTermOutput) ElementType() reflect.Type
func (AlertConditionTermOutput) Operator ¶
func (o AlertConditionTermOutput) Operator() pulumi.StringPtrOutput
func (AlertConditionTermOutput) Priority ¶
func (o AlertConditionTermOutput) Priority() pulumi.StringPtrOutput
func (AlertConditionTermOutput) Threshold ¶
func (o AlertConditionTermOutput) Threshold() pulumi.Float64Output
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 AlertMutingRule ¶ added in v3.3.0
type AlertMutingRule struct { pulumi.CustomResourceState // The account id of the MutingRule. AccountId pulumi.IntOutput `pulumi:"accountId"` // The condition that defines which violations to target. See Nested condition blocks below for details. Condition AlertMutingRuleConditionOutput `pulumi:"condition"` // The description of the MutingRule. Description pulumi.StringPtrOutput `pulumi:"description"` // Whether the MutingRule is enabled. Enabled pulumi.BoolOutput `pulumi:"enabled"` // The name of the MutingRule. Name pulumi.StringOutput `pulumi:"name"` }
func GetAlertMutingRule ¶ added in v3.3.0
func GetAlertMutingRule(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AlertMutingRuleState, opts ...pulumi.ResourceOption) (*AlertMutingRule, error)
GetAlertMutingRule gets an existing AlertMutingRule 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 NewAlertMutingRule ¶ added in v3.3.0
func NewAlertMutingRule(ctx *pulumi.Context, name string, args *AlertMutingRuleArgs, opts ...pulumi.ResourceOption) (*AlertMutingRule, error)
NewAlertMutingRule registers a new resource with the given unique name, arguments, and options.
type AlertMutingRuleArgs ¶ added in v3.3.0
type AlertMutingRuleArgs struct { // The account id of the MutingRule. AccountId pulumi.IntPtrInput // The condition that defines which violations to target. See Nested condition blocks below for details. Condition AlertMutingRuleConditionInput // The description of the MutingRule. Description pulumi.StringPtrInput // Whether the MutingRule is enabled. Enabled pulumi.BoolInput // The name of the MutingRule. Name pulumi.StringPtrInput }
The set of arguments for constructing a AlertMutingRule resource.
func (AlertMutingRuleArgs) ElementType ¶ added in v3.3.0
func (AlertMutingRuleArgs) ElementType() reflect.Type
type AlertMutingRuleCondition ¶ added in v3.3.0
type AlertMutingRuleCondition struct { // The individual MutingRuleConditions within the group. See Nested conditions blocks below for details. Conditions []AlertMutingRuleConditionCondition `pulumi:"conditions"` // The operator used to combine all the MutingRuleConditions within the group. Operator string `pulumi:"operator"` }
type AlertMutingRuleConditionArgs ¶ added in v3.3.0
type AlertMutingRuleConditionArgs struct { // The individual MutingRuleConditions within the group. See Nested conditions blocks below for details. Conditions AlertMutingRuleConditionConditionArrayInput `pulumi:"conditions"` // The operator used to combine all the MutingRuleConditions within the group. Operator pulumi.StringInput `pulumi:"operator"` }
func (AlertMutingRuleConditionArgs) ElementType ¶ added in v3.3.0
func (AlertMutingRuleConditionArgs) ElementType() reflect.Type
func (AlertMutingRuleConditionArgs) ToAlertMutingRuleConditionOutput ¶ added in v3.3.0
func (i AlertMutingRuleConditionArgs) ToAlertMutingRuleConditionOutput() AlertMutingRuleConditionOutput
func (AlertMutingRuleConditionArgs) ToAlertMutingRuleConditionOutputWithContext ¶ added in v3.3.0
func (i AlertMutingRuleConditionArgs) ToAlertMutingRuleConditionOutputWithContext(ctx context.Context) AlertMutingRuleConditionOutput
func (AlertMutingRuleConditionArgs) ToAlertMutingRuleConditionPtrOutput ¶ added in v3.3.0
func (i AlertMutingRuleConditionArgs) ToAlertMutingRuleConditionPtrOutput() AlertMutingRuleConditionPtrOutput
func (AlertMutingRuleConditionArgs) ToAlertMutingRuleConditionPtrOutputWithContext ¶ added in v3.3.0
func (i AlertMutingRuleConditionArgs) ToAlertMutingRuleConditionPtrOutputWithContext(ctx context.Context) AlertMutingRuleConditionPtrOutput
type AlertMutingRuleConditionCondition ¶ added in v3.3.0
type AlertMutingRuleConditionCondition struct { // The attribute on a violation. Attribute string `pulumi:"attribute"` // The operator used to compare the attribute's value with the supplied value(s) Operator string `pulumi:"operator"` // The value(s) to compare against the attribute's value. Values []string `pulumi:"values"` }
type AlertMutingRuleConditionConditionArgs ¶ added in v3.3.0
type AlertMutingRuleConditionConditionArgs struct { // The attribute on a violation. Attribute pulumi.StringInput `pulumi:"attribute"` // The operator used to compare the attribute's value with the supplied value(s) Operator pulumi.StringInput `pulumi:"operator"` // The value(s) to compare against the attribute's value. Values pulumi.StringArrayInput `pulumi:"values"` }
func (AlertMutingRuleConditionConditionArgs) ElementType ¶ added in v3.3.0
func (AlertMutingRuleConditionConditionArgs) ElementType() reflect.Type
func (AlertMutingRuleConditionConditionArgs) ToAlertMutingRuleConditionConditionOutput ¶ added in v3.3.0
func (i AlertMutingRuleConditionConditionArgs) ToAlertMutingRuleConditionConditionOutput() AlertMutingRuleConditionConditionOutput
func (AlertMutingRuleConditionConditionArgs) ToAlertMutingRuleConditionConditionOutputWithContext ¶ added in v3.3.0
func (i AlertMutingRuleConditionConditionArgs) ToAlertMutingRuleConditionConditionOutputWithContext(ctx context.Context) AlertMutingRuleConditionConditionOutput
type AlertMutingRuleConditionConditionArray ¶ added in v3.3.0
type AlertMutingRuleConditionConditionArray []AlertMutingRuleConditionConditionInput
func (AlertMutingRuleConditionConditionArray) ElementType ¶ added in v3.3.0
func (AlertMutingRuleConditionConditionArray) ElementType() reflect.Type
func (AlertMutingRuleConditionConditionArray) ToAlertMutingRuleConditionConditionArrayOutput ¶ added in v3.3.0
func (i AlertMutingRuleConditionConditionArray) ToAlertMutingRuleConditionConditionArrayOutput() AlertMutingRuleConditionConditionArrayOutput
func (AlertMutingRuleConditionConditionArray) ToAlertMutingRuleConditionConditionArrayOutputWithContext ¶ added in v3.3.0
func (i AlertMutingRuleConditionConditionArray) ToAlertMutingRuleConditionConditionArrayOutputWithContext(ctx context.Context) AlertMutingRuleConditionConditionArrayOutput
type AlertMutingRuleConditionConditionArrayInput ¶ added in v3.3.0
type AlertMutingRuleConditionConditionArrayInput interface { pulumi.Input ToAlertMutingRuleConditionConditionArrayOutput() AlertMutingRuleConditionConditionArrayOutput ToAlertMutingRuleConditionConditionArrayOutputWithContext(context.Context) AlertMutingRuleConditionConditionArrayOutput }
AlertMutingRuleConditionConditionArrayInput is an input type that accepts AlertMutingRuleConditionConditionArray and AlertMutingRuleConditionConditionArrayOutput values. You can construct a concrete instance of `AlertMutingRuleConditionConditionArrayInput` via:
AlertMutingRuleConditionConditionArray{ AlertMutingRuleConditionConditionArgs{...} }
type AlertMutingRuleConditionConditionArrayOutput ¶ added in v3.3.0
type AlertMutingRuleConditionConditionArrayOutput struct{ *pulumi.OutputState }
func (AlertMutingRuleConditionConditionArrayOutput) ElementType ¶ added in v3.3.0
func (AlertMutingRuleConditionConditionArrayOutput) ElementType() reflect.Type
func (AlertMutingRuleConditionConditionArrayOutput) ToAlertMutingRuleConditionConditionArrayOutput ¶ added in v3.3.0
func (o AlertMutingRuleConditionConditionArrayOutput) ToAlertMutingRuleConditionConditionArrayOutput() AlertMutingRuleConditionConditionArrayOutput
func (AlertMutingRuleConditionConditionArrayOutput) ToAlertMutingRuleConditionConditionArrayOutputWithContext ¶ added in v3.3.0
func (o AlertMutingRuleConditionConditionArrayOutput) ToAlertMutingRuleConditionConditionArrayOutputWithContext(ctx context.Context) AlertMutingRuleConditionConditionArrayOutput
type AlertMutingRuleConditionConditionInput ¶ added in v3.3.0
type AlertMutingRuleConditionConditionInput interface { pulumi.Input ToAlertMutingRuleConditionConditionOutput() AlertMutingRuleConditionConditionOutput ToAlertMutingRuleConditionConditionOutputWithContext(context.Context) AlertMutingRuleConditionConditionOutput }
AlertMutingRuleConditionConditionInput is an input type that accepts AlertMutingRuleConditionConditionArgs and AlertMutingRuleConditionConditionOutput values. You can construct a concrete instance of `AlertMutingRuleConditionConditionInput` via:
AlertMutingRuleConditionConditionArgs{...}
type AlertMutingRuleConditionConditionOutput ¶ added in v3.3.0
type AlertMutingRuleConditionConditionOutput struct{ *pulumi.OutputState }
func (AlertMutingRuleConditionConditionOutput) Attribute ¶ added in v3.3.0
func (o AlertMutingRuleConditionConditionOutput) Attribute() pulumi.StringOutput
The attribute on a violation.
func (AlertMutingRuleConditionConditionOutput) ElementType ¶ added in v3.3.0
func (AlertMutingRuleConditionConditionOutput) ElementType() reflect.Type
func (AlertMutingRuleConditionConditionOutput) Operator ¶ added in v3.3.0
func (o AlertMutingRuleConditionConditionOutput) Operator() pulumi.StringOutput
The operator used to compare the attribute's value with the supplied value(s)
func (AlertMutingRuleConditionConditionOutput) ToAlertMutingRuleConditionConditionOutput ¶ added in v3.3.0
func (o AlertMutingRuleConditionConditionOutput) ToAlertMutingRuleConditionConditionOutput() AlertMutingRuleConditionConditionOutput
func (AlertMutingRuleConditionConditionOutput) ToAlertMutingRuleConditionConditionOutputWithContext ¶ added in v3.3.0
func (o AlertMutingRuleConditionConditionOutput) ToAlertMutingRuleConditionConditionOutputWithContext(ctx context.Context) AlertMutingRuleConditionConditionOutput
func (AlertMutingRuleConditionConditionOutput) Values ¶ added in v3.3.0
func (o AlertMutingRuleConditionConditionOutput) Values() pulumi.StringArrayOutput
The value(s) to compare against the attribute's value.
type AlertMutingRuleConditionInput ¶ added in v3.3.0
type AlertMutingRuleConditionInput interface { pulumi.Input ToAlertMutingRuleConditionOutput() AlertMutingRuleConditionOutput ToAlertMutingRuleConditionOutputWithContext(context.Context) AlertMutingRuleConditionOutput }
AlertMutingRuleConditionInput is an input type that accepts AlertMutingRuleConditionArgs and AlertMutingRuleConditionOutput values. You can construct a concrete instance of `AlertMutingRuleConditionInput` via:
AlertMutingRuleConditionArgs{...}
type AlertMutingRuleConditionOutput ¶ added in v3.3.0
type AlertMutingRuleConditionOutput struct{ *pulumi.OutputState }
func (AlertMutingRuleConditionOutput) Conditions ¶ added in v3.3.0
func (o AlertMutingRuleConditionOutput) Conditions() AlertMutingRuleConditionConditionArrayOutput
The individual MutingRuleConditions within the group. See Nested conditions blocks below for details.
func (AlertMutingRuleConditionOutput) ElementType ¶ added in v3.3.0
func (AlertMutingRuleConditionOutput) ElementType() reflect.Type
func (AlertMutingRuleConditionOutput) Operator ¶ added in v3.3.0
func (o AlertMutingRuleConditionOutput) Operator() pulumi.StringOutput
The operator used to combine all the MutingRuleConditions within the group.
func (AlertMutingRuleConditionOutput) ToAlertMutingRuleConditionOutput ¶ added in v3.3.0
func (o AlertMutingRuleConditionOutput) ToAlertMutingRuleConditionOutput() AlertMutingRuleConditionOutput
func (AlertMutingRuleConditionOutput) ToAlertMutingRuleConditionOutputWithContext ¶ added in v3.3.0
func (o AlertMutingRuleConditionOutput) ToAlertMutingRuleConditionOutputWithContext(ctx context.Context) AlertMutingRuleConditionOutput
func (AlertMutingRuleConditionOutput) ToAlertMutingRuleConditionPtrOutput ¶ added in v3.3.0
func (o AlertMutingRuleConditionOutput) ToAlertMutingRuleConditionPtrOutput() AlertMutingRuleConditionPtrOutput
func (AlertMutingRuleConditionOutput) ToAlertMutingRuleConditionPtrOutputWithContext ¶ added in v3.3.0
func (o AlertMutingRuleConditionOutput) ToAlertMutingRuleConditionPtrOutputWithContext(ctx context.Context) AlertMutingRuleConditionPtrOutput
type AlertMutingRuleConditionPtrInput ¶ added in v3.3.0
type AlertMutingRuleConditionPtrInput interface { pulumi.Input ToAlertMutingRuleConditionPtrOutput() AlertMutingRuleConditionPtrOutput ToAlertMutingRuleConditionPtrOutputWithContext(context.Context) AlertMutingRuleConditionPtrOutput }
AlertMutingRuleConditionPtrInput is an input type that accepts AlertMutingRuleConditionArgs, AlertMutingRuleConditionPtr and AlertMutingRuleConditionPtrOutput values. You can construct a concrete instance of `AlertMutingRuleConditionPtrInput` via:
AlertMutingRuleConditionArgs{...} or: nil
func AlertMutingRuleConditionPtr ¶ added in v3.3.0
func AlertMutingRuleConditionPtr(v *AlertMutingRuleConditionArgs) AlertMutingRuleConditionPtrInput
type AlertMutingRuleConditionPtrOutput ¶ added in v3.3.0
type AlertMutingRuleConditionPtrOutput struct{ *pulumi.OutputState }
func (AlertMutingRuleConditionPtrOutput) Conditions ¶ added in v3.3.0
func (o AlertMutingRuleConditionPtrOutput) Conditions() AlertMutingRuleConditionConditionArrayOutput
The individual MutingRuleConditions within the group. See Nested conditions blocks below for details.
func (AlertMutingRuleConditionPtrOutput) Elem ¶ added in v3.3.0
func (o AlertMutingRuleConditionPtrOutput) Elem() AlertMutingRuleConditionOutput
func (AlertMutingRuleConditionPtrOutput) ElementType ¶ added in v3.3.0
func (AlertMutingRuleConditionPtrOutput) ElementType() reflect.Type
func (AlertMutingRuleConditionPtrOutput) Operator ¶ added in v3.3.0
func (o AlertMutingRuleConditionPtrOutput) Operator() pulumi.StringPtrOutput
The operator used to combine all the MutingRuleConditions within the group.
func (AlertMutingRuleConditionPtrOutput) ToAlertMutingRuleConditionPtrOutput ¶ added in v3.3.0
func (o AlertMutingRuleConditionPtrOutput) ToAlertMutingRuleConditionPtrOutput() AlertMutingRuleConditionPtrOutput
func (AlertMutingRuleConditionPtrOutput) ToAlertMutingRuleConditionPtrOutputWithContext ¶ added in v3.3.0
func (o AlertMutingRuleConditionPtrOutput) ToAlertMutingRuleConditionPtrOutputWithContext(ctx context.Context) AlertMutingRuleConditionPtrOutput
type AlertMutingRuleState ¶ added in v3.3.0
type AlertMutingRuleState struct { // The account id of the MutingRule. AccountId pulumi.IntPtrInput // The condition that defines which violations to target. See Nested condition blocks below for details. Condition AlertMutingRuleConditionPtrInput // The description of the MutingRule. Description pulumi.StringPtrInput // Whether the MutingRule is enabled. Enabled pulumi.BoolPtrInput // The name of the MutingRule. Name pulumi.StringPtrInput }
func (AlertMutingRuleState) ElementType ¶ added in v3.3.0
func (AlertMutingRuleState) ElementType() reflect.Type
type AlertPolicy ¶
type AlertPolicy struct { pulumi.CustomResourceState // The New Relic account ID to operate on. This allows the user to override the `accountId` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`. AccountId pulumi.IntOutput `pulumi:"accountId"` // An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs _cannot_ be imported. ChannelIds pulumi.IntArrayOutput `pulumi:"channelIds"` // The rollup strategy for the policy. Options include: `PER_POLICY`, `PER_CONDITION`, or `PER_CONDITION_AND_TARGET`. The default is `PER_POLICY`. IncidentPreference pulumi.StringPtrOutput `pulumi:"incidentPreference"` // The name of the policy. Name pulumi.StringOutput `pulumi:"name"` }
Use this resource to create and manage New Relic alert policies.
## Example Usage ### Basic Usage
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v3/go/newrelic" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := newrelic.NewAlertPolicy(ctx, "foo", &newrelic.AlertPolicyArgs{ IncidentPreference: pulumi.String("PER_POLICY"), }) if err != nil { return err } return nil }) }
```
func GetAlertPolicy ¶
func GetAlertPolicy(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AlertPolicyState, opts ...pulumi.ResourceOption) (*AlertPolicy, error)
GetAlertPolicy gets an existing AlertPolicy 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 NewAlertPolicy ¶
func NewAlertPolicy(ctx *pulumi.Context, name string, args *AlertPolicyArgs, opts ...pulumi.ResourceOption) (*AlertPolicy, error)
NewAlertPolicy registers a new resource with the given unique name, arguments, and options.
type AlertPolicyArgs ¶
type AlertPolicyArgs struct { // The New Relic account ID to operate on. This allows the user to override the `accountId` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`. AccountId pulumi.IntPtrInput // An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs _cannot_ be imported. ChannelIds pulumi.IntArrayInput // The rollup strategy for the policy. Options include: `PER_POLICY`, `PER_CONDITION`, or `PER_CONDITION_AND_TARGET`. The default is `PER_POLICY`. IncidentPreference pulumi.StringPtrInput // The name of the policy. Name pulumi.StringPtrInput }
The set of arguments for constructing a AlertPolicy resource.
func (AlertPolicyArgs) ElementType ¶
func (AlertPolicyArgs) ElementType() reflect.Type
type AlertPolicyChannel ¶
type AlertPolicyChannel struct { pulumi.CustomResourceState // Array of channel IDs to apply to the specified policy. We recommended sorting channel IDs in ascending order to avoid drift in your state. ChannelIds pulumi.IntArrayOutput `pulumi:"channelIds"` // The ID of the policy. PolicyId pulumi.IntOutput `pulumi:"policyId"` }
Use this resource to map alert policies to alert channels in New Relic.
## Example Usage
The example below will apply multiple alert channels to an existing New Relic alert policy.
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v3/go/newrelic" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := newrelic.LookupAlertPolicy(ctx, &newrelic.LookupAlertPolicyArgs{ Name: "my-alert-policy", }, nil) if err != nil { return err } emailChannel, err := newrelic.NewAlertChannel(ctx, "emailChannel", &newrelic.AlertChannelArgs{ Type: pulumi.String("email"), Config: &newrelic.AlertChannelConfigArgs{ Recipients: pulumi.String("foo@example.com"), IncludeJsonAttachment: pulumi.String("1"), }, }) if err != nil { return err } slackChannel, err := newrelic.NewAlertChannel(ctx, "slackChannel", &newrelic.AlertChannelArgs{ Type: pulumi.String("slack"), Config: &newrelic.AlertChannelConfigArgs{ Channel: pulumi.String("#example-channel"), Url: pulumi.String("http://example-org.slack.com"), }, }) if err != nil { return err } _, err = newrelic.NewAlertPolicyChannel(ctx, "foo", &newrelic.AlertPolicyChannelArgs{ PolicyId: pulumi.Any(newrelic_alert_policy.Example_policy.Id), ChannelIds: pulumi.IntArray{ emailChannel.ID(), slackChannel.ID(), }, }) if err != nil { return err } return nil }) }
```
func GetAlertPolicyChannel ¶
func GetAlertPolicyChannel(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AlertPolicyChannelState, opts ...pulumi.ResourceOption) (*AlertPolicyChannel, error)
GetAlertPolicyChannel gets an existing AlertPolicyChannel 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 NewAlertPolicyChannel ¶
func NewAlertPolicyChannel(ctx *pulumi.Context, name string, args *AlertPolicyChannelArgs, opts ...pulumi.ResourceOption) (*AlertPolicyChannel, error)
NewAlertPolicyChannel registers a new resource with the given unique name, arguments, and options.
type AlertPolicyChannelArgs ¶
type AlertPolicyChannelArgs struct { // Array of channel IDs to apply to the specified policy. We recommended sorting channel IDs in ascending order to avoid drift in your state. ChannelIds pulumi.IntArrayInput // The ID of the policy. PolicyId pulumi.IntInput }
The set of arguments for constructing a AlertPolicyChannel resource.
func (AlertPolicyChannelArgs) ElementType ¶
func (AlertPolicyChannelArgs) ElementType() reflect.Type
type AlertPolicyChannelState ¶
type AlertPolicyChannelState struct { // Array of channel IDs to apply to the specified policy. We recommended sorting channel IDs in ascending order to avoid drift in your state. ChannelIds pulumi.IntArrayInput // The ID of the policy. PolicyId pulumi.IntPtrInput }
func (AlertPolicyChannelState) ElementType ¶
func (AlertPolicyChannelState) ElementType() reflect.Type
type AlertPolicyState ¶
type AlertPolicyState struct { // The New Relic account ID to operate on. This allows the user to override the `accountId` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`. AccountId pulumi.IntPtrInput // An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs _cannot_ be imported. ChannelIds pulumi.IntArrayInput // The rollup strategy for the policy. Options include: `PER_POLICY`, `PER_CONDITION`, or `PER_CONDITION_AND_TARGET`. The default is `PER_POLICY`. IncidentPreference pulumi.StringPtrInput // The name of the policy. Name pulumi.StringPtrInput }
func (AlertPolicyState) ElementType ¶
func (AlertPolicyState) ElementType() reflect.Type
type ApiAccessKey ¶ added in v3.3.0
type ApiAccessKey struct { pulumi.CustomResourceState // The New Relic account ID of the account you wish to create the API access key. AccountId pulumi.IntOutput `pulumi:"accountId"` // Required if `keyType = INGEST`. Valid options are `BROWSER` or `LICENSE`, case-sensitive. IngestType pulumi.StringOutput `pulumi:"ingestType"` // The actual API key. This attribute is masked and not be visible in your terminal, CI, etc. Key pulumi.StringOutput `pulumi:"key"` // What type of API key to create. Valid options are `INGEST` or `USER`, case-sensitive. KeyType pulumi.StringOutput `pulumi:"keyType"` // The name of the key. Name pulumi.StringOutput `pulumi:"name"` // Any notes about this ingest key. Notes pulumi.StringOutput `pulumi:"notes"` // Required if `keyType = USER`. The New Relic user ID yous wish to create the API access key for in an account. UserId pulumi.IntOutput `pulumi:"userId"` }
Use this resource to programmatically create and manage the following types of keys: - [Personal API keys](https://docs.newrelic.co.jp/docs/apis/get-started/intro-apis/types-new-relic-api-keys#personal-api-key) - License (or ingest) keys, including:
- General [license key](https://docs.newrelic.co.jp/docs/accounts/install-new-relic/account-setup/license-key) used for APM
- [Browser license key](https://docs.newrelic.co.jp/docs/browser/new-relic-browser/configuration/copy-browser-monitoring-license-key-app-id)
Please visit the New Relic article ['Use NerdGraph to manage license keys and personal API keys'](https://docs.newrelic.co.jp/docs/apis/nerdgraph/examples/use-nerdgraph-manage-license-keys-personal-api-keys) for more information.
> **IMPORTANT!** Please be very careful when updating existing `ApiAccessKey` resources as only `newrelic_api_access_key.name` and `newrelic_api_access_key.notes` are updatable. All other resource attributes will force a resource recreation which will invalidate the previous API key(s).
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v3/go/newrelic" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := newrelic.NewApiAccessKey(ctx, "foobar", &newrelic.ApiAccessKeyArgs{ AccountId: pulumi.Int(1234567), IngestType: pulumi.String("LICENSE"), KeyType: pulumi.String("INGEST"), Notes: pulumi.String("To be used with service X"), }) if err != nil { return err } return nil }) }
```
func GetApiAccessKey ¶ added in v3.3.0
func GetApiAccessKey(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ApiAccessKeyState, opts ...pulumi.ResourceOption) (*ApiAccessKey, error)
GetApiAccessKey gets an existing ApiAccessKey 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 NewApiAccessKey ¶ added in v3.3.0
func NewApiAccessKey(ctx *pulumi.Context, name string, args *ApiAccessKeyArgs, opts ...pulumi.ResourceOption) (*ApiAccessKey, error)
NewApiAccessKey registers a new resource with the given unique name, arguments, and options.
type ApiAccessKeyArgs ¶ added in v3.3.0
type ApiAccessKeyArgs struct { // The New Relic account ID of the account you wish to create the API access key. AccountId pulumi.IntInput // Required if `keyType = INGEST`. Valid options are `BROWSER` or `LICENSE`, case-sensitive. IngestType pulumi.StringPtrInput // What type of API key to create. Valid options are `INGEST` or `USER`, case-sensitive. KeyType pulumi.StringInput // The name of the key. Name pulumi.StringPtrInput // Any notes about this ingest key. Notes pulumi.StringPtrInput // Required if `keyType = USER`. The New Relic user ID yous wish to create the API access key for in an account. UserId pulumi.IntPtrInput }
The set of arguments for constructing a ApiAccessKey resource.
func (ApiAccessKeyArgs) ElementType ¶ added in v3.3.0
func (ApiAccessKeyArgs) ElementType() reflect.Type
type ApiAccessKeyState ¶ added in v3.3.0
type ApiAccessKeyState struct { // The New Relic account ID of the account you wish to create the API access key. AccountId pulumi.IntPtrInput // Required if `keyType = INGEST`. Valid options are `BROWSER` or `LICENSE`, case-sensitive. IngestType pulumi.StringPtrInput // The actual API key. This attribute is masked and not be visible in your terminal, CI, etc. Key pulumi.StringPtrInput // What type of API key to create. Valid options are `INGEST` or `USER`, case-sensitive. KeyType pulumi.StringPtrInput // The name of the key. Name pulumi.StringPtrInput // Any notes about this ingest key. Notes pulumi.StringPtrInput // Required if `keyType = USER`. The New Relic user ID yous wish to create the API access key for in an account. UserId pulumi.IntPtrInput }
func (ApiAccessKeyState) ElementType ¶ added in v3.3.0
func (ApiAccessKeyState) ElementType() reflect.Type
type Dashboard ¶
type Dashboard struct { pulumi.CustomResourceState // The URL for viewing the dashboard. DashboardUrl pulumi.StringOutput `pulumi:"dashboardUrl"` // Determines who can edit the dashboard in an account. Valid values are `all`, `editableByAll`, `editableByOwner`, or `readOnly`. Defaults to `editableByAll`. Editable pulumi.StringPtrOutput `pulumi:"editable"` // A nested block that describes a dashboard filter. Exactly one nested `filter` block is allowed. See Nested filter block below for details. Filter DashboardFilterPtrOutput `pulumi:"filter"` // The number of columns to use when organizing and displaying widgets. New Relic One supports a 3 column grid and a 12 column grid. New Relic Insights supports a 3 column grid. GridColumnCount pulumi.IntPtrOutput `pulumi:"gridColumnCount"` // The icon for the dashboard. Valid values are `adjust`, `archive`, `bar-chart`, `bell`, `bolt`, `bug`, `bullhorn`, `bullseye`, `clock-o`, `cloud`, `cog`, `comments-o`, `crosshairs`, `dashboard`, `envelope`, `fire`, `flag`, `flask`, `globe`, `heart`, `leaf`, `legal`, `life-ring`, `line-chart`, `magic`, `mobile`, `money`, `none`, `paper-plane`, `pie-chart`, `puzzle-piece`, `road`, `rocket`, `shopping-cart`, `sitemap`, `sliders`, `tablet`, `thumbs-down`, `thumbs-up`, `trophy`, `usd`, `user`, and `users`. Defaults to `bar-chart`. Icon pulumi.StringPtrOutput `pulumi:"icon"` // The title of the dashboard. Title pulumi.StringOutput `pulumi:"title"` // Determines who can see the dashboard in an account. Valid values are `all` or `owner`. Defaults to `all`. Visibility pulumi.StringPtrOutput `pulumi:"visibility"` // A nested block that describes a visualization. Up to 300 `widget` blocks are allowed in a dashboard definition. See Nested widget blocks below for details. Widgets DashboardWidgetArrayOutput `pulumi:"widgets"` }
Use this resource to create and manage New Relic dashboards.
## Example Usage ## Attribute Refence
In addition to all arguments above, the following attributes are exported:
- `dashboardUrl` - The URL for viewing the dashboard.
### Nested `widget` blocks
All nested `widget` blocks support the following common arguments:
- `title` - (Required) A title for the widget.
- `visualization` - (Required) How the widget visualizes data. Valid values are `billboard`, `gauge`, `billboardComparison`, `facetBarChart`, `facetedLineChart`, `facetPieChart`, `facetTable`, `facetedAreaChart`, `heatmap`, `attributeSheet`, `singleEvent`, `histogram`, `funnel`, `rawJson`, `eventFeed`, `eventTable`, `uniquesList`, `lineChart`, `comparisonLineChart`, `markdown`, and `metricLineChart`.
- `row` - (Required) Row position of widget from top left, starting at `1`.
- `column` - (Required) Column position of widget from top left, starting at `1`.
- `width` - (Optional) Width of the widget. Valid values are `1` to `3` inclusive. Defaults to `1`.
- `height` - (Optional) Height of the widget. Valid values are `1` to `3` inclusive. Defaults to `1`.
- `notes` - (Optional) Description of the widget.
Each `visualization` type supports an additional set of arguments:
- `billboard`, `billboardComparison`:
- `nrql` - (Required) Valid NRQL query string. See [Writing NRQL Queries](https://docs.newrelic.com/docs/insights/nrql-new-relic-query-language/using-nrql/introduction-nrql) for help.
- `thresholdRed` - (Optional) Threshold above which the displayed value will be styled with a red color.
- `thresholdYellow` - (Optional) Threshold above which the displayed value will be styled with a yellow color.
- `gauge`:
- `nrql` - (Required) Valid NRQL query string. See [Writing NRQL Queries](https://docs.newrelic.com/docs/insights/nrql-new-relic-query-language/using-nrql/introduction-nrql) for help.
- `thresholdRed` - (Required) Threshold above which the displayed value will be styled with a red color.
- `thresholdYellow` - (Optional) Threshold above which the displayed value will be styled with a yellow color.
- `facetBarChart`, `facetPieChart`, `facetTable`, `facetedAreaChart`, `facetedLineChart`, or `heatmap`:
- `nrql` - (Required) Valid NRQL query string. See [Writing NRQL Queries](https://docs.newrelic.com/docs/insights/nrql-new-relic-query-language/using-nrql/introduction-nrql) for help.
- `drilldownDashboardId` - (Optional) The ID of a dashboard to link to from the widget's facets.
- `attributeSheet`, `comparisonLineChart`, `eventFeed`, `eventTable`, `funnel`, `histogram`, `lineChart`, `rawJson`, `singleEvent`, or `uniquesList`:
- `nrql` - (Required) Valid NRQL query string. See [Writing NRQL Queries](https://docs.newrelic.com/docs/insights/nrql-new-relic-query-language/using-nrql/introduction-nrql) for help.
- `markdown`:
- `source` - (Required) The markdown source to be rendered in the widget.
- `metricLineChart`:
- `entityIds` - (Required) A collection of entity ids to display data for. These are typically application IDs.
- `metric` - (Required) A nested block that describes a metric. Nested `metric` blocks support the following arguments:
- `name` - (Required) The metric name to display.
- `values` - (Required) The metric values to display.
- `duration` - (Required) The duration, in ms, of the time window represented in the chart.
- `endTime` - (Optional) The end time of the time window represented in the chart in epoch time. When not set, the time window will end at the current time.
- `facet` - (Optional) Can be set to "host" to facet the metric data by host.
- `limit` - (Optional) The limit of distinct data series to display. Requires `orderBy` to be set.
- `orderBy` - (Optional) Set the order of the results. Required when using `limit`.
- `applicationBreakdown`:
- `entityIds` - (Required) A collection of entity IDs to display data. These are typically application IDs.
### Nested `filter` block
The optional filter block supports the following arguments:
- `eventTypes` - (Optional) A list of event types to enable filtering for.
- `attributes` - (Optional) A list of attributes belonging to the specified event types to enable filtering for.
func GetDashboard ¶
func GetDashboard(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DashboardState, opts ...pulumi.ResourceOption) (*Dashboard, error)
GetDashboard gets an existing Dashboard 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 NewDashboard ¶
func NewDashboard(ctx *pulumi.Context, name string, args *DashboardArgs, opts ...pulumi.ResourceOption) (*Dashboard, error)
NewDashboard registers a new resource with the given unique name, arguments, and options.
type DashboardArgs ¶
type DashboardArgs struct { // Determines who can edit the dashboard in an account. Valid values are `all`, `editableByAll`, `editableByOwner`, or `readOnly`. Defaults to `editableByAll`. Editable pulumi.StringPtrInput // A nested block that describes a dashboard filter. Exactly one nested `filter` block is allowed. See Nested filter block below for details. Filter DashboardFilterPtrInput // The number of columns to use when organizing and displaying widgets. New Relic One supports a 3 column grid and a 12 column grid. New Relic Insights supports a 3 column grid. GridColumnCount pulumi.IntPtrInput // The icon for the dashboard. Valid values are `adjust`, `archive`, `bar-chart`, `bell`, `bolt`, `bug`, `bullhorn`, `bullseye`, `clock-o`, `cloud`, `cog`, `comments-o`, `crosshairs`, `dashboard`, `envelope`, `fire`, `flag`, `flask`, `globe`, `heart`, `leaf`, `legal`, `life-ring`, `line-chart`, `magic`, `mobile`, `money`, `none`, `paper-plane`, `pie-chart`, `puzzle-piece`, `road`, `rocket`, `shopping-cart`, `sitemap`, `sliders`, `tablet`, `thumbs-down`, `thumbs-up`, `trophy`, `usd`, `user`, and `users`. Defaults to `bar-chart`. Icon pulumi.StringPtrInput // The title of the dashboard. Title pulumi.StringInput // Determines who can see the dashboard in an account. Valid values are `all` or `owner`. Defaults to `all`. Visibility pulumi.StringPtrInput // A nested block that describes a visualization. Up to 300 `widget` blocks are allowed in a dashboard definition. See Nested widget blocks below for details. Widgets DashboardWidgetArrayInput }
The set of arguments for constructing a Dashboard resource.
func (DashboardArgs) ElementType ¶
func (DashboardArgs) ElementType() reflect.Type
type DashboardFilter ¶
type DashboardFilterArgs ¶
type DashboardFilterArgs struct { Attributes pulumi.StringArrayInput `pulumi:"attributes"` EventTypes pulumi.StringArrayInput `pulumi:"eventTypes"` }
func (DashboardFilterArgs) ElementType ¶
func (DashboardFilterArgs) ElementType() reflect.Type
func (DashboardFilterArgs) ToDashboardFilterOutput ¶
func (i DashboardFilterArgs) ToDashboardFilterOutput() DashboardFilterOutput
func (DashboardFilterArgs) ToDashboardFilterOutputWithContext ¶
func (i DashboardFilterArgs) ToDashboardFilterOutputWithContext(ctx context.Context) DashboardFilterOutput
func (DashboardFilterArgs) ToDashboardFilterPtrOutput ¶
func (i DashboardFilterArgs) ToDashboardFilterPtrOutput() DashboardFilterPtrOutput
func (DashboardFilterArgs) ToDashboardFilterPtrOutputWithContext ¶
func (i DashboardFilterArgs) ToDashboardFilterPtrOutputWithContext(ctx context.Context) DashboardFilterPtrOutput
type DashboardFilterInput ¶
type DashboardFilterInput interface { pulumi.Input ToDashboardFilterOutput() DashboardFilterOutput ToDashboardFilterOutputWithContext(context.Context) DashboardFilterOutput }
DashboardFilterInput is an input type that accepts DashboardFilterArgs and DashboardFilterOutput values. You can construct a concrete instance of `DashboardFilterInput` via:
DashboardFilterArgs{...}
type DashboardFilterOutput ¶
type DashboardFilterOutput struct{ *pulumi.OutputState }
func (DashboardFilterOutput) Attributes ¶
func (o DashboardFilterOutput) Attributes() pulumi.StringArrayOutput
func (DashboardFilterOutput) ElementType ¶
func (DashboardFilterOutput) ElementType() reflect.Type
func (DashboardFilterOutput) EventTypes ¶
func (o DashboardFilterOutput) EventTypes() pulumi.StringArrayOutput
func (DashboardFilterOutput) ToDashboardFilterOutput ¶
func (o DashboardFilterOutput) ToDashboardFilterOutput() DashboardFilterOutput
func (DashboardFilterOutput) ToDashboardFilterOutputWithContext ¶
func (o DashboardFilterOutput) ToDashboardFilterOutputWithContext(ctx context.Context) DashboardFilterOutput
func (DashboardFilterOutput) ToDashboardFilterPtrOutput ¶
func (o DashboardFilterOutput) ToDashboardFilterPtrOutput() DashboardFilterPtrOutput
func (DashboardFilterOutput) ToDashboardFilterPtrOutputWithContext ¶
func (o DashboardFilterOutput) ToDashboardFilterPtrOutputWithContext(ctx context.Context) DashboardFilterPtrOutput
type DashboardFilterPtrInput ¶
type DashboardFilterPtrInput interface { pulumi.Input ToDashboardFilterPtrOutput() DashboardFilterPtrOutput ToDashboardFilterPtrOutputWithContext(context.Context) DashboardFilterPtrOutput }
DashboardFilterPtrInput is an input type that accepts DashboardFilterArgs, DashboardFilterPtr and DashboardFilterPtrOutput values. You can construct a concrete instance of `DashboardFilterPtrInput` via:
DashboardFilterArgs{...} or: nil
func DashboardFilterPtr ¶
func DashboardFilterPtr(v *DashboardFilterArgs) DashboardFilterPtrInput
type DashboardFilterPtrOutput ¶
type DashboardFilterPtrOutput struct{ *pulumi.OutputState }
func (DashboardFilterPtrOutput) Attributes ¶
func (o DashboardFilterPtrOutput) Attributes() pulumi.StringArrayOutput
func (DashboardFilterPtrOutput) Elem ¶
func (o DashboardFilterPtrOutput) Elem() DashboardFilterOutput
func (DashboardFilterPtrOutput) ElementType ¶
func (DashboardFilterPtrOutput) ElementType() reflect.Type
func (DashboardFilterPtrOutput) EventTypes ¶
func (o DashboardFilterPtrOutput) EventTypes() pulumi.StringArrayOutput
func (DashboardFilterPtrOutput) ToDashboardFilterPtrOutput ¶
func (o DashboardFilterPtrOutput) ToDashboardFilterPtrOutput() DashboardFilterPtrOutput
func (DashboardFilterPtrOutput) ToDashboardFilterPtrOutputWithContext ¶
func (o DashboardFilterPtrOutput) ToDashboardFilterPtrOutputWithContext(ctx context.Context) DashboardFilterPtrOutput
type DashboardState ¶
type DashboardState struct { // The URL for viewing the dashboard. DashboardUrl pulumi.StringPtrInput // Determines who can edit the dashboard in an account. Valid values are `all`, `editableByAll`, `editableByOwner`, or `readOnly`. Defaults to `editableByAll`. Editable pulumi.StringPtrInput // A nested block that describes a dashboard filter. Exactly one nested `filter` block is allowed. See Nested filter block below for details. Filter DashboardFilterPtrInput // The number of columns to use when organizing and displaying widgets. New Relic One supports a 3 column grid and a 12 column grid. New Relic Insights supports a 3 column grid. GridColumnCount pulumi.IntPtrInput // The icon for the dashboard. Valid values are `adjust`, `archive`, `bar-chart`, `bell`, `bolt`, `bug`, `bullhorn`, `bullseye`, `clock-o`, `cloud`, `cog`, `comments-o`, `crosshairs`, `dashboard`, `envelope`, `fire`, `flag`, `flask`, `globe`, `heart`, `leaf`, `legal`, `life-ring`, `line-chart`, `magic`, `mobile`, `money`, `none`, `paper-plane`, `pie-chart`, `puzzle-piece`, `road`, `rocket`, `shopping-cart`, `sitemap`, `sliders`, `tablet`, `thumbs-down`, `thumbs-up`, `trophy`, `usd`, `user`, and `users`. Defaults to `bar-chart`. Icon pulumi.StringPtrInput // The title of the dashboard. Title pulumi.StringPtrInput // Determines who can see the dashboard in an account. Valid values are `all` or `owner`. Defaults to `all`. Visibility pulumi.StringPtrInput // A nested block that describes a visualization. Up to 300 `widget` blocks are allowed in a dashboard definition. See Nested widget blocks below for details. Widgets DashboardWidgetArrayInput }
func (DashboardState) ElementType ¶
func (DashboardState) ElementType() reflect.Type
type DashboardWidget ¶
type DashboardWidget struct { Column int `pulumi:"column"` CompareWiths []DashboardWidgetCompareWith `pulumi:"compareWiths"` DrilldownDashboardId *int `pulumi:"drilldownDashboardId"` Duration *int `pulumi:"duration"` EndTime *int `pulumi:"endTime"` EntityIds []int `pulumi:"entityIds"` Facet *string `pulumi:"facet"` Height *int `pulumi:"height"` Limit *int `pulumi:"limit"` Metrics []DashboardWidgetMetric `pulumi:"metrics"` Notes *string `pulumi:"notes"` Nrql *string `pulumi:"nrql"` OrderBy *string `pulumi:"orderBy"` RawMetricName *string `pulumi:"rawMetricName"` Row int `pulumi:"row"` Source *string `pulumi:"source"` ThresholdRed *float64 `pulumi:"thresholdRed"` ThresholdYellow *float64 `pulumi:"thresholdYellow"` // The title of the dashboard. Title string `pulumi:"title"` Visualization string `pulumi:"visualization"` WidgetId *int `pulumi:"widgetId"` Width *int `pulumi:"width"` }
type DashboardWidgetArgs ¶
type DashboardWidgetArgs struct { Column pulumi.IntInput `pulumi:"column"` CompareWiths DashboardWidgetCompareWithArrayInput `pulumi:"compareWiths"` DrilldownDashboardId pulumi.IntPtrInput `pulumi:"drilldownDashboardId"` Duration pulumi.IntPtrInput `pulumi:"duration"` EndTime pulumi.IntPtrInput `pulumi:"endTime"` EntityIds pulumi.IntArrayInput `pulumi:"entityIds"` Facet pulumi.StringPtrInput `pulumi:"facet"` Height pulumi.IntPtrInput `pulumi:"height"` Limit pulumi.IntPtrInput `pulumi:"limit"` Metrics DashboardWidgetMetricArrayInput `pulumi:"metrics"` Notes pulumi.StringPtrInput `pulumi:"notes"` Nrql pulumi.StringPtrInput `pulumi:"nrql"` OrderBy pulumi.StringPtrInput `pulumi:"orderBy"` RawMetricName pulumi.StringPtrInput `pulumi:"rawMetricName"` Row pulumi.IntInput `pulumi:"row"` Source pulumi.StringPtrInput `pulumi:"source"` ThresholdRed pulumi.Float64PtrInput `pulumi:"thresholdRed"` ThresholdYellow pulumi.Float64PtrInput `pulumi:"thresholdYellow"` // The title of the dashboard. Title pulumi.StringInput `pulumi:"title"` Visualization pulumi.StringInput `pulumi:"visualization"` WidgetId pulumi.IntPtrInput `pulumi:"widgetId"` Width pulumi.IntPtrInput `pulumi:"width"` }
func (DashboardWidgetArgs) ElementType ¶
func (DashboardWidgetArgs) ElementType() reflect.Type
func (DashboardWidgetArgs) ToDashboardWidgetOutput ¶
func (i DashboardWidgetArgs) ToDashboardWidgetOutput() DashboardWidgetOutput
func (DashboardWidgetArgs) ToDashboardWidgetOutputWithContext ¶
func (i DashboardWidgetArgs) ToDashboardWidgetOutputWithContext(ctx context.Context) DashboardWidgetOutput
type DashboardWidgetArray ¶
type DashboardWidgetArray []DashboardWidgetInput
func (DashboardWidgetArray) ElementType ¶
func (DashboardWidgetArray) ElementType() reflect.Type
func (DashboardWidgetArray) ToDashboardWidgetArrayOutput ¶
func (i DashboardWidgetArray) ToDashboardWidgetArrayOutput() DashboardWidgetArrayOutput
func (DashboardWidgetArray) ToDashboardWidgetArrayOutputWithContext ¶
func (i DashboardWidgetArray) ToDashboardWidgetArrayOutputWithContext(ctx context.Context) DashboardWidgetArrayOutput
type DashboardWidgetArrayInput ¶
type DashboardWidgetArrayInput interface { pulumi.Input ToDashboardWidgetArrayOutput() DashboardWidgetArrayOutput ToDashboardWidgetArrayOutputWithContext(context.Context) DashboardWidgetArrayOutput }
DashboardWidgetArrayInput is an input type that accepts DashboardWidgetArray and DashboardWidgetArrayOutput values. You can construct a concrete instance of `DashboardWidgetArrayInput` via:
DashboardWidgetArray{ DashboardWidgetArgs{...} }
type DashboardWidgetArrayOutput ¶
type DashboardWidgetArrayOutput struct{ *pulumi.OutputState }
func (DashboardWidgetArrayOutput) ElementType ¶
func (DashboardWidgetArrayOutput) ElementType() reflect.Type
func (DashboardWidgetArrayOutput) Index ¶
func (o DashboardWidgetArrayOutput) Index(i pulumi.IntInput) DashboardWidgetOutput
func (DashboardWidgetArrayOutput) ToDashboardWidgetArrayOutput ¶
func (o DashboardWidgetArrayOutput) ToDashboardWidgetArrayOutput() DashboardWidgetArrayOutput
func (DashboardWidgetArrayOutput) ToDashboardWidgetArrayOutputWithContext ¶
func (o DashboardWidgetArrayOutput) ToDashboardWidgetArrayOutputWithContext(ctx context.Context) DashboardWidgetArrayOutput
type DashboardWidgetCompareWith ¶
type DashboardWidgetCompareWith struct { OffsetDuration string `pulumi:"offsetDuration"` Presentation DashboardWidgetCompareWithPresentation `pulumi:"presentation"` }
type DashboardWidgetCompareWithArgs ¶
type DashboardWidgetCompareWithArgs struct { OffsetDuration pulumi.StringInput `pulumi:"offsetDuration"` Presentation DashboardWidgetCompareWithPresentationInput `pulumi:"presentation"` }
func (DashboardWidgetCompareWithArgs) ElementType ¶
func (DashboardWidgetCompareWithArgs) ElementType() reflect.Type
func (DashboardWidgetCompareWithArgs) ToDashboardWidgetCompareWithOutput ¶
func (i DashboardWidgetCompareWithArgs) ToDashboardWidgetCompareWithOutput() DashboardWidgetCompareWithOutput
func (DashboardWidgetCompareWithArgs) ToDashboardWidgetCompareWithOutputWithContext ¶
func (i DashboardWidgetCompareWithArgs) ToDashboardWidgetCompareWithOutputWithContext(ctx context.Context) DashboardWidgetCompareWithOutput
type DashboardWidgetCompareWithArray ¶
type DashboardWidgetCompareWithArray []DashboardWidgetCompareWithInput
func (DashboardWidgetCompareWithArray) ElementType ¶
func (DashboardWidgetCompareWithArray) ElementType() reflect.Type
func (DashboardWidgetCompareWithArray) ToDashboardWidgetCompareWithArrayOutput ¶
func (i DashboardWidgetCompareWithArray) ToDashboardWidgetCompareWithArrayOutput() DashboardWidgetCompareWithArrayOutput
func (DashboardWidgetCompareWithArray) ToDashboardWidgetCompareWithArrayOutputWithContext ¶
func (i DashboardWidgetCompareWithArray) ToDashboardWidgetCompareWithArrayOutputWithContext(ctx context.Context) DashboardWidgetCompareWithArrayOutput
type DashboardWidgetCompareWithArrayInput ¶
type DashboardWidgetCompareWithArrayInput interface { pulumi.Input ToDashboardWidgetCompareWithArrayOutput() DashboardWidgetCompareWithArrayOutput ToDashboardWidgetCompareWithArrayOutputWithContext(context.Context) DashboardWidgetCompareWithArrayOutput }
DashboardWidgetCompareWithArrayInput is an input type that accepts DashboardWidgetCompareWithArray and DashboardWidgetCompareWithArrayOutput values. You can construct a concrete instance of `DashboardWidgetCompareWithArrayInput` via:
DashboardWidgetCompareWithArray{ DashboardWidgetCompareWithArgs{...} }
type DashboardWidgetCompareWithArrayOutput ¶
type DashboardWidgetCompareWithArrayOutput struct{ *pulumi.OutputState }
func (DashboardWidgetCompareWithArrayOutput) ElementType ¶
func (DashboardWidgetCompareWithArrayOutput) ElementType() reflect.Type
func (DashboardWidgetCompareWithArrayOutput) Index ¶
func (o DashboardWidgetCompareWithArrayOutput) Index(i pulumi.IntInput) DashboardWidgetCompareWithOutput
func (DashboardWidgetCompareWithArrayOutput) ToDashboardWidgetCompareWithArrayOutput ¶
func (o DashboardWidgetCompareWithArrayOutput) ToDashboardWidgetCompareWithArrayOutput() DashboardWidgetCompareWithArrayOutput
func (DashboardWidgetCompareWithArrayOutput) ToDashboardWidgetCompareWithArrayOutputWithContext ¶
func (o DashboardWidgetCompareWithArrayOutput) ToDashboardWidgetCompareWithArrayOutputWithContext(ctx context.Context) DashboardWidgetCompareWithArrayOutput
type DashboardWidgetCompareWithInput ¶
type DashboardWidgetCompareWithInput interface { pulumi.Input ToDashboardWidgetCompareWithOutput() DashboardWidgetCompareWithOutput ToDashboardWidgetCompareWithOutputWithContext(context.Context) DashboardWidgetCompareWithOutput }
DashboardWidgetCompareWithInput is an input type that accepts DashboardWidgetCompareWithArgs and DashboardWidgetCompareWithOutput values. You can construct a concrete instance of `DashboardWidgetCompareWithInput` via:
DashboardWidgetCompareWithArgs{...}
type DashboardWidgetCompareWithOutput ¶
type DashboardWidgetCompareWithOutput struct{ *pulumi.OutputState }
func (DashboardWidgetCompareWithOutput) ElementType ¶
func (DashboardWidgetCompareWithOutput) ElementType() reflect.Type
func (DashboardWidgetCompareWithOutput) OffsetDuration ¶
func (o DashboardWidgetCompareWithOutput) OffsetDuration() pulumi.StringOutput
func (DashboardWidgetCompareWithOutput) Presentation ¶
func (o DashboardWidgetCompareWithOutput) Presentation() DashboardWidgetCompareWithPresentationOutput
func (DashboardWidgetCompareWithOutput) ToDashboardWidgetCompareWithOutput ¶
func (o DashboardWidgetCompareWithOutput) ToDashboardWidgetCompareWithOutput() DashboardWidgetCompareWithOutput
func (DashboardWidgetCompareWithOutput) ToDashboardWidgetCompareWithOutputWithContext ¶
func (o DashboardWidgetCompareWithOutput) ToDashboardWidgetCompareWithOutputWithContext(ctx context.Context) DashboardWidgetCompareWithOutput
type DashboardWidgetCompareWithPresentationArgs ¶
type DashboardWidgetCompareWithPresentationArgs struct { Color pulumi.StringInput `pulumi:"color"` Name pulumi.StringInput `pulumi:"name"` }
func (DashboardWidgetCompareWithPresentationArgs) ElementType ¶
func (DashboardWidgetCompareWithPresentationArgs) ElementType() reflect.Type
func (DashboardWidgetCompareWithPresentationArgs) ToDashboardWidgetCompareWithPresentationOutput ¶
func (i DashboardWidgetCompareWithPresentationArgs) ToDashboardWidgetCompareWithPresentationOutput() DashboardWidgetCompareWithPresentationOutput
func (DashboardWidgetCompareWithPresentationArgs) ToDashboardWidgetCompareWithPresentationOutputWithContext ¶
func (i DashboardWidgetCompareWithPresentationArgs) ToDashboardWidgetCompareWithPresentationOutputWithContext(ctx context.Context) DashboardWidgetCompareWithPresentationOutput
type DashboardWidgetCompareWithPresentationInput ¶
type DashboardWidgetCompareWithPresentationInput interface { pulumi.Input ToDashboardWidgetCompareWithPresentationOutput() DashboardWidgetCompareWithPresentationOutput ToDashboardWidgetCompareWithPresentationOutputWithContext(context.Context) DashboardWidgetCompareWithPresentationOutput }
DashboardWidgetCompareWithPresentationInput is an input type that accepts DashboardWidgetCompareWithPresentationArgs and DashboardWidgetCompareWithPresentationOutput values. You can construct a concrete instance of `DashboardWidgetCompareWithPresentationInput` via:
DashboardWidgetCompareWithPresentationArgs{...}
type DashboardWidgetCompareWithPresentationOutput ¶
type DashboardWidgetCompareWithPresentationOutput struct{ *pulumi.OutputState }
func (DashboardWidgetCompareWithPresentationOutput) Color ¶
func (o DashboardWidgetCompareWithPresentationOutput) Color() pulumi.StringOutput
func (DashboardWidgetCompareWithPresentationOutput) ElementType ¶
func (DashboardWidgetCompareWithPresentationOutput) ElementType() reflect.Type
func (DashboardWidgetCompareWithPresentationOutput) Name ¶
func (o DashboardWidgetCompareWithPresentationOutput) Name() pulumi.StringOutput
func (DashboardWidgetCompareWithPresentationOutput) ToDashboardWidgetCompareWithPresentationOutput ¶
func (o DashboardWidgetCompareWithPresentationOutput) ToDashboardWidgetCompareWithPresentationOutput() DashboardWidgetCompareWithPresentationOutput
func (DashboardWidgetCompareWithPresentationOutput) ToDashboardWidgetCompareWithPresentationOutputWithContext ¶
func (o DashboardWidgetCompareWithPresentationOutput) ToDashboardWidgetCompareWithPresentationOutputWithContext(ctx context.Context) DashboardWidgetCompareWithPresentationOutput
type DashboardWidgetInput ¶
type DashboardWidgetInput interface { pulumi.Input ToDashboardWidgetOutput() DashboardWidgetOutput ToDashboardWidgetOutputWithContext(context.Context) DashboardWidgetOutput }
DashboardWidgetInput is an input type that accepts DashboardWidgetArgs and DashboardWidgetOutput values. You can construct a concrete instance of `DashboardWidgetInput` via:
DashboardWidgetArgs{...}
type DashboardWidgetMetric ¶
type DashboardWidgetMetricArgs ¶
type DashboardWidgetMetricArgs struct { Name pulumi.StringInput `pulumi:"name"` Scope pulumi.StringPtrInput `pulumi:"scope"` Units pulumi.StringPtrInput `pulumi:"units"` Values pulumi.StringArrayInput `pulumi:"values"` }
func (DashboardWidgetMetricArgs) ElementType ¶
func (DashboardWidgetMetricArgs) ElementType() reflect.Type
func (DashboardWidgetMetricArgs) ToDashboardWidgetMetricOutput ¶
func (i DashboardWidgetMetricArgs) ToDashboardWidgetMetricOutput() DashboardWidgetMetricOutput
func (DashboardWidgetMetricArgs) ToDashboardWidgetMetricOutputWithContext ¶
func (i DashboardWidgetMetricArgs) ToDashboardWidgetMetricOutputWithContext(ctx context.Context) DashboardWidgetMetricOutput
type DashboardWidgetMetricArray ¶
type DashboardWidgetMetricArray []DashboardWidgetMetricInput
func (DashboardWidgetMetricArray) ElementType ¶
func (DashboardWidgetMetricArray) ElementType() reflect.Type
func (DashboardWidgetMetricArray) ToDashboardWidgetMetricArrayOutput ¶
func (i DashboardWidgetMetricArray) ToDashboardWidgetMetricArrayOutput() DashboardWidgetMetricArrayOutput
func (DashboardWidgetMetricArray) ToDashboardWidgetMetricArrayOutputWithContext ¶
func (i DashboardWidgetMetricArray) ToDashboardWidgetMetricArrayOutputWithContext(ctx context.Context) DashboardWidgetMetricArrayOutput
type DashboardWidgetMetricArrayInput ¶
type DashboardWidgetMetricArrayInput interface { pulumi.Input ToDashboardWidgetMetricArrayOutput() DashboardWidgetMetricArrayOutput ToDashboardWidgetMetricArrayOutputWithContext(context.Context) DashboardWidgetMetricArrayOutput }
DashboardWidgetMetricArrayInput is an input type that accepts DashboardWidgetMetricArray and DashboardWidgetMetricArrayOutput values. You can construct a concrete instance of `DashboardWidgetMetricArrayInput` via:
DashboardWidgetMetricArray{ DashboardWidgetMetricArgs{...} }
type DashboardWidgetMetricArrayOutput ¶
type DashboardWidgetMetricArrayOutput struct{ *pulumi.OutputState }
func (DashboardWidgetMetricArrayOutput) ElementType ¶
func (DashboardWidgetMetricArrayOutput) ElementType() reflect.Type
func (DashboardWidgetMetricArrayOutput) Index ¶
func (o DashboardWidgetMetricArrayOutput) Index(i pulumi.IntInput) DashboardWidgetMetricOutput
func (DashboardWidgetMetricArrayOutput) ToDashboardWidgetMetricArrayOutput ¶
func (o DashboardWidgetMetricArrayOutput) ToDashboardWidgetMetricArrayOutput() DashboardWidgetMetricArrayOutput
func (DashboardWidgetMetricArrayOutput) ToDashboardWidgetMetricArrayOutputWithContext ¶
func (o DashboardWidgetMetricArrayOutput) ToDashboardWidgetMetricArrayOutputWithContext(ctx context.Context) DashboardWidgetMetricArrayOutput
type DashboardWidgetMetricInput ¶
type DashboardWidgetMetricInput interface { pulumi.Input ToDashboardWidgetMetricOutput() DashboardWidgetMetricOutput ToDashboardWidgetMetricOutputWithContext(context.Context) DashboardWidgetMetricOutput }
DashboardWidgetMetricInput is an input type that accepts DashboardWidgetMetricArgs and DashboardWidgetMetricOutput values. You can construct a concrete instance of `DashboardWidgetMetricInput` via:
DashboardWidgetMetricArgs{...}
type DashboardWidgetMetricOutput ¶
type DashboardWidgetMetricOutput struct{ *pulumi.OutputState }
func (DashboardWidgetMetricOutput) ElementType ¶
func (DashboardWidgetMetricOutput) ElementType() reflect.Type
func (DashboardWidgetMetricOutput) Name ¶
func (o DashboardWidgetMetricOutput) Name() pulumi.StringOutput
func (DashboardWidgetMetricOutput) Scope ¶
func (o DashboardWidgetMetricOutput) Scope() pulumi.StringPtrOutput
func (DashboardWidgetMetricOutput) ToDashboardWidgetMetricOutput ¶
func (o DashboardWidgetMetricOutput) ToDashboardWidgetMetricOutput() DashboardWidgetMetricOutput
func (DashboardWidgetMetricOutput) ToDashboardWidgetMetricOutputWithContext ¶
func (o DashboardWidgetMetricOutput) ToDashboardWidgetMetricOutputWithContext(ctx context.Context) DashboardWidgetMetricOutput
func (DashboardWidgetMetricOutput) Units ¶
func (o DashboardWidgetMetricOutput) Units() pulumi.StringPtrOutput
func (DashboardWidgetMetricOutput) Values ¶
func (o DashboardWidgetMetricOutput) Values() pulumi.StringArrayOutput
type DashboardWidgetOutput ¶
type DashboardWidgetOutput struct{ *pulumi.OutputState }
func (DashboardWidgetOutput) Column ¶
func (o DashboardWidgetOutput) Column() pulumi.IntOutput
func (DashboardWidgetOutput) CompareWiths ¶
func (o DashboardWidgetOutput) CompareWiths() DashboardWidgetCompareWithArrayOutput
func (DashboardWidgetOutput) DrilldownDashboardId ¶
func (o DashboardWidgetOutput) DrilldownDashboardId() pulumi.IntPtrOutput
func (DashboardWidgetOutput) Duration ¶
func (o DashboardWidgetOutput) Duration() pulumi.IntPtrOutput
func (DashboardWidgetOutput) ElementType ¶
func (DashboardWidgetOutput) ElementType() reflect.Type
func (DashboardWidgetOutput) EndTime ¶
func (o DashboardWidgetOutput) EndTime() pulumi.IntPtrOutput
func (DashboardWidgetOutput) EntityIds ¶
func (o DashboardWidgetOutput) EntityIds() pulumi.IntArrayOutput
func (DashboardWidgetOutput) Facet ¶
func (o DashboardWidgetOutput) Facet() pulumi.StringPtrOutput
func (DashboardWidgetOutput) Height ¶
func (o DashboardWidgetOutput) Height() pulumi.IntPtrOutput
func (DashboardWidgetOutput) Limit ¶
func (o DashboardWidgetOutput) Limit() pulumi.IntPtrOutput
func (DashboardWidgetOutput) Metrics ¶
func (o DashboardWidgetOutput) Metrics() DashboardWidgetMetricArrayOutput
func (DashboardWidgetOutput) Notes ¶
func (o DashboardWidgetOutput) Notes() pulumi.StringPtrOutput
func (DashboardWidgetOutput) Nrql ¶
func (o DashboardWidgetOutput) Nrql() pulumi.StringPtrOutput
func (DashboardWidgetOutput) OrderBy ¶
func (o DashboardWidgetOutput) OrderBy() pulumi.StringPtrOutput
func (DashboardWidgetOutput) RawMetricName ¶
func (o DashboardWidgetOutput) RawMetricName() pulumi.StringPtrOutput
func (DashboardWidgetOutput) Row ¶
func (o DashboardWidgetOutput) Row() pulumi.IntOutput
func (DashboardWidgetOutput) Source ¶
func (o DashboardWidgetOutput) Source() pulumi.StringPtrOutput
func (DashboardWidgetOutput) ThresholdRed ¶
func (o DashboardWidgetOutput) ThresholdRed() pulumi.Float64PtrOutput
func (DashboardWidgetOutput) ThresholdYellow ¶
func (o DashboardWidgetOutput) ThresholdYellow() pulumi.Float64PtrOutput
func (DashboardWidgetOutput) Title ¶
func (o DashboardWidgetOutput) Title() pulumi.StringOutput
The title of the dashboard.
func (DashboardWidgetOutput) ToDashboardWidgetOutput ¶
func (o DashboardWidgetOutput) ToDashboardWidgetOutput() DashboardWidgetOutput
func (DashboardWidgetOutput) ToDashboardWidgetOutputWithContext ¶
func (o DashboardWidgetOutput) ToDashboardWidgetOutputWithContext(ctx context.Context) DashboardWidgetOutput
func (DashboardWidgetOutput) Visualization ¶
func (o DashboardWidgetOutput) Visualization() pulumi.StringOutput
func (DashboardWidgetOutput) WidgetId ¶
func (o DashboardWidgetOutput) WidgetId() pulumi.IntPtrOutput
func (DashboardWidgetOutput) Width ¶
func (o DashboardWidgetOutput) Width() pulumi.IntPtrOutput
type EntityTags ¶
type EntityTags struct { pulumi.CustomResourceState // The guid of the entity to tag. Guid pulumi.StringOutput `pulumi:"guid"` // A nested block that describes an entity tag. See Nested tag blocks below for details. Tags EntityTagsTagArrayOutput `pulumi:"tags"` }
Use this resource to create, update, and delete tags for a New Relic One entity.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v3/go/newrelic" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { opt0 := "APPLICATION" opt1 := "APM" fooEntity, err := newrelic.GetEntity(ctx, &newrelic.GetEntityArgs{ Name: "Example application", Type: &opt0, Domain: &opt1, }, nil) if err != nil { return err } _, err = newrelic.NewEntityTags(ctx, "fooEntityTags", &newrelic.EntityTagsArgs{ Guid: pulumi.String(fooEntity.Guid), Tags: newrelic.EntityTagsTagArray{ &newrelic.EntityTagsTagArgs{ Key: pulumi.String("my-key"), Values: pulumi.StringArray{ pulumi.String("my-value"), pulumi.String("my-other-value"), }, }, &newrelic.EntityTagsTagArgs{ Key: pulumi.String("my-key-2"), Values: pulumi.StringArray{ pulumi.String("my-value-2"), }, }, }, }) if err != nil { return err } return nil }) }
```
func GetEntityTags ¶
func GetEntityTags(ctx *pulumi.Context, name string, id pulumi.IDInput, state *EntityTagsState, opts ...pulumi.ResourceOption) (*EntityTags, error)
GetEntityTags gets an existing EntityTags 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 NewEntityTags ¶
func NewEntityTags(ctx *pulumi.Context, name string, args *EntityTagsArgs, opts ...pulumi.ResourceOption) (*EntityTags, error)
NewEntityTags registers a new resource with the given unique name, arguments, and options.
type EntityTagsArgs ¶
type EntityTagsArgs struct { // The guid of the entity to tag. Guid pulumi.StringInput // A nested block that describes an entity tag. See Nested tag blocks below for details. Tags EntityTagsTagArrayInput }
The set of arguments for constructing a EntityTags resource.
func (EntityTagsArgs) ElementType ¶
func (EntityTagsArgs) ElementType() reflect.Type
type EntityTagsState ¶
type EntityTagsState struct { // The guid of the entity to tag. Guid pulumi.StringPtrInput // A nested block that describes an entity tag. See Nested tag blocks below for details. Tags EntityTagsTagArrayInput }
func (EntityTagsState) ElementType ¶
func (EntityTagsState) ElementType() reflect.Type
type EntityTagsTag ¶
type EntityTagsTagArgs ¶
type EntityTagsTagArgs struct { // The tag key. Key pulumi.StringInput `pulumi:"key"` // The tag values. Values pulumi.StringArrayInput `pulumi:"values"` }
func (EntityTagsTagArgs) ElementType ¶
func (EntityTagsTagArgs) ElementType() reflect.Type
func (EntityTagsTagArgs) ToEntityTagsTagOutput ¶
func (i EntityTagsTagArgs) ToEntityTagsTagOutput() EntityTagsTagOutput
func (EntityTagsTagArgs) ToEntityTagsTagOutputWithContext ¶
func (i EntityTagsTagArgs) ToEntityTagsTagOutputWithContext(ctx context.Context) EntityTagsTagOutput
type EntityTagsTagArray ¶
type EntityTagsTagArray []EntityTagsTagInput
func (EntityTagsTagArray) ElementType ¶
func (EntityTagsTagArray) ElementType() reflect.Type
func (EntityTagsTagArray) ToEntityTagsTagArrayOutput ¶
func (i EntityTagsTagArray) ToEntityTagsTagArrayOutput() EntityTagsTagArrayOutput
func (EntityTagsTagArray) ToEntityTagsTagArrayOutputWithContext ¶
func (i EntityTagsTagArray) ToEntityTagsTagArrayOutputWithContext(ctx context.Context) EntityTagsTagArrayOutput
type EntityTagsTagArrayInput ¶
type EntityTagsTagArrayInput interface { pulumi.Input ToEntityTagsTagArrayOutput() EntityTagsTagArrayOutput ToEntityTagsTagArrayOutputWithContext(context.Context) EntityTagsTagArrayOutput }
EntityTagsTagArrayInput is an input type that accepts EntityTagsTagArray and EntityTagsTagArrayOutput values. You can construct a concrete instance of `EntityTagsTagArrayInput` via:
EntityTagsTagArray{ EntityTagsTagArgs{...} }
type EntityTagsTagArrayOutput ¶
type EntityTagsTagArrayOutput struct{ *pulumi.OutputState }
func (EntityTagsTagArrayOutput) ElementType ¶
func (EntityTagsTagArrayOutput) ElementType() reflect.Type
func (EntityTagsTagArrayOutput) Index ¶
func (o EntityTagsTagArrayOutput) Index(i pulumi.IntInput) EntityTagsTagOutput
func (EntityTagsTagArrayOutput) ToEntityTagsTagArrayOutput ¶
func (o EntityTagsTagArrayOutput) ToEntityTagsTagArrayOutput() EntityTagsTagArrayOutput
func (EntityTagsTagArrayOutput) ToEntityTagsTagArrayOutputWithContext ¶
func (o EntityTagsTagArrayOutput) ToEntityTagsTagArrayOutputWithContext(ctx context.Context) EntityTagsTagArrayOutput
type EntityTagsTagInput ¶
type EntityTagsTagInput interface { pulumi.Input ToEntityTagsTagOutput() EntityTagsTagOutput ToEntityTagsTagOutputWithContext(context.Context) EntityTagsTagOutput }
EntityTagsTagInput is an input type that accepts EntityTagsTagArgs and EntityTagsTagOutput values. You can construct a concrete instance of `EntityTagsTagInput` via:
EntityTagsTagArgs{...}
type EntityTagsTagOutput ¶
type EntityTagsTagOutput struct{ *pulumi.OutputState }
func (EntityTagsTagOutput) ElementType ¶
func (EntityTagsTagOutput) ElementType() reflect.Type
func (EntityTagsTagOutput) Key ¶
func (o EntityTagsTagOutput) Key() pulumi.StringOutput
The tag key.
func (EntityTagsTagOutput) ToEntityTagsTagOutput ¶
func (o EntityTagsTagOutput) ToEntityTagsTagOutput() EntityTagsTagOutput
func (EntityTagsTagOutput) ToEntityTagsTagOutputWithContext ¶
func (o EntityTagsTagOutput) ToEntityTagsTagOutputWithContext(ctx context.Context) EntityTagsTagOutput
func (EntityTagsTagOutput) Values ¶
func (o EntityTagsTagOutput) Values() pulumi.StringArrayOutput
The tag values.
type EventsToMetricsRule ¶
type EventsToMetricsRule struct { pulumi.CustomResourceState // Account with the event and where the metrics will be put. AccountId pulumi.IntOutput `pulumi:"accountId"` // Provides additional information about the rule. Description pulumi.StringPtrOutput `pulumi:"description"` // True means this rule is enabled. False means the rule is currently not creating metrics. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // The name of the rule. This must be unique within an account. Name pulumi.StringOutput `pulumi:"name"` // Explains how to create metrics from events. Nrql pulumi.StringOutput `pulumi:"nrql"` // The id, uniquely identifying the rule. RuleId pulumi.StringOutput `pulumi:"ruleId"` }
Use this resource to create, update, and delete New Relic Events to Metrics rules.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v3/go/newrelic" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := newrelic.NewEventsToMetricsRule(ctx, "foo", &newrelic.EventsToMetricsRuleArgs{ AccountId: pulumi.Int(12345), Description: pulumi.String("Example description"), Nrql: pulumi.String("SELECT uniqueCount(account_id) AS ``Transaction.account_id`` FROM Transaction FACET appName, name"), }) if err != nil { return err } return nil }) }
```
func GetEventsToMetricsRule ¶
func GetEventsToMetricsRule(ctx *pulumi.Context, name string, id pulumi.IDInput, state *EventsToMetricsRuleState, opts ...pulumi.ResourceOption) (*EventsToMetricsRule, error)
GetEventsToMetricsRule gets an existing EventsToMetricsRule 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 NewEventsToMetricsRule ¶
func NewEventsToMetricsRule(ctx *pulumi.Context, name string, args *EventsToMetricsRuleArgs, opts ...pulumi.ResourceOption) (*EventsToMetricsRule, error)
NewEventsToMetricsRule registers a new resource with the given unique name, arguments, and options.
type EventsToMetricsRuleArgs ¶
type EventsToMetricsRuleArgs struct { // Account with the event and where the metrics will be put. AccountId pulumi.IntPtrInput // Provides additional information about the rule. Description pulumi.StringPtrInput // True means this rule is enabled. False means the rule is currently not creating metrics. Enabled pulumi.BoolPtrInput // The name of the rule. This must be unique within an account. Name pulumi.StringPtrInput // Explains how to create metrics from events. Nrql pulumi.StringInput }
The set of arguments for constructing a EventsToMetricsRule resource.
func (EventsToMetricsRuleArgs) ElementType ¶
func (EventsToMetricsRuleArgs) ElementType() reflect.Type
type EventsToMetricsRuleState ¶
type EventsToMetricsRuleState struct { // Account with the event and where the metrics will be put. AccountId pulumi.IntPtrInput // Provides additional information about the rule. Description pulumi.StringPtrInput // True means this rule is enabled. False means the rule is currently not creating metrics. Enabled pulumi.BoolPtrInput // The name of the rule. This must be unique within an account. Name pulumi.StringPtrInput // Explains how to create metrics from events. Nrql pulumi.StringPtrInput // The id, uniquely identifying the rule. RuleId pulumi.StringPtrInput }
func (EventsToMetricsRuleState) ElementType ¶
func (EventsToMetricsRuleState) ElementType() reflect.Type
type GetAccountArgs ¶
type GetAccountArgs struct { // The account ID in New Relic. AccountId *int `pulumi:"accountId"` // The account name in New Relic. Name *string `pulumi:"name"` // The scope of the account in New Relic. Valid values are "global" and "inRegion". Defaults to "inRegion". Scope *string `pulumi:"scope"` }
A collection of arguments for invoking getAccount.
type GetAccountResult ¶
type GetAccountResult struct { AccountId *int `pulumi:"accountId"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Name *string `pulumi:"name"` Scope *string `pulumi:"scope"` }
A collection of values returned by getAccount.
func GetAccount ¶
func GetAccount(ctx *pulumi.Context, args *GetAccountArgs, opts ...pulumi.InvokeOption) (*GetAccountResult, error)
Use this data source to get information about a specific account in New Relic. Accounts can be located by ID or name. Exactly one of the two attributes is required.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v3/go/newrelic" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { opt0 := "global" _, err := newrelic.GetAccount(ctx, &newrelic.GetAccountArgs{ Scope: &opt0, }, nil) if err != nil { return err } return nil }) }
```
type GetAlertChannelConfig ¶
type GetAlertChannelConfig struct { ApiKey *string `pulumi:"apiKey"` AuthPassword *string `pulumi:"authPassword"` AuthType *string `pulumi:"authType"` AuthUsername *string `pulumi:"authUsername"` BaseUrl *string `pulumi:"baseUrl"` Channel *string `pulumi:"channel"` Headers map[string]string `pulumi:"headers"` IncludeJsonAttachment *string `pulumi:"includeJsonAttachment"` Key *string `pulumi:"key"` Payload map[string]string `pulumi:"payload"` PayloadType *string `pulumi:"payloadType"` Recipients *string `pulumi:"recipients"` Region *string `pulumi:"region"` RouteKey *string `pulumi:"routeKey"` ServiceKey *string `pulumi:"serviceKey"` Tags *string `pulumi:"tags"` Teams *string `pulumi:"teams"` Url *string `pulumi:"url"` UserId *string `pulumi:"userId"` }
type GetAlertChannelConfigArgs ¶
type GetAlertChannelConfigArgs struct { ApiKey pulumi.StringPtrInput `pulumi:"apiKey"` AuthPassword pulumi.StringPtrInput `pulumi:"authPassword"` AuthType pulumi.StringPtrInput `pulumi:"authType"` AuthUsername pulumi.StringPtrInput `pulumi:"authUsername"` BaseUrl pulumi.StringPtrInput `pulumi:"baseUrl"` Channel pulumi.StringPtrInput `pulumi:"channel"` Headers pulumi.StringMapInput `pulumi:"headers"` IncludeJsonAttachment pulumi.StringPtrInput `pulumi:"includeJsonAttachment"` Key pulumi.StringPtrInput `pulumi:"key"` Payload pulumi.StringMapInput `pulumi:"payload"` PayloadType pulumi.StringPtrInput `pulumi:"payloadType"` Recipients pulumi.StringPtrInput `pulumi:"recipients"` Region pulumi.StringPtrInput `pulumi:"region"` RouteKey pulumi.StringPtrInput `pulumi:"routeKey"` ServiceKey pulumi.StringPtrInput `pulumi:"serviceKey"` Tags pulumi.StringPtrInput `pulumi:"tags"` Teams pulumi.StringPtrInput `pulumi:"teams"` Url pulumi.StringPtrInput `pulumi:"url"` UserId pulumi.StringPtrInput `pulumi:"userId"` }
func (GetAlertChannelConfigArgs) ElementType ¶
func (GetAlertChannelConfigArgs) ElementType() reflect.Type
func (GetAlertChannelConfigArgs) ToGetAlertChannelConfigOutput ¶
func (i GetAlertChannelConfigArgs) ToGetAlertChannelConfigOutput() GetAlertChannelConfigOutput
func (GetAlertChannelConfigArgs) ToGetAlertChannelConfigOutputWithContext ¶
func (i GetAlertChannelConfigArgs) ToGetAlertChannelConfigOutputWithContext(ctx context.Context) GetAlertChannelConfigOutput
type GetAlertChannelConfigInput ¶
type GetAlertChannelConfigInput interface { pulumi.Input ToGetAlertChannelConfigOutput() GetAlertChannelConfigOutput ToGetAlertChannelConfigOutputWithContext(context.Context) GetAlertChannelConfigOutput }
GetAlertChannelConfigInput is an input type that accepts GetAlertChannelConfigArgs and GetAlertChannelConfigOutput values. You can construct a concrete instance of `GetAlertChannelConfigInput` via:
GetAlertChannelConfigArgs{...}
type GetAlertChannelConfigOutput ¶
type GetAlertChannelConfigOutput struct{ *pulumi.OutputState }
func (GetAlertChannelConfigOutput) ApiKey ¶
func (o GetAlertChannelConfigOutput) ApiKey() pulumi.StringPtrOutput
func (GetAlertChannelConfigOutput) AuthPassword ¶
func (o GetAlertChannelConfigOutput) AuthPassword() pulumi.StringPtrOutput
func (GetAlertChannelConfigOutput) AuthType ¶
func (o GetAlertChannelConfigOutput) AuthType() pulumi.StringPtrOutput
func (GetAlertChannelConfigOutput) AuthUsername ¶
func (o GetAlertChannelConfigOutput) AuthUsername() pulumi.StringPtrOutput
func (GetAlertChannelConfigOutput) BaseUrl ¶
func (o GetAlertChannelConfigOutput) BaseUrl() pulumi.StringPtrOutput
func (GetAlertChannelConfigOutput) Channel ¶
func (o GetAlertChannelConfigOutput) Channel() pulumi.StringPtrOutput
func (GetAlertChannelConfigOutput) ElementType ¶
func (GetAlertChannelConfigOutput) ElementType() reflect.Type
func (GetAlertChannelConfigOutput) Headers ¶
func (o GetAlertChannelConfigOutput) Headers() pulumi.StringMapOutput
func (GetAlertChannelConfigOutput) IncludeJsonAttachment ¶
func (o GetAlertChannelConfigOutput) IncludeJsonAttachment() pulumi.StringPtrOutput
func (GetAlertChannelConfigOutput) Key ¶
func (o GetAlertChannelConfigOutput) Key() pulumi.StringPtrOutput
func (GetAlertChannelConfigOutput) Payload ¶
func (o GetAlertChannelConfigOutput) Payload() pulumi.StringMapOutput
func (GetAlertChannelConfigOutput) PayloadType ¶
func (o GetAlertChannelConfigOutput) PayloadType() pulumi.StringPtrOutput
func (GetAlertChannelConfigOutput) Recipients ¶
func (o GetAlertChannelConfigOutput) Recipients() pulumi.StringPtrOutput
func (GetAlertChannelConfigOutput) Region ¶
func (o GetAlertChannelConfigOutput) Region() pulumi.StringPtrOutput
func (GetAlertChannelConfigOutput) RouteKey ¶
func (o GetAlertChannelConfigOutput) RouteKey() pulumi.StringPtrOutput
func (GetAlertChannelConfigOutput) ServiceKey ¶
func (o GetAlertChannelConfigOutput) ServiceKey() pulumi.StringPtrOutput
func (GetAlertChannelConfigOutput) Tags ¶
func (o GetAlertChannelConfigOutput) Tags() pulumi.StringPtrOutput
func (GetAlertChannelConfigOutput) Teams ¶
func (o GetAlertChannelConfigOutput) Teams() pulumi.StringPtrOutput
func (GetAlertChannelConfigOutput) ToGetAlertChannelConfigOutput ¶
func (o GetAlertChannelConfigOutput) ToGetAlertChannelConfigOutput() GetAlertChannelConfigOutput
func (GetAlertChannelConfigOutput) ToGetAlertChannelConfigOutputWithContext ¶
func (o GetAlertChannelConfigOutput) ToGetAlertChannelConfigOutputWithContext(ctx context.Context) GetAlertChannelConfigOutput
func (GetAlertChannelConfigOutput) Url ¶
func (o GetAlertChannelConfigOutput) Url() pulumi.StringPtrOutput
func (GetAlertChannelConfigOutput) UserId ¶
func (o GetAlertChannelConfigOutput) UserId() pulumi.StringPtrOutput
type GetApplicationArgs ¶
type GetApplicationArgs struct { // The name of the application in New Relic. Name string `pulumi:"name"` }
A collection of arguments for invoking getApplication.
type GetApplicationResult ¶
type GetApplicationResult struct { // A list of host IDs associated with the application. HostIds []int `pulumi:"hostIds"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // A list of instance IDs associated with the application. InstanceIds []int `pulumi:"instanceIds"` Name string `pulumi:"name"` }
A collection of values returned by getApplication.
func GetApplication ¶
func GetApplication(ctx *pulumi.Context, args *GetApplicationArgs, opts ...pulumi.InvokeOption) (*GetApplicationResult, error)
#### DEPRECATED! Use at your own risk. Use the `getEntity` data source instead. This feature may be removed in the next major release.
Use this data source to get information about a specific application in New Relic that already exists.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v3/go/newrelic" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { app, err := newrelic.GetApplication(ctx, &newrelic.GetApplicationArgs{ Name: "my-app", }, nil) if err != nil { return err } fooAlertPolicy, err := newrelic.NewAlertPolicy(ctx, "fooAlertPolicy", nil) if err != nil { return err } _, err = newrelic.NewAlertCondition(ctx, "fooAlertCondition", &newrelic.AlertConditionArgs{ PolicyId: fooAlertPolicy.ID(), Type: pulumi.String("apm_app_metric"), Entities: pulumi.IntArray{ pulumi.String(app.Id), }, Metric: pulumi.String("apdex"), RunbookUrl: pulumi.String("https://www.example.com"), Terms: newrelic.AlertConditionTermArray{ &newrelic.AlertConditionTermArgs{ Duration: pulumi.Int(5), Operator: pulumi.String("below"), Priority: pulumi.String("critical"), Threshold: pulumi.Float64(0.75), TimeFunction: pulumi.String("all"), }, }, }) if err != nil { return err } return nil }) }
```
type GetEntityArgs ¶
type GetEntityArgs struct { // The entity's domain. Valid values are APM, BROWSER, INFRA, MOBILE, and SYNTH. Domain *string `pulumi:"domain"` // The name of the entity in New Relic One. The first entity matching this name for the given search parameters will be returned. Name string `pulumi:"name"` Tag *GetEntityTag `pulumi:"tag"` // The entity's type. Valid values are APPLICATION, DASHBOARD, HOST, MONITOR, and WORRKLOAD. Type *string `pulumi:"type"` }
A collection of arguments for invoking getEntity.
type GetEntityResult ¶
type GetEntityResult struct { // The New Relic account ID associated with this entity. AccountId int `pulumi:"accountId"` // The domain-specific application ID of the entity. Only returned for APM and Browser applications. ApplicationId int `pulumi:"applicationId"` Domain string `pulumi:"domain"` // The unique GUID of the entity. Guid string `pulumi:"guid"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Name string `pulumi:"name"` Tag *GetEntityTag `pulumi:"tag"` Type string `pulumi:"type"` }
A collection of values returned by getEntity.
func GetEntity ¶
func GetEntity(ctx *pulumi.Context, args *GetEntityArgs, opts ...pulumi.InvokeOption) (*GetEntityResult, error)
Use this data source to get information about a specific entity in New Relic One that already exists.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v3/go/newrelic" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { opt0 := "APM" opt1 := "APPLICATION" _, err := newrelic.GetEntity(ctx, &newrelic.GetEntityArgs{ Name: "my-app", Domain: &opt0, Type: &opt1, Tag: newrelic.GetEntityTag{ Key: "my-tag", Value: "my-tag-value", }, }, nil) if err != nil { return err } fooAlertPolicy, err := newrelic.NewAlertPolicy(ctx, "fooAlertPolicy", nil) if err != nil { return err } _, err = newrelic.NewAlertCondition(ctx, "fooAlertCondition", &newrelic.AlertConditionArgs{ PolicyId: fooAlertPolicy.ID(), Type: pulumi.String("apm_app_metric"), Entities: pulumi.IntArray{ pulumi.Any(data.Newrelic_application.App.Application_id), }, Metric: pulumi.String("apdex"), RunbookUrl: pulumi.String("https://www.example.com"), Terms: newrelic.AlertConditionTermArray{ &newrelic.AlertConditionTermArgs{ Duration: pulumi.Int(5), Operator: pulumi.String("below"), Priority: pulumi.String("critical"), Threshold: pulumi.Float64(0.75), TimeFunction: pulumi.String("all"), }, }, }) if err != nil { return err } return nil }) }
```
type GetEntityTag ¶
type GetEntityTagArgs ¶
type GetEntityTagArgs struct { Key pulumi.StringInput `pulumi:"key"` Value pulumi.StringInput `pulumi:"value"` }
func (GetEntityTagArgs) ElementType ¶
func (GetEntityTagArgs) ElementType() reflect.Type
func (GetEntityTagArgs) ToGetEntityTagOutput ¶
func (i GetEntityTagArgs) ToGetEntityTagOutput() GetEntityTagOutput
func (GetEntityTagArgs) ToGetEntityTagOutputWithContext ¶
func (i GetEntityTagArgs) ToGetEntityTagOutputWithContext(ctx context.Context) GetEntityTagOutput
type GetEntityTagInput ¶
type GetEntityTagInput interface { pulumi.Input ToGetEntityTagOutput() GetEntityTagOutput ToGetEntityTagOutputWithContext(context.Context) GetEntityTagOutput }
GetEntityTagInput is an input type that accepts GetEntityTagArgs and GetEntityTagOutput values. You can construct a concrete instance of `GetEntityTagInput` via:
GetEntityTagArgs{...}
type GetEntityTagOutput ¶
type GetEntityTagOutput struct{ *pulumi.OutputState }
func (GetEntityTagOutput) ElementType ¶
func (GetEntityTagOutput) ElementType() reflect.Type
func (GetEntityTagOutput) Key ¶
func (o GetEntityTagOutput) Key() pulumi.StringOutput
func (GetEntityTagOutput) ToGetEntityTagOutput ¶
func (o GetEntityTagOutput) ToGetEntityTagOutput() GetEntityTagOutput
func (GetEntityTagOutput) ToGetEntityTagOutputWithContext ¶
func (o GetEntityTagOutput) ToGetEntityTagOutputWithContext(ctx context.Context) GetEntityTagOutput
func (GetEntityTagOutput) Value ¶
func (o GetEntityTagOutput) Value() pulumi.StringOutput
type GetKeyTransactionArgs ¶
type GetKeyTransactionArgs struct { // The name of the key transaction in New Relic. Name string `pulumi:"name"` }
A collection of arguments for invoking getKeyTransaction.
type GetKeyTransactionResult ¶
type GetKeyTransactionResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Name string `pulumi:"name"` }
A collection of values returned by getKeyTransaction.
func GetKeyTransaction ¶
func GetKeyTransaction(ctx *pulumi.Context, args *GetKeyTransactionArgs, opts ...pulumi.InvokeOption) (*GetKeyTransactionResult, error)
Use this data source to get information about a specific key transaction in New Relic that already exists.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v3/go/newrelic" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { txn, err := newrelic.GetKeyTransaction(ctx, &newrelic.GetKeyTransactionArgs{ Name: "txn", }, nil) if err != nil { return err } fooAlertPolicy, err := newrelic.NewAlertPolicy(ctx, "fooAlertPolicy", nil) if err != nil { return err } _, err = newrelic.NewAlertCondition(ctx, "fooAlertCondition", &newrelic.AlertConditionArgs{ PolicyId: fooAlertPolicy.ID(), Type: pulumi.String("apm_kt_metric"), Entities: pulumi.IntArray{ pulumi.String(txn.Id), }, Metric: pulumi.String("error_percentage"), RunbookUrl: pulumi.String("https://www.example.com"), Terms: newrelic.AlertConditionTermArray{ &newrelic.AlertConditionTermArgs{ Duration: pulumi.Int(5), Operator: pulumi.String("below"), Priority: pulumi.String("critical"), Threshold: pulumi.Float64(0.75), TimeFunction: pulumi.String("all"), }, }, }) if err != nil { return err } return nil }) }
```
type InfraAlertCondition ¶
type InfraAlertCondition struct { pulumi.CustomResourceState // The operator used to evaluate the threshold value. Valid values are `above`, `below`, and `equal`. Supported by the `infraMetric` and `infraProcessRunning` condition types. Comparison pulumi.StringPtrOutput `pulumi:"comparison"` // The timestamp the alert condition was created. CreatedAt pulumi.IntOutput `pulumi:"createdAt"` // Identifies the threshold parameters for opening a critical alert violation. See Thresholds below for details. Critical InfraAlertConditionCriticalPtrOutput `pulumi:"critical"` // The description of the Infrastructure alert condition. Description pulumi.StringPtrOutput `pulumi:"description"` // Whether the condition is turned on or off. Valid values are `true` and `false`. Defaults to `true`. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // The metric event; for example, `SystemSample` or `StorageSample`. Supported by the `infraMetric` condition type. Event pulumi.StringOutput `pulumi:"event"` // For alerts on integrations, use this instead of `event`. Supported by the `infraMetric` condition type. IntegrationProvider pulumi.StringPtrOutput `pulumi:"integrationProvider"` // The Infrastructure alert condition's name. Name pulumi.StringOutput `pulumi:"name"` // The ID of the alert policy where this condition should be used. PolicyId pulumi.IntOutput `pulumi:"policyId"` // Any filters applied to processes; for example: `commandName = 'java'`. Supported by the `infraProcessRunning` condition type. ProcessWhere pulumi.StringPtrOutput `pulumi:"processWhere"` // Runbook URL to display in notifications. RunbookUrl pulumi.StringPtrOutput `pulumi:"runbookUrl"` // The attribute name to identify the metric being targeted; for example, `cpuPercent`, `diskFreePercent`, or `memoryResidentSizeBytes`. The underlying API will automatically populate this value for Infrastructure integrations (for example `diskFreePercent`), so make sure to explicitly include this value to avoid diff issues. Supported by the `infraMetric` condition type. Select pulumi.StringPtrOutput `pulumi:"select"` // The type of Infrastructure alert condition. Valid values are `infraProcessRunning`, `infraMetric`, and `infraHostNotReporting`. Type pulumi.StringOutput `pulumi:"type"` // The timestamp the alert condition was last updated. UpdatedAt pulumi.IntOutput `pulumi:"updatedAt"` // Determines how much time will pass before a violation is automatically closed. Setting the time limit to 0 prevents a violation from being force-closed. ViolationCloseTimer pulumi.IntPtrOutput `pulumi:"violationCloseTimer"` // Identifies the threshold parameters for opening a warning alert violation. See Thresholds below for details. Warning InfraAlertConditionWarningPtrOutput `pulumi:"warning"` // If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%cassandra%'`. Where pulumi.StringPtrOutput `pulumi:"where"` }
Use this resource to create and manage Infrastructure alert conditions in New Relic.
## Example Usage
```go package main
import (
"fmt" "github.com/pulumi/pulumi-newrelic/sdk/v3/go/newrelic" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { foo, err := newrelic.NewAlertPolicy(ctx, "foo", nil) if err != nil { return err } _, err = newrelic.NewInfraAlertCondition(ctx, "highDiskUsage", &newrelic.InfraAlertConditionArgs{ PolicyId: foo.ID(), Type: pulumi.String("infra_metric"), Event: pulumi.String("StorageSample"), Select: pulumi.String("diskUsedPercent"), Comparison: pulumi.String("above"), Where: pulumi.String(fmt.Sprintf("%v%v%v%v%v", "(`hostname` LIKE '", "%", "frontend", "%", "')")), Critical: &newrelic.InfraAlertConditionCriticalArgs{ Duration: pulumi.Int(25), Value: pulumi.Float64(90), TimeFunction: pulumi.String("all"), }, Warning: &newrelic.InfraAlertConditionWarningArgs{ Duration: pulumi.Int(10), Value: pulumi.Float64(80), TimeFunction: pulumi.String("all"), }, }) if err != nil { return err } _, err = newrelic.NewInfraAlertCondition(ctx, "highDbConnCount", &newrelic.InfraAlertConditionArgs{ PolicyId: foo.ID(), Type: pulumi.String("infra_metric"), Event: pulumi.String("DatastoreSample"), Select: pulumi.String("provider.databaseConnections.Average"), Comparison: pulumi.String("above"), Where: pulumi.String(fmt.Sprintf("%v%v%v%v%v", "(`hostname` LIKE '", "%", "db", "%", "')")), IntegrationProvider: pulumi.String("RdsDbInstance"), Critical: &newrelic.InfraAlertConditionCriticalArgs{ Duration: pulumi.Int(25), Value: pulumi.Float64(90), TimeFunction: pulumi.String("all"), }, }) if err != nil { return err } _, err = newrelic.NewInfraAlertCondition(ctx, "processNotRunning", &newrelic.InfraAlertConditionArgs{ PolicyId: foo.ID(), Type: pulumi.String("infra_process_running"), Comparison: pulumi.String("equal"), ProcessWhere: pulumi.String("`commandName` = '/usr/bin/ruby'"), Critical: &newrelic.InfraAlertConditionCriticalArgs{ Duration: pulumi.Int(5), Value: pulumi.Float64(0), }, }) if err != nil { return err } _, err = newrelic.NewInfraAlertCondition(ctx, "hostNotReporting", &newrelic.InfraAlertConditionArgs{ PolicyId: foo.ID(), Type: pulumi.String("infra_host_not_reporting"), Where: pulumi.String(fmt.Sprintf("%v%v%v%v%v", "(`hostname` LIKE '", "%", "frontend", "%", "')")), Critical: &newrelic.InfraAlertConditionCriticalArgs{ Duration: pulumi.Int(5), }, }) if err != nil { return err } return nil }) }
``` ## Thresholds
The `critical` and `warning` threshold mapping supports the following arguments:
- `duration` - (Required) Identifies the number of minutes the threshold must be passed or met for the alert to trigger. Threshold durations must be between 1 and 60 minutes (inclusive).
- `value` - (Optional) Threshold value, computed against the `comparison` operator. Supported by `infraMetric` and `infraProcessRunning` alert condition types.
- `timeFunction` - (Optional) Indicates if the condition needs to be sustained or to just break the threshold once; `all` or `any`. Supported by the `infraMetric` alert condition type.
func GetInfraAlertCondition ¶
func GetInfraAlertCondition(ctx *pulumi.Context, name string, id pulumi.IDInput, state *InfraAlertConditionState, opts ...pulumi.ResourceOption) (*InfraAlertCondition, error)
GetInfraAlertCondition gets an existing InfraAlertCondition 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 NewInfraAlertCondition ¶
func NewInfraAlertCondition(ctx *pulumi.Context, name string, args *InfraAlertConditionArgs, opts ...pulumi.ResourceOption) (*InfraAlertCondition, error)
NewInfraAlertCondition registers a new resource with the given unique name, arguments, and options.
type InfraAlertConditionArgs ¶
type InfraAlertConditionArgs struct { // The operator used to evaluate the threshold value. Valid values are `above`, `below`, and `equal`. Supported by the `infraMetric` and `infraProcessRunning` condition types. Comparison pulumi.StringPtrInput // Identifies the threshold parameters for opening a critical alert violation. See Thresholds below for details. Critical InfraAlertConditionCriticalPtrInput // The description of the Infrastructure alert condition. Description pulumi.StringPtrInput // Whether the condition is turned on or off. Valid values are `true` and `false`. Defaults to `true`. Enabled pulumi.BoolPtrInput // The metric event; for example, `SystemSample` or `StorageSample`. Supported by the `infraMetric` condition type. Event pulumi.StringPtrInput // For alerts on integrations, use this instead of `event`. Supported by the `infraMetric` condition type. IntegrationProvider pulumi.StringPtrInput // The Infrastructure alert condition's name. Name pulumi.StringPtrInput // The ID of the alert policy where this condition should be used. PolicyId pulumi.IntInput // Any filters applied to processes; for example: `commandName = 'java'`. Supported by the `infraProcessRunning` condition type. ProcessWhere pulumi.StringPtrInput // Runbook URL to display in notifications. RunbookUrl pulumi.StringPtrInput // The attribute name to identify the metric being targeted; for example, `cpuPercent`, `diskFreePercent`, or `memoryResidentSizeBytes`. The underlying API will automatically populate this value for Infrastructure integrations (for example `diskFreePercent`), so make sure to explicitly include this value to avoid diff issues. Supported by the `infraMetric` condition type. Select pulumi.StringPtrInput // The type of Infrastructure alert condition. Valid values are `infraProcessRunning`, `infraMetric`, and `infraHostNotReporting`. Type pulumi.StringInput // Determines how much time will pass before a violation is automatically closed. Setting the time limit to 0 prevents a violation from being force-closed. ViolationCloseTimer pulumi.IntPtrInput // Identifies the threshold parameters for opening a warning alert violation. See Thresholds below for details. Warning InfraAlertConditionWarningPtrInput // If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%cassandra%'`. Where pulumi.StringPtrInput }
The set of arguments for constructing a InfraAlertCondition resource.
func (InfraAlertConditionArgs) ElementType ¶
func (InfraAlertConditionArgs) ElementType() reflect.Type
type InfraAlertConditionCriticalArgs ¶
type InfraAlertConditionCriticalArgs struct { Duration pulumi.IntInput `pulumi:"duration"` TimeFunction pulumi.StringPtrInput `pulumi:"timeFunction"` Value pulumi.Float64PtrInput `pulumi:"value"` }
func (InfraAlertConditionCriticalArgs) ElementType ¶
func (InfraAlertConditionCriticalArgs) ElementType() reflect.Type
func (InfraAlertConditionCriticalArgs) ToInfraAlertConditionCriticalOutput ¶
func (i InfraAlertConditionCriticalArgs) ToInfraAlertConditionCriticalOutput() InfraAlertConditionCriticalOutput
func (InfraAlertConditionCriticalArgs) ToInfraAlertConditionCriticalOutputWithContext ¶
func (i InfraAlertConditionCriticalArgs) ToInfraAlertConditionCriticalOutputWithContext(ctx context.Context) InfraAlertConditionCriticalOutput
func (InfraAlertConditionCriticalArgs) ToInfraAlertConditionCriticalPtrOutput ¶
func (i InfraAlertConditionCriticalArgs) ToInfraAlertConditionCriticalPtrOutput() InfraAlertConditionCriticalPtrOutput
func (InfraAlertConditionCriticalArgs) ToInfraAlertConditionCriticalPtrOutputWithContext ¶
func (i InfraAlertConditionCriticalArgs) ToInfraAlertConditionCriticalPtrOutputWithContext(ctx context.Context) InfraAlertConditionCriticalPtrOutput
type InfraAlertConditionCriticalInput ¶
type InfraAlertConditionCriticalInput interface { pulumi.Input ToInfraAlertConditionCriticalOutput() InfraAlertConditionCriticalOutput ToInfraAlertConditionCriticalOutputWithContext(context.Context) InfraAlertConditionCriticalOutput }
InfraAlertConditionCriticalInput is an input type that accepts InfraAlertConditionCriticalArgs and InfraAlertConditionCriticalOutput values. You can construct a concrete instance of `InfraAlertConditionCriticalInput` via:
InfraAlertConditionCriticalArgs{...}
type InfraAlertConditionCriticalOutput ¶
type InfraAlertConditionCriticalOutput struct{ *pulumi.OutputState }
func (InfraAlertConditionCriticalOutput) Duration ¶
func (o InfraAlertConditionCriticalOutput) Duration() pulumi.IntOutput
func (InfraAlertConditionCriticalOutput) ElementType ¶
func (InfraAlertConditionCriticalOutput) ElementType() reflect.Type
func (InfraAlertConditionCriticalOutput) TimeFunction ¶
func (o InfraAlertConditionCriticalOutput) TimeFunction() pulumi.StringPtrOutput
func (InfraAlertConditionCriticalOutput) ToInfraAlertConditionCriticalOutput ¶
func (o InfraAlertConditionCriticalOutput) ToInfraAlertConditionCriticalOutput() InfraAlertConditionCriticalOutput
func (InfraAlertConditionCriticalOutput) ToInfraAlertConditionCriticalOutputWithContext ¶
func (o InfraAlertConditionCriticalOutput) ToInfraAlertConditionCriticalOutputWithContext(ctx context.Context) InfraAlertConditionCriticalOutput
func (InfraAlertConditionCriticalOutput) ToInfraAlertConditionCriticalPtrOutput ¶
func (o InfraAlertConditionCriticalOutput) ToInfraAlertConditionCriticalPtrOutput() InfraAlertConditionCriticalPtrOutput
func (InfraAlertConditionCriticalOutput) ToInfraAlertConditionCriticalPtrOutputWithContext ¶
func (o InfraAlertConditionCriticalOutput) ToInfraAlertConditionCriticalPtrOutputWithContext(ctx context.Context) InfraAlertConditionCriticalPtrOutput
func (InfraAlertConditionCriticalOutput) Value ¶
func (o InfraAlertConditionCriticalOutput) Value() pulumi.Float64PtrOutput
type InfraAlertConditionCriticalPtrInput ¶
type InfraAlertConditionCriticalPtrInput interface { pulumi.Input ToInfraAlertConditionCriticalPtrOutput() InfraAlertConditionCriticalPtrOutput ToInfraAlertConditionCriticalPtrOutputWithContext(context.Context) InfraAlertConditionCriticalPtrOutput }
InfraAlertConditionCriticalPtrInput is an input type that accepts InfraAlertConditionCriticalArgs, InfraAlertConditionCriticalPtr and InfraAlertConditionCriticalPtrOutput values. You can construct a concrete instance of `InfraAlertConditionCriticalPtrInput` via:
InfraAlertConditionCriticalArgs{...} or: nil
func InfraAlertConditionCriticalPtr ¶
func InfraAlertConditionCriticalPtr(v *InfraAlertConditionCriticalArgs) InfraAlertConditionCriticalPtrInput
type InfraAlertConditionCriticalPtrOutput ¶
type InfraAlertConditionCriticalPtrOutput struct{ *pulumi.OutputState }
func (InfraAlertConditionCriticalPtrOutput) Duration ¶
func (o InfraAlertConditionCriticalPtrOutput) Duration() pulumi.IntPtrOutput
func (InfraAlertConditionCriticalPtrOutput) ElementType ¶
func (InfraAlertConditionCriticalPtrOutput) ElementType() reflect.Type
func (InfraAlertConditionCriticalPtrOutput) TimeFunction ¶
func (o InfraAlertConditionCriticalPtrOutput) TimeFunction() pulumi.StringPtrOutput
func (InfraAlertConditionCriticalPtrOutput) ToInfraAlertConditionCriticalPtrOutput ¶
func (o InfraAlertConditionCriticalPtrOutput) ToInfraAlertConditionCriticalPtrOutput() InfraAlertConditionCriticalPtrOutput
func (InfraAlertConditionCriticalPtrOutput) ToInfraAlertConditionCriticalPtrOutputWithContext ¶
func (o InfraAlertConditionCriticalPtrOutput) ToInfraAlertConditionCriticalPtrOutputWithContext(ctx context.Context) InfraAlertConditionCriticalPtrOutput
func (InfraAlertConditionCriticalPtrOutput) Value ¶
func (o InfraAlertConditionCriticalPtrOutput) Value() pulumi.Float64PtrOutput
type InfraAlertConditionState ¶
type InfraAlertConditionState struct { // The operator used to evaluate the threshold value. Valid values are `above`, `below`, and `equal`. Supported by the `infraMetric` and `infraProcessRunning` condition types. Comparison pulumi.StringPtrInput // The timestamp the alert condition was created. CreatedAt pulumi.IntPtrInput // Identifies the threshold parameters for opening a critical alert violation. See Thresholds below for details. Critical InfraAlertConditionCriticalPtrInput // The description of the Infrastructure alert condition. Description pulumi.StringPtrInput // Whether the condition is turned on or off. Valid values are `true` and `false`. Defaults to `true`. Enabled pulumi.BoolPtrInput // The metric event; for example, `SystemSample` or `StorageSample`. Supported by the `infraMetric` condition type. Event pulumi.StringPtrInput // For alerts on integrations, use this instead of `event`. Supported by the `infraMetric` condition type. IntegrationProvider pulumi.StringPtrInput // The Infrastructure alert condition's name. Name pulumi.StringPtrInput // The ID of the alert policy where this condition should be used. PolicyId pulumi.IntPtrInput // Any filters applied to processes; for example: `commandName = 'java'`. Supported by the `infraProcessRunning` condition type. ProcessWhere pulumi.StringPtrInput // Runbook URL to display in notifications. RunbookUrl pulumi.StringPtrInput // The attribute name to identify the metric being targeted; for example, `cpuPercent`, `diskFreePercent`, or `memoryResidentSizeBytes`. The underlying API will automatically populate this value for Infrastructure integrations (for example `diskFreePercent`), so make sure to explicitly include this value to avoid diff issues. Supported by the `infraMetric` condition type. Select pulumi.StringPtrInput // The type of Infrastructure alert condition. Valid values are `infraProcessRunning`, `infraMetric`, and `infraHostNotReporting`. Type pulumi.StringPtrInput // The timestamp the alert condition was last updated. UpdatedAt pulumi.IntPtrInput // Determines how much time will pass before a violation is automatically closed. Setting the time limit to 0 prevents a violation from being force-closed. ViolationCloseTimer pulumi.IntPtrInput // Identifies the threshold parameters for opening a warning alert violation. See Thresholds below for details. Warning InfraAlertConditionWarningPtrInput // If applicable, this identifies any Infrastructure host filters used; for example: `hostname LIKE '%cassandra%'`. Where pulumi.StringPtrInput }
func (InfraAlertConditionState) ElementType ¶
func (InfraAlertConditionState) ElementType() reflect.Type
type InfraAlertConditionWarningArgs ¶
type InfraAlertConditionWarningArgs struct { Duration pulumi.IntInput `pulumi:"duration"` TimeFunction pulumi.StringPtrInput `pulumi:"timeFunction"` Value pulumi.Float64PtrInput `pulumi:"value"` }
func (InfraAlertConditionWarningArgs) ElementType ¶
func (InfraAlertConditionWarningArgs) ElementType() reflect.Type
func (InfraAlertConditionWarningArgs) ToInfraAlertConditionWarningOutput ¶
func (i InfraAlertConditionWarningArgs) ToInfraAlertConditionWarningOutput() InfraAlertConditionWarningOutput
func (InfraAlertConditionWarningArgs) ToInfraAlertConditionWarningOutputWithContext ¶
func (i InfraAlertConditionWarningArgs) ToInfraAlertConditionWarningOutputWithContext(ctx context.Context) InfraAlertConditionWarningOutput
func (InfraAlertConditionWarningArgs) ToInfraAlertConditionWarningPtrOutput ¶
func (i InfraAlertConditionWarningArgs) ToInfraAlertConditionWarningPtrOutput() InfraAlertConditionWarningPtrOutput
func (InfraAlertConditionWarningArgs) ToInfraAlertConditionWarningPtrOutputWithContext ¶
func (i InfraAlertConditionWarningArgs) ToInfraAlertConditionWarningPtrOutputWithContext(ctx context.Context) InfraAlertConditionWarningPtrOutput
type InfraAlertConditionWarningInput ¶
type InfraAlertConditionWarningInput interface { pulumi.Input ToInfraAlertConditionWarningOutput() InfraAlertConditionWarningOutput ToInfraAlertConditionWarningOutputWithContext(context.Context) InfraAlertConditionWarningOutput }
InfraAlertConditionWarningInput is an input type that accepts InfraAlertConditionWarningArgs and InfraAlertConditionWarningOutput values. You can construct a concrete instance of `InfraAlertConditionWarningInput` via:
InfraAlertConditionWarningArgs{...}
type InfraAlertConditionWarningOutput ¶
type InfraAlertConditionWarningOutput struct{ *pulumi.OutputState }
func (InfraAlertConditionWarningOutput) Duration ¶
func (o InfraAlertConditionWarningOutput) Duration() pulumi.IntOutput
func (InfraAlertConditionWarningOutput) ElementType ¶
func (InfraAlertConditionWarningOutput) ElementType() reflect.Type
func (InfraAlertConditionWarningOutput) TimeFunction ¶
func (o InfraAlertConditionWarningOutput) TimeFunction() pulumi.StringPtrOutput
func (InfraAlertConditionWarningOutput) ToInfraAlertConditionWarningOutput ¶
func (o InfraAlertConditionWarningOutput) ToInfraAlertConditionWarningOutput() InfraAlertConditionWarningOutput
func (InfraAlertConditionWarningOutput) ToInfraAlertConditionWarningOutputWithContext ¶
func (o InfraAlertConditionWarningOutput) ToInfraAlertConditionWarningOutputWithContext(ctx context.Context) InfraAlertConditionWarningOutput
func (InfraAlertConditionWarningOutput) ToInfraAlertConditionWarningPtrOutput ¶
func (o InfraAlertConditionWarningOutput) ToInfraAlertConditionWarningPtrOutput() InfraAlertConditionWarningPtrOutput
func (InfraAlertConditionWarningOutput) ToInfraAlertConditionWarningPtrOutputWithContext ¶
func (o InfraAlertConditionWarningOutput) ToInfraAlertConditionWarningPtrOutputWithContext(ctx context.Context) InfraAlertConditionWarningPtrOutput
func (InfraAlertConditionWarningOutput) Value ¶
func (o InfraAlertConditionWarningOutput) Value() pulumi.Float64PtrOutput
type InfraAlertConditionWarningPtrInput ¶
type InfraAlertConditionWarningPtrInput interface { pulumi.Input ToInfraAlertConditionWarningPtrOutput() InfraAlertConditionWarningPtrOutput ToInfraAlertConditionWarningPtrOutputWithContext(context.Context) InfraAlertConditionWarningPtrOutput }
InfraAlertConditionWarningPtrInput is an input type that accepts InfraAlertConditionWarningArgs, InfraAlertConditionWarningPtr and InfraAlertConditionWarningPtrOutput values. You can construct a concrete instance of `InfraAlertConditionWarningPtrInput` via:
InfraAlertConditionWarningArgs{...} or: nil
func InfraAlertConditionWarningPtr ¶
func InfraAlertConditionWarningPtr(v *InfraAlertConditionWarningArgs) InfraAlertConditionWarningPtrInput
type InfraAlertConditionWarningPtrOutput ¶
type InfraAlertConditionWarningPtrOutput struct{ *pulumi.OutputState }
func (InfraAlertConditionWarningPtrOutput) Duration ¶
func (o InfraAlertConditionWarningPtrOutput) Duration() pulumi.IntPtrOutput
func (InfraAlertConditionWarningPtrOutput) Elem ¶
func (o InfraAlertConditionWarningPtrOutput) Elem() InfraAlertConditionWarningOutput
func (InfraAlertConditionWarningPtrOutput) ElementType ¶
func (InfraAlertConditionWarningPtrOutput) ElementType() reflect.Type
func (InfraAlertConditionWarningPtrOutput) TimeFunction ¶
func (o InfraAlertConditionWarningPtrOutput) TimeFunction() pulumi.StringPtrOutput
func (InfraAlertConditionWarningPtrOutput) ToInfraAlertConditionWarningPtrOutput ¶
func (o InfraAlertConditionWarningPtrOutput) ToInfraAlertConditionWarningPtrOutput() InfraAlertConditionWarningPtrOutput
func (InfraAlertConditionWarningPtrOutput) ToInfraAlertConditionWarningPtrOutputWithContext ¶
func (o InfraAlertConditionWarningPtrOutput) ToInfraAlertConditionWarningPtrOutputWithContext(ctx context.Context) InfraAlertConditionWarningPtrOutput
func (InfraAlertConditionWarningPtrOutput) Value ¶
func (o InfraAlertConditionWarningPtrOutput) Value() pulumi.Float64PtrOutput
type LookupAlertChannelArgs ¶
type LookupAlertChannelArgs struct { // The name of the alert channel in New Relic. Name string `pulumi:"name"` }
A collection of arguments for invoking getAlertChannel.
type LookupAlertChannelResult ¶
type LookupAlertChannelResult struct { // Alert channel configuration. Config GetAlertChannelConfig `pulumi:"config"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Name string `pulumi:"name"` // A list of policy IDs associated with the alert channel. PolicyIds []int `pulumi:"policyIds"` // Alert channel type, either: `email`, `opsgenie`, `pagerduty`, `slack`, `victorops`, or `webhook`. Type string `pulumi:"type"` }
A collection of values returned by getAlertChannel.
func LookupAlertChannel ¶
func LookupAlertChannel(ctx *pulumi.Context, args *LookupAlertChannelArgs, opts ...pulumi.InvokeOption) (*LookupAlertChannelResult, error)
Use this data source to get information about a specific alert channel in New Relic that already exists.
type LookupAlertPolicyArgs ¶
type LookupAlertPolicyArgs struct { AccountId *int `pulumi:"accountId"` // The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default is PER_POLICY. IncidentPreference *string `pulumi:"incidentPreference"` // The name of the alert policy in New Relic. Name string `pulumi:"name"` }
A collection of arguments for invoking getAlertPolicy.
type LookupAlertPolicyResult ¶
type LookupAlertPolicyResult struct { AccountId int `pulumi:"accountId"` // The time the policy was created. CreatedAt string `pulumi:"createdAt"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default is PER_POLICY. IncidentPreference *string `pulumi:"incidentPreference"` Name string `pulumi:"name"` // The time the policy was last updated. UpdatedAt string `pulumi:"updatedAt"` }
A collection of values returned by getAlertPolicy.
func LookupAlertPolicy ¶
func LookupAlertPolicy(ctx *pulumi.Context, args *LookupAlertPolicyArgs, opts ...pulumi.InvokeOption) (*LookupAlertPolicyResult, error)
Use this data source to get information about a specific alert policy in New Relic that already exists.
type NrqlAlertCondition ¶
type NrqlAlertCondition struct { pulumi.CustomResourceState // The New Relic account ID of the account you wish to create the condition. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`. AccountId pulumi.IntOutput `pulumi:"accountId"` // The baseline direction of a _baseline_ NRQL alert condition. Valid values are: `lowerOnly`, `upperAndLower`, `upperOnly` (case insensitive). BaselineDirection pulumi.StringPtrOutput `pulumi:"baselineDirection"` // A list containing the `critical` threshold values. See Terms below for details. Critical NrqlAlertConditionCriticalPtrOutput `pulumi:"critical"` // The description of the NRQL alert condition. Description pulumi.StringPtrOutput `pulumi:"description"` // Whether to enable the alert condition. Valid values are `true` and `false`. Defaults to `true`. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // Number of expected groups when using `outlier` detection. ExpectedGroups pulumi.IntPtrOutput `pulumi:"expectedGroups"` // **DEPRECATED:** Use `openViolationOnGroupOverlap` instead, but use the inverse value of your boolean - e.g. if `ignoreOverlap = false`, use `openViolationOnGroupOverlap = true`. This argument sets whether to trigger a violation when groups overlap. If set to `true` overlapping groups will not trigger a violation. This argument is only applicable in `outlier` conditions. // // Deprecated: use `open_violation_on_group_overlap` attribute instead, but use the inverse of your boolean - e.g. if ignore_overlap = false, use open_violation_on_group_overlap = true IgnoreOverlap pulumi.BoolPtrOutput `pulumi:"ignoreOverlap"` // The title of the condition. Name pulumi.StringOutput `pulumi:"name"` // A NRQL query. See NRQL below for details. Nrql NrqlAlertConditionNrqlOutput `pulumi:"nrql"` // Whether or not to trigger a violation when groups overlap. Set to `true` if you want to trigger a violation when groups overlap. This argument is only applicable in `outlier` conditions. OpenViolationOnGroupOverlap pulumi.BoolPtrOutput `pulumi:"openViolationOnGroupOverlap"` // 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"` // **DEPRECATED** Use `critical`, and `warning` instead. A list of terms for this condition. See Terms below for details. // // Deprecated: use `critical` and `warning` attributes instead Terms NrqlAlertConditionTermArrayOutput `pulumi:"terms"` // The type of the condition. Valid values are `static`, `baseline`, or `outlier`. Defaults to `static`. Type pulumi.StringPtrOutput `pulumi:"type"` // Possible values are `singleValue`, `sum` (case insensitive). Defaults to `singleValue`. ValueFunction pulumi.StringPtrOutput `pulumi:"valueFunction"` // Sets a time limit, in hours, that will automatically force-close a long-lasting violation after the time limit you select. Possible values are `ONE_HOUR`, `TWO_HOURS`, `FOUR_HOURS`, `EIGHT_HOURS`, `TWELVE_HOURS`, `TWENTY_FOUR_HOURS` (case insensitive). ViolationTimeLimit pulumi.StringPtrOutput `pulumi:"violationTimeLimit"` // **DEPRECATED:** Use `violationTimeLimit` instead. Sets a time limit, in seconds, that will automatically force-close a long-lasting violation after the time limit you select. Possible values are `3600`, `7200`, `14400`, `28800`, `43200`, and `86400`. // // Deprecated: use `violation_time_limit` attribute instead ViolationTimeLimitSeconds pulumi.IntPtrOutput `pulumi:"violationTimeLimitSeconds"` // A list containing the `warning` threshold values. See Terms below for details. Warning NrqlAlertConditionWarningPtrOutput `pulumi:"warning"` }
Use this resource to create and manage NRQL alert conditions in New Relic.
## NRQL
The `nrql` block supports the following arguments:
- `query` - (Required) The NRQL query to execute for the condition. - `evaluationOffset` - (Optional) Represented in minutes and must be within 1-20 minutes (inclusive). NRQL queries are evaluated in one-minute time windows. The start time depends on this value. It's recommended to set this to 3 minutes. An offset of less than 3 minutes will trigger violations sooner, but you may see more false positives and negatives due to data latency. With `evaluationOffset` set to 3 minutes, the NRQL time window applied to your query will be: `SINCE 3 minutes ago UNTIL 2 minutes ago`. - `sinceValue` - (Optional) **DEPRECATED:** Use `evaluationOffset` instead. The value to be used in the `SINCE <X> minutes ago` clause for the NRQL query. Must be between 1-20 (inclusive).
## Terms
> **NOTE:** The direct use of the `term` has been deprecated, and users should use `critical` and `warning` instead. What follows now applies to the named priority attributes for `critical` and `warning`, but for those attributes the priority is not allowed.
NRQL alert conditions support up to two terms. At least one `term` must have `priority` set to `critical` and the second optional `term` must have `priority` set to `warning`.
The `term` block the following arguments:
- `operator` - (Optional) Valid values are `above`, `below`, or `equals` (case insensitive). Defaults to `equals`. Note that when using a `type` of `outlier`, the only valid option here is `above`. - `priority` - (Optional) `critical` or `warning`. Defaults to `critical`. - `threshold` - (Required) The value which will trigger a violation. Must be `0` or greater. - `thresholdDuration` - (Optional) The duration of time, in seconds, that the threshold must violate for in order to create a violation. Value must be a multiple of 60. <br>For _baseline_ NRQL alert conditions, the value must be within 120-3600 seconds (inclusive). <br>For _static_ NRQL alert conditions, the value must be within 120-7200 seconds (inclusive).
- `thresholdOccurrences` - (Optional) The criteria for how many data points must be in violation for the specified threshold duration. Valid values are: `all` or `atLeastOnce` (case insensitive). - `duration` - (Optional) **DEPRECATED:** Use `thresholdDuration` instead. The duration of time, in _minutes_, that the threshold must violate for in order to create a violation. Must be within 1-120 (inclusive). - `timeFunction` - (Optional) **DEPRECATED:** Use `thresholdOccurrences` instead. The criteria for how many data points must be in violation for the specified threshold duration. Valid values are: `all` or `any`.
func GetNrqlAlertCondition ¶
func GetNrqlAlertCondition(ctx *pulumi.Context, name string, id pulumi.IDInput, state *NrqlAlertConditionState, opts ...pulumi.ResourceOption) (*NrqlAlertCondition, error)
GetNrqlAlertCondition gets an existing NrqlAlertCondition 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 NewNrqlAlertCondition ¶
func NewNrqlAlertCondition(ctx *pulumi.Context, name string, args *NrqlAlertConditionArgs, opts ...pulumi.ResourceOption) (*NrqlAlertCondition, error)
NewNrqlAlertCondition registers a new resource with the given unique name, arguments, and options.
type NrqlAlertConditionArgs ¶
type NrqlAlertConditionArgs struct { // The New Relic account ID of the account you wish to create the condition. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`. AccountId pulumi.IntPtrInput // The baseline direction of a _baseline_ NRQL alert condition. Valid values are: `lowerOnly`, `upperAndLower`, `upperOnly` (case insensitive). BaselineDirection pulumi.StringPtrInput // A list containing the `critical` threshold values. See Terms below for details. Critical NrqlAlertConditionCriticalPtrInput // The description of the NRQL alert condition. Description pulumi.StringPtrInput // Whether to enable the alert condition. Valid values are `true` and `false`. Defaults to `true`. Enabled pulumi.BoolPtrInput // Number of expected groups when using `outlier` detection. ExpectedGroups pulumi.IntPtrInput // **DEPRECATED:** Use `openViolationOnGroupOverlap` instead, but use the inverse value of your boolean - e.g. if `ignoreOverlap = false`, use `openViolationOnGroupOverlap = true`. This argument sets whether to trigger a violation when groups overlap. If set to `true` overlapping groups will not trigger a violation. This argument is only applicable in `outlier` conditions. // // Deprecated: use `open_violation_on_group_overlap` attribute instead, but use the inverse of your boolean - e.g. if ignore_overlap = false, use open_violation_on_group_overlap = true IgnoreOverlap pulumi.BoolPtrInput // The title of the condition. Name pulumi.StringPtrInput // A NRQL query. See NRQL below for details. Nrql NrqlAlertConditionNrqlInput // Whether or not to trigger a violation when groups overlap. Set to `true` if you want to trigger a violation when groups overlap. This argument is only applicable in `outlier` conditions. OpenViolationOnGroupOverlap pulumi.BoolPtrInput // The ID of the policy where this condition should be used. PolicyId pulumi.IntInput // Runbook URL to display in notifications. RunbookUrl pulumi.StringPtrInput // **DEPRECATED** Use `critical`, and `warning` instead. A list of terms for this condition. See Terms below for details. // // Deprecated: use `critical` and `warning` attributes instead Terms NrqlAlertConditionTermArrayInput // The type of the condition. Valid values are `static`, `baseline`, or `outlier`. Defaults to `static`. Type pulumi.StringPtrInput // Possible values are `singleValue`, `sum` (case insensitive). Defaults to `singleValue`. ValueFunction pulumi.StringPtrInput // Sets a time limit, in hours, that will automatically force-close a long-lasting violation after the time limit you select. Possible values are `ONE_HOUR`, `TWO_HOURS`, `FOUR_HOURS`, `EIGHT_HOURS`, `TWELVE_HOURS`, `TWENTY_FOUR_HOURS` (case insensitive). ViolationTimeLimit pulumi.StringPtrInput // **DEPRECATED:** Use `violationTimeLimit` instead. Sets a time limit, in seconds, that will automatically force-close a long-lasting violation after the time limit you select. Possible values are `3600`, `7200`, `14400`, `28800`, `43200`, and `86400`. // // Deprecated: use `violation_time_limit` attribute instead ViolationTimeLimitSeconds pulumi.IntPtrInput // A list containing the `warning` threshold values. See Terms below for details. Warning NrqlAlertConditionWarningPtrInput }
The set of arguments for constructing a NrqlAlertCondition resource.
func (NrqlAlertConditionArgs) ElementType ¶
func (NrqlAlertConditionArgs) ElementType() reflect.Type
type NrqlAlertConditionCritical ¶
type NrqlAlertConditionCritical struct { // Deprecated: use `threshold_duration` attribute instead Duration *int `pulumi:"duration"` Operator *string `pulumi:"operator"` Threshold float64 `pulumi:"threshold"` ThresholdDuration *int `pulumi:"thresholdDuration"` ThresholdOccurrences *string `pulumi:"thresholdOccurrences"` // Deprecated: use `threshold_occurrences` attribute instead TimeFunction *string `pulumi:"timeFunction"` }
type NrqlAlertConditionCriticalArgs ¶
type NrqlAlertConditionCriticalArgs struct { // Deprecated: use `threshold_duration` attribute instead Duration pulumi.IntPtrInput `pulumi:"duration"` Operator pulumi.StringPtrInput `pulumi:"operator"` Threshold pulumi.Float64Input `pulumi:"threshold"` ThresholdDuration pulumi.IntPtrInput `pulumi:"thresholdDuration"` ThresholdOccurrences pulumi.StringPtrInput `pulumi:"thresholdOccurrences"` // Deprecated: use `threshold_occurrences` attribute instead TimeFunction pulumi.StringPtrInput `pulumi:"timeFunction"` }
func (NrqlAlertConditionCriticalArgs) ElementType ¶
func (NrqlAlertConditionCriticalArgs) ElementType() reflect.Type
func (NrqlAlertConditionCriticalArgs) ToNrqlAlertConditionCriticalOutput ¶
func (i NrqlAlertConditionCriticalArgs) ToNrqlAlertConditionCriticalOutput() NrqlAlertConditionCriticalOutput
func (NrqlAlertConditionCriticalArgs) ToNrqlAlertConditionCriticalOutputWithContext ¶
func (i NrqlAlertConditionCriticalArgs) ToNrqlAlertConditionCriticalOutputWithContext(ctx context.Context) NrqlAlertConditionCriticalOutput
func (NrqlAlertConditionCriticalArgs) ToNrqlAlertConditionCriticalPtrOutput ¶
func (i NrqlAlertConditionCriticalArgs) ToNrqlAlertConditionCriticalPtrOutput() NrqlAlertConditionCriticalPtrOutput
func (NrqlAlertConditionCriticalArgs) ToNrqlAlertConditionCriticalPtrOutputWithContext ¶
func (i NrqlAlertConditionCriticalArgs) ToNrqlAlertConditionCriticalPtrOutputWithContext(ctx context.Context) NrqlAlertConditionCriticalPtrOutput
type NrqlAlertConditionCriticalInput ¶
type NrqlAlertConditionCriticalInput interface { pulumi.Input ToNrqlAlertConditionCriticalOutput() NrqlAlertConditionCriticalOutput ToNrqlAlertConditionCriticalOutputWithContext(context.Context) NrqlAlertConditionCriticalOutput }
NrqlAlertConditionCriticalInput is an input type that accepts NrqlAlertConditionCriticalArgs and NrqlAlertConditionCriticalOutput values. You can construct a concrete instance of `NrqlAlertConditionCriticalInput` via:
NrqlAlertConditionCriticalArgs{...}
type NrqlAlertConditionCriticalOutput ¶
type NrqlAlertConditionCriticalOutput struct{ *pulumi.OutputState }
func (NrqlAlertConditionCriticalOutput) Duration
deprecated
func (o NrqlAlertConditionCriticalOutput) Duration() pulumi.IntPtrOutput
Deprecated: use `threshold_duration` attribute instead
func (NrqlAlertConditionCriticalOutput) ElementType ¶
func (NrqlAlertConditionCriticalOutput) ElementType() reflect.Type
func (NrqlAlertConditionCriticalOutput) Operator ¶
func (o NrqlAlertConditionCriticalOutput) Operator() pulumi.StringPtrOutput
func (NrqlAlertConditionCriticalOutput) Threshold ¶
func (o NrqlAlertConditionCriticalOutput) Threshold() pulumi.Float64Output
func (NrqlAlertConditionCriticalOutput) ThresholdDuration ¶
func (o NrqlAlertConditionCriticalOutput) ThresholdDuration() pulumi.IntPtrOutput
func (NrqlAlertConditionCriticalOutput) ThresholdOccurrences ¶
func (o NrqlAlertConditionCriticalOutput) ThresholdOccurrences() pulumi.StringPtrOutput
func (NrqlAlertConditionCriticalOutput) TimeFunction
deprecated
func (o NrqlAlertConditionCriticalOutput) TimeFunction() pulumi.StringPtrOutput
Deprecated: use `threshold_occurrences` attribute instead
func (NrqlAlertConditionCriticalOutput) ToNrqlAlertConditionCriticalOutput ¶
func (o NrqlAlertConditionCriticalOutput) ToNrqlAlertConditionCriticalOutput() NrqlAlertConditionCriticalOutput
func (NrqlAlertConditionCriticalOutput) ToNrqlAlertConditionCriticalOutputWithContext ¶
func (o NrqlAlertConditionCriticalOutput) ToNrqlAlertConditionCriticalOutputWithContext(ctx context.Context) NrqlAlertConditionCriticalOutput
func (NrqlAlertConditionCriticalOutput) ToNrqlAlertConditionCriticalPtrOutput ¶
func (o NrqlAlertConditionCriticalOutput) ToNrqlAlertConditionCriticalPtrOutput() NrqlAlertConditionCriticalPtrOutput
func (NrqlAlertConditionCriticalOutput) ToNrqlAlertConditionCriticalPtrOutputWithContext ¶
func (o NrqlAlertConditionCriticalOutput) ToNrqlAlertConditionCriticalPtrOutputWithContext(ctx context.Context) NrqlAlertConditionCriticalPtrOutput
type NrqlAlertConditionCriticalPtrInput ¶
type NrqlAlertConditionCriticalPtrInput interface { pulumi.Input ToNrqlAlertConditionCriticalPtrOutput() NrqlAlertConditionCriticalPtrOutput ToNrqlAlertConditionCriticalPtrOutputWithContext(context.Context) NrqlAlertConditionCriticalPtrOutput }
NrqlAlertConditionCriticalPtrInput is an input type that accepts NrqlAlertConditionCriticalArgs, NrqlAlertConditionCriticalPtr and NrqlAlertConditionCriticalPtrOutput values. You can construct a concrete instance of `NrqlAlertConditionCriticalPtrInput` via:
NrqlAlertConditionCriticalArgs{...} or: nil
func NrqlAlertConditionCriticalPtr ¶
func NrqlAlertConditionCriticalPtr(v *NrqlAlertConditionCriticalArgs) NrqlAlertConditionCriticalPtrInput
type NrqlAlertConditionCriticalPtrOutput ¶
type NrqlAlertConditionCriticalPtrOutput struct{ *pulumi.OutputState }
func (NrqlAlertConditionCriticalPtrOutput) Duration
deprecated
func (o NrqlAlertConditionCriticalPtrOutput) Duration() pulumi.IntPtrOutput
Deprecated: use `threshold_duration` attribute instead
func (NrqlAlertConditionCriticalPtrOutput) Elem ¶
func (o NrqlAlertConditionCriticalPtrOutput) Elem() NrqlAlertConditionCriticalOutput
func (NrqlAlertConditionCriticalPtrOutput) ElementType ¶
func (NrqlAlertConditionCriticalPtrOutput) ElementType() reflect.Type
func (NrqlAlertConditionCriticalPtrOutput) Operator ¶
func (o NrqlAlertConditionCriticalPtrOutput) Operator() pulumi.StringPtrOutput
func (NrqlAlertConditionCriticalPtrOutput) Threshold ¶
func (o NrqlAlertConditionCriticalPtrOutput) Threshold() pulumi.Float64PtrOutput
func (NrqlAlertConditionCriticalPtrOutput) ThresholdDuration ¶
func (o NrqlAlertConditionCriticalPtrOutput) ThresholdDuration() pulumi.IntPtrOutput
func (NrqlAlertConditionCriticalPtrOutput) ThresholdOccurrences ¶
func (o NrqlAlertConditionCriticalPtrOutput) ThresholdOccurrences() pulumi.StringPtrOutput
func (NrqlAlertConditionCriticalPtrOutput) TimeFunction
deprecated
func (o NrqlAlertConditionCriticalPtrOutput) TimeFunction() pulumi.StringPtrOutput
Deprecated: use `threshold_occurrences` attribute instead
func (NrqlAlertConditionCriticalPtrOutput) ToNrqlAlertConditionCriticalPtrOutput ¶
func (o NrqlAlertConditionCriticalPtrOutput) ToNrqlAlertConditionCriticalPtrOutput() NrqlAlertConditionCriticalPtrOutput
func (NrqlAlertConditionCriticalPtrOutput) ToNrqlAlertConditionCriticalPtrOutputWithContext ¶
func (o NrqlAlertConditionCriticalPtrOutput) ToNrqlAlertConditionCriticalPtrOutputWithContext(ctx context.Context) NrqlAlertConditionCriticalPtrOutput
type NrqlAlertConditionNrql ¶
type NrqlAlertConditionNrqlArgs ¶
type NrqlAlertConditionNrqlArgs struct { EvaluationOffset pulumi.IntPtrInput `pulumi:"evaluationOffset"` Query pulumi.StringInput `pulumi:"query"` // Deprecated: use `evaluation_offset` attribute instead SinceValue pulumi.StringPtrInput `pulumi:"sinceValue"` }
func (NrqlAlertConditionNrqlArgs) ElementType ¶
func (NrqlAlertConditionNrqlArgs) ElementType() reflect.Type
func (NrqlAlertConditionNrqlArgs) ToNrqlAlertConditionNrqlOutput ¶
func (i NrqlAlertConditionNrqlArgs) ToNrqlAlertConditionNrqlOutput() NrqlAlertConditionNrqlOutput
func (NrqlAlertConditionNrqlArgs) ToNrqlAlertConditionNrqlOutputWithContext ¶
func (i NrqlAlertConditionNrqlArgs) ToNrqlAlertConditionNrqlOutputWithContext(ctx context.Context) NrqlAlertConditionNrqlOutput
func (NrqlAlertConditionNrqlArgs) ToNrqlAlertConditionNrqlPtrOutput ¶
func (i NrqlAlertConditionNrqlArgs) ToNrqlAlertConditionNrqlPtrOutput() NrqlAlertConditionNrqlPtrOutput
func (NrqlAlertConditionNrqlArgs) ToNrqlAlertConditionNrqlPtrOutputWithContext ¶
func (i NrqlAlertConditionNrqlArgs) ToNrqlAlertConditionNrqlPtrOutputWithContext(ctx context.Context) NrqlAlertConditionNrqlPtrOutput
type NrqlAlertConditionNrqlInput ¶
type NrqlAlertConditionNrqlInput interface { pulumi.Input ToNrqlAlertConditionNrqlOutput() NrqlAlertConditionNrqlOutput ToNrqlAlertConditionNrqlOutputWithContext(context.Context) NrqlAlertConditionNrqlOutput }
NrqlAlertConditionNrqlInput is an input type that accepts NrqlAlertConditionNrqlArgs and NrqlAlertConditionNrqlOutput values. You can construct a concrete instance of `NrqlAlertConditionNrqlInput` via:
NrqlAlertConditionNrqlArgs{...}
type NrqlAlertConditionNrqlOutput ¶
type NrqlAlertConditionNrqlOutput struct{ *pulumi.OutputState }
func (NrqlAlertConditionNrqlOutput) ElementType ¶
func (NrqlAlertConditionNrqlOutput) ElementType() reflect.Type
func (NrqlAlertConditionNrqlOutput) EvaluationOffset ¶
func (o NrqlAlertConditionNrqlOutput) EvaluationOffset() pulumi.IntPtrOutput
func (NrqlAlertConditionNrqlOutput) Query ¶
func (o NrqlAlertConditionNrqlOutput) Query() pulumi.StringOutput
func (NrqlAlertConditionNrqlOutput) SinceValue
deprecated
func (o NrqlAlertConditionNrqlOutput) SinceValue() pulumi.StringPtrOutput
Deprecated: use `evaluation_offset` attribute instead
func (NrqlAlertConditionNrqlOutput) ToNrqlAlertConditionNrqlOutput ¶
func (o NrqlAlertConditionNrqlOutput) ToNrqlAlertConditionNrqlOutput() NrqlAlertConditionNrqlOutput
func (NrqlAlertConditionNrqlOutput) ToNrqlAlertConditionNrqlOutputWithContext ¶
func (o NrqlAlertConditionNrqlOutput) ToNrqlAlertConditionNrqlOutputWithContext(ctx context.Context) NrqlAlertConditionNrqlOutput
func (NrqlAlertConditionNrqlOutput) ToNrqlAlertConditionNrqlPtrOutput ¶
func (o NrqlAlertConditionNrqlOutput) ToNrqlAlertConditionNrqlPtrOutput() NrqlAlertConditionNrqlPtrOutput
func (NrqlAlertConditionNrqlOutput) ToNrqlAlertConditionNrqlPtrOutputWithContext ¶
func (o NrqlAlertConditionNrqlOutput) ToNrqlAlertConditionNrqlPtrOutputWithContext(ctx context.Context) NrqlAlertConditionNrqlPtrOutput
type NrqlAlertConditionNrqlPtrInput ¶
type NrqlAlertConditionNrqlPtrInput interface { pulumi.Input ToNrqlAlertConditionNrqlPtrOutput() NrqlAlertConditionNrqlPtrOutput ToNrqlAlertConditionNrqlPtrOutputWithContext(context.Context) NrqlAlertConditionNrqlPtrOutput }
NrqlAlertConditionNrqlPtrInput is an input type that accepts NrqlAlertConditionNrqlArgs, NrqlAlertConditionNrqlPtr and NrqlAlertConditionNrqlPtrOutput values. You can construct a concrete instance of `NrqlAlertConditionNrqlPtrInput` via:
NrqlAlertConditionNrqlArgs{...} or: nil
func NrqlAlertConditionNrqlPtr ¶
func NrqlAlertConditionNrqlPtr(v *NrqlAlertConditionNrqlArgs) NrqlAlertConditionNrqlPtrInput
type NrqlAlertConditionNrqlPtrOutput ¶
type NrqlAlertConditionNrqlPtrOutput struct{ *pulumi.OutputState }
func (NrqlAlertConditionNrqlPtrOutput) Elem ¶
func (o NrqlAlertConditionNrqlPtrOutput) Elem() NrqlAlertConditionNrqlOutput
func (NrqlAlertConditionNrqlPtrOutput) ElementType ¶
func (NrqlAlertConditionNrqlPtrOutput) ElementType() reflect.Type
func (NrqlAlertConditionNrqlPtrOutput) EvaluationOffset ¶
func (o NrqlAlertConditionNrqlPtrOutput) EvaluationOffset() pulumi.IntPtrOutput
func (NrqlAlertConditionNrqlPtrOutput) Query ¶
func (o NrqlAlertConditionNrqlPtrOutput) Query() pulumi.StringPtrOutput
func (NrqlAlertConditionNrqlPtrOutput) SinceValue
deprecated
func (o NrqlAlertConditionNrqlPtrOutput) SinceValue() pulumi.StringPtrOutput
Deprecated: use `evaluation_offset` attribute instead
func (NrqlAlertConditionNrqlPtrOutput) ToNrqlAlertConditionNrqlPtrOutput ¶
func (o NrqlAlertConditionNrqlPtrOutput) ToNrqlAlertConditionNrqlPtrOutput() NrqlAlertConditionNrqlPtrOutput
func (NrqlAlertConditionNrqlPtrOutput) ToNrqlAlertConditionNrqlPtrOutputWithContext ¶
func (o NrqlAlertConditionNrqlPtrOutput) ToNrqlAlertConditionNrqlPtrOutputWithContext(ctx context.Context) NrqlAlertConditionNrqlPtrOutput
type NrqlAlertConditionState ¶
type NrqlAlertConditionState struct { // The New Relic account ID of the account you wish to create the condition. Defaults to the account ID set in your environment variable `NEW_RELIC_ACCOUNT_ID`. AccountId pulumi.IntPtrInput // The baseline direction of a _baseline_ NRQL alert condition. Valid values are: `lowerOnly`, `upperAndLower`, `upperOnly` (case insensitive). BaselineDirection pulumi.StringPtrInput // A list containing the `critical` threshold values. See Terms below for details. Critical NrqlAlertConditionCriticalPtrInput // The description of the NRQL alert condition. Description pulumi.StringPtrInput // Whether to enable the alert condition. Valid values are `true` and `false`. Defaults to `true`. Enabled pulumi.BoolPtrInput // Number of expected groups when using `outlier` detection. ExpectedGroups pulumi.IntPtrInput // **DEPRECATED:** Use `openViolationOnGroupOverlap` instead, but use the inverse value of your boolean - e.g. if `ignoreOverlap = false`, use `openViolationOnGroupOverlap = true`. This argument sets whether to trigger a violation when groups overlap. If set to `true` overlapping groups will not trigger a violation. This argument is only applicable in `outlier` conditions. // // Deprecated: use `open_violation_on_group_overlap` attribute instead, but use the inverse of your boolean - e.g. if ignore_overlap = false, use open_violation_on_group_overlap = true IgnoreOverlap pulumi.BoolPtrInput // The title of the condition. Name pulumi.StringPtrInput // A NRQL query. See NRQL below for details. Nrql NrqlAlertConditionNrqlPtrInput // Whether or not to trigger a violation when groups overlap. Set to `true` if you want to trigger a violation when groups overlap. This argument is only applicable in `outlier` conditions. OpenViolationOnGroupOverlap pulumi.BoolPtrInput // The ID of the policy where this condition should be used. PolicyId pulumi.IntPtrInput // Runbook URL to display in notifications. RunbookUrl pulumi.StringPtrInput // **DEPRECATED** Use `critical`, and `warning` instead. A list of terms for this condition. See Terms below for details. // // Deprecated: use `critical` and `warning` attributes instead Terms NrqlAlertConditionTermArrayInput // The type of the condition. Valid values are `static`, `baseline`, or `outlier`. Defaults to `static`. Type pulumi.StringPtrInput // Possible values are `singleValue`, `sum` (case insensitive). Defaults to `singleValue`. ValueFunction pulumi.StringPtrInput // Sets a time limit, in hours, that will automatically force-close a long-lasting violation after the time limit you select. Possible values are `ONE_HOUR`, `TWO_HOURS`, `FOUR_HOURS`, `EIGHT_HOURS`, `TWELVE_HOURS`, `TWENTY_FOUR_HOURS` (case insensitive). ViolationTimeLimit pulumi.StringPtrInput // **DEPRECATED:** Use `violationTimeLimit` instead. Sets a time limit, in seconds, that will automatically force-close a long-lasting violation after the time limit you select. Possible values are `3600`, `7200`, `14400`, `28800`, `43200`, and `86400`. // // Deprecated: use `violation_time_limit` attribute instead ViolationTimeLimitSeconds pulumi.IntPtrInput // A list containing the `warning` threshold values. See Terms below for details. Warning NrqlAlertConditionWarningPtrInput }
func (NrqlAlertConditionState) ElementType ¶
func (NrqlAlertConditionState) ElementType() reflect.Type
type NrqlAlertConditionTerm ¶
type NrqlAlertConditionTerm struct { // Deprecated: use `threshold_duration` attribute instead Duration *int `pulumi:"duration"` Operator *string `pulumi:"operator"` Priority *string `pulumi:"priority"` Threshold float64 `pulumi:"threshold"` ThresholdDuration *int `pulumi:"thresholdDuration"` ThresholdOccurrences *string `pulumi:"thresholdOccurrences"` // Deprecated: use `threshold_occurrences` attribute instead TimeFunction *string `pulumi:"timeFunction"` }
type NrqlAlertConditionTermArgs ¶
type NrqlAlertConditionTermArgs struct { // Deprecated: use `threshold_duration` attribute instead Duration pulumi.IntPtrInput `pulumi:"duration"` Operator pulumi.StringPtrInput `pulumi:"operator"` Priority pulumi.StringPtrInput `pulumi:"priority"` Threshold pulumi.Float64Input `pulumi:"threshold"` ThresholdDuration pulumi.IntPtrInput `pulumi:"thresholdDuration"` ThresholdOccurrences pulumi.StringPtrInput `pulumi:"thresholdOccurrences"` // Deprecated: use `threshold_occurrences` attribute instead TimeFunction pulumi.StringPtrInput `pulumi:"timeFunction"` }
func (NrqlAlertConditionTermArgs) ElementType ¶
func (NrqlAlertConditionTermArgs) ElementType() reflect.Type
func (NrqlAlertConditionTermArgs) ToNrqlAlertConditionTermOutput ¶
func (i NrqlAlertConditionTermArgs) ToNrqlAlertConditionTermOutput() NrqlAlertConditionTermOutput
func (NrqlAlertConditionTermArgs) ToNrqlAlertConditionTermOutputWithContext ¶
func (i NrqlAlertConditionTermArgs) ToNrqlAlertConditionTermOutputWithContext(ctx context.Context) NrqlAlertConditionTermOutput
type NrqlAlertConditionTermArray ¶
type NrqlAlertConditionTermArray []NrqlAlertConditionTermInput
func (NrqlAlertConditionTermArray) ElementType ¶
func (NrqlAlertConditionTermArray) ElementType() reflect.Type
func (NrqlAlertConditionTermArray) ToNrqlAlertConditionTermArrayOutput ¶
func (i NrqlAlertConditionTermArray) ToNrqlAlertConditionTermArrayOutput() NrqlAlertConditionTermArrayOutput
func (NrqlAlertConditionTermArray) ToNrqlAlertConditionTermArrayOutputWithContext ¶
func (i NrqlAlertConditionTermArray) ToNrqlAlertConditionTermArrayOutputWithContext(ctx context.Context) NrqlAlertConditionTermArrayOutput
type NrqlAlertConditionTermArrayInput ¶
type NrqlAlertConditionTermArrayInput interface { pulumi.Input ToNrqlAlertConditionTermArrayOutput() NrqlAlertConditionTermArrayOutput ToNrqlAlertConditionTermArrayOutputWithContext(context.Context) NrqlAlertConditionTermArrayOutput }
NrqlAlertConditionTermArrayInput is an input type that accepts NrqlAlertConditionTermArray and NrqlAlertConditionTermArrayOutput values. You can construct a concrete instance of `NrqlAlertConditionTermArrayInput` via:
NrqlAlertConditionTermArray{ NrqlAlertConditionTermArgs{...} }
type NrqlAlertConditionTermArrayOutput ¶
type NrqlAlertConditionTermArrayOutput struct{ *pulumi.OutputState }
func (NrqlAlertConditionTermArrayOutput) ElementType ¶
func (NrqlAlertConditionTermArrayOutput) ElementType() reflect.Type
func (NrqlAlertConditionTermArrayOutput) Index ¶
func (o NrqlAlertConditionTermArrayOutput) Index(i pulumi.IntInput) NrqlAlertConditionTermOutput
func (NrqlAlertConditionTermArrayOutput) ToNrqlAlertConditionTermArrayOutput ¶
func (o NrqlAlertConditionTermArrayOutput) ToNrqlAlertConditionTermArrayOutput() NrqlAlertConditionTermArrayOutput
func (NrqlAlertConditionTermArrayOutput) ToNrqlAlertConditionTermArrayOutputWithContext ¶
func (o NrqlAlertConditionTermArrayOutput) ToNrqlAlertConditionTermArrayOutputWithContext(ctx context.Context) NrqlAlertConditionTermArrayOutput
type NrqlAlertConditionTermInput ¶
type NrqlAlertConditionTermInput interface { pulumi.Input ToNrqlAlertConditionTermOutput() NrqlAlertConditionTermOutput ToNrqlAlertConditionTermOutputWithContext(context.Context) NrqlAlertConditionTermOutput }
NrqlAlertConditionTermInput is an input type that accepts NrqlAlertConditionTermArgs and NrqlAlertConditionTermOutput values. You can construct a concrete instance of `NrqlAlertConditionTermInput` via:
NrqlAlertConditionTermArgs{...}
type NrqlAlertConditionTermOutput ¶
type NrqlAlertConditionTermOutput struct{ *pulumi.OutputState }
func (NrqlAlertConditionTermOutput) Duration
deprecated
func (o NrqlAlertConditionTermOutput) Duration() pulumi.IntPtrOutput
Deprecated: use `threshold_duration` attribute instead
func (NrqlAlertConditionTermOutput) ElementType ¶
func (NrqlAlertConditionTermOutput) ElementType() reflect.Type
func (NrqlAlertConditionTermOutput) Operator ¶
func (o NrqlAlertConditionTermOutput) Operator() pulumi.StringPtrOutput
func (NrqlAlertConditionTermOutput) Priority ¶
func (o NrqlAlertConditionTermOutput) Priority() pulumi.StringPtrOutput
func (NrqlAlertConditionTermOutput) Threshold ¶
func (o NrqlAlertConditionTermOutput) Threshold() pulumi.Float64Output
func (NrqlAlertConditionTermOutput) ThresholdDuration ¶
func (o NrqlAlertConditionTermOutput) ThresholdDuration() pulumi.IntPtrOutput
func (NrqlAlertConditionTermOutput) ThresholdOccurrences ¶
func (o NrqlAlertConditionTermOutput) ThresholdOccurrences() pulumi.StringPtrOutput
func (NrqlAlertConditionTermOutput) TimeFunction
deprecated
func (o NrqlAlertConditionTermOutput) TimeFunction() pulumi.StringPtrOutput
Deprecated: use `threshold_occurrences` attribute instead
func (NrqlAlertConditionTermOutput) ToNrqlAlertConditionTermOutput ¶
func (o NrqlAlertConditionTermOutput) ToNrqlAlertConditionTermOutput() NrqlAlertConditionTermOutput
func (NrqlAlertConditionTermOutput) ToNrqlAlertConditionTermOutputWithContext ¶
func (o NrqlAlertConditionTermOutput) ToNrqlAlertConditionTermOutputWithContext(ctx context.Context) NrqlAlertConditionTermOutput
type NrqlAlertConditionWarning ¶
type NrqlAlertConditionWarning struct { // Deprecated: use `threshold_duration` attribute instead Duration *int `pulumi:"duration"` Operator *string `pulumi:"operator"` Threshold float64 `pulumi:"threshold"` ThresholdDuration *int `pulumi:"thresholdDuration"` ThresholdOccurrences *string `pulumi:"thresholdOccurrences"` // Deprecated: use `threshold_occurrences` attribute instead TimeFunction *string `pulumi:"timeFunction"` }
type NrqlAlertConditionWarningArgs ¶
type NrqlAlertConditionWarningArgs struct { // Deprecated: use `threshold_duration` attribute instead Duration pulumi.IntPtrInput `pulumi:"duration"` Operator pulumi.StringPtrInput `pulumi:"operator"` Threshold pulumi.Float64Input `pulumi:"threshold"` ThresholdDuration pulumi.IntPtrInput `pulumi:"thresholdDuration"` ThresholdOccurrences pulumi.StringPtrInput `pulumi:"thresholdOccurrences"` // Deprecated: use `threshold_occurrences` attribute instead TimeFunction pulumi.StringPtrInput `pulumi:"timeFunction"` }
func (NrqlAlertConditionWarningArgs) ElementType ¶
func (NrqlAlertConditionWarningArgs) ElementType() reflect.Type
func (NrqlAlertConditionWarningArgs) ToNrqlAlertConditionWarningOutput ¶
func (i NrqlAlertConditionWarningArgs) ToNrqlAlertConditionWarningOutput() NrqlAlertConditionWarningOutput
func (NrqlAlertConditionWarningArgs) ToNrqlAlertConditionWarningOutputWithContext ¶
func (i NrqlAlertConditionWarningArgs) ToNrqlAlertConditionWarningOutputWithContext(ctx context.Context) NrqlAlertConditionWarningOutput
func (NrqlAlertConditionWarningArgs) ToNrqlAlertConditionWarningPtrOutput ¶
func (i NrqlAlertConditionWarningArgs) ToNrqlAlertConditionWarningPtrOutput() NrqlAlertConditionWarningPtrOutput
func (NrqlAlertConditionWarningArgs) ToNrqlAlertConditionWarningPtrOutputWithContext ¶
func (i NrqlAlertConditionWarningArgs) ToNrqlAlertConditionWarningPtrOutputWithContext(ctx context.Context) NrqlAlertConditionWarningPtrOutput
type NrqlAlertConditionWarningInput ¶
type NrqlAlertConditionWarningInput interface { pulumi.Input ToNrqlAlertConditionWarningOutput() NrqlAlertConditionWarningOutput ToNrqlAlertConditionWarningOutputWithContext(context.Context) NrqlAlertConditionWarningOutput }
NrqlAlertConditionWarningInput is an input type that accepts NrqlAlertConditionWarningArgs and NrqlAlertConditionWarningOutput values. You can construct a concrete instance of `NrqlAlertConditionWarningInput` via:
NrqlAlertConditionWarningArgs{...}
type NrqlAlertConditionWarningOutput ¶
type NrqlAlertConditionWarningOutput struct{ *pulumi.OutputState }
func (NrqlAlertConditionWarningOutput) Duration
deprecated
func (o NrqlAlertConditionWarningOutput) Duration() pulumi.IntPtrOutput
Deprecated: use `threshold_duration` attribute instead
func (NrqlAlertConditionWarningOutput) ElementType ¶
func (NrqlAlertConditionWarningOutput) ElementType() reflect.Type
func (NrqlAlertConditionWarningOutput) Operator ¶
func (o NrqlAlertConditionWarningOutput) Operator() pulumi.StringPtrOutput
func (NrqlAlertConditionWarningOutput) Threshold ¶
func (o NrqlAlertConditionWarningOutput) Threshold() pulumi.Float64Output
func (NrqlAlertConditionWarningOutput) ThresholdDuration ¶
func (o NrqlAlertConditionWarningOutput) ThresholdDuration() pulumi.IntPtrOutput
func (NrqlAlertConditionWarningOutput) ThresholdOccurrences ¶
func (o NrqlAlertConditionWarningOutput) ThresholdOccurrences() pulumi.StringPtrOutput
func (NrqlAlertConditionWarningOutput) TimeFunction
deprecated
func (o NrqlAlertConditionWarningOutput) TimeFunction() pulumi.StringPtrOutput
Deprecated: use `threshold_occurrences` attribute instead
func (NrqlAlertConditionWarningOutput) ToNrqlAlertConditionWarningOutput ¶
func (o NrqlAlertConditionWarningOutput) ToNrqlAlertConditionWarningOutput() NrqlAlertConditionWarningOutput
func (NrqlAlertConditionWarningOutput) ToNrqlAlertConditionWarningOutputWithContext ¶
func (o NrqlAlertConditionWarningOutput) ToNrqlAlertConditionWarningOutputWithContext(ctx context.Context) NrqlAlertConditionWarningOutput
func (NrqlAlertConditionWarningOutput) ToNrqlAlertConditionWarningPtrOutput ¶
func (o NrqlAlertConditionWarningOutput) ToNrqlAlertConditionWarningPtrOutput() NrqlAlertConditionWarningPtrOutput
func (NrqlAlertConditionWarningOutput) ToNrqlAlertConditionWarningPtrOutputWithContext ¶
func (o NrqlAlertConditionWarningOutput) ToNrqlAlertConditionWarningPtrOutputWithContext(ctx context.Context) NrqlAlertConditionWarningPtrOutput
type NrqlAlertConditionWarningPtrInput ¶
type NrqlAlertConditionWarningPtrInput interface { pulumi.Input ToNrqlAlertConditionWarningPtrOutput() NrqlAlertConditionWarningPtrOutput ToNrqlAlertConditionWarningPtrOutputWithContext(context.Context) NrqlAlertConditionWarningPtrOutput }
NrqlAlertConditionWarningPtrInput is an input type that accepts NrqlAlertConditionWarningArgs, NrqlAlertConditionWarningPtr and NrqlAlertConditionWarningPtrOutput values. You can construct a concrete instance of `NrqlAlertConditionWarningPtrInput` via:
NrqlAlertConditionWarningArgs{...} or: nil
func NrqlAlertConditionWarningPtr ¶
func NrqlAlertConditionWarningPtr(v *NrqlAlertConditionWarningArgs) NrqlAlertConditionWarningPtrInput
type NrqlAlertConditionWarningPtrOutput ¶
type NrqlAlertConditionWarningPtrOutput struct{ *pulumi.OutputState }
func (NrqlAlertConditionWarningPtrOutput) Duration
deprecated
func (o NrqlAlertConditionWarningPtrOutput) Duration() pulumi.IntPtrOutput
Deprecated: use `threshold_duration` attribute instead
func (NrqlAlertConditionWarningPtrOutput) Elem ¶
func (o NrqlAlertConditionWarningPtrOutput) Elem() NrqlAlertConditionWarningOutput
func (NrqlAlertConditionWarningPtrOutput) ElementType ¶
func (NrqlAlertConditionWarningPtrOutput) ElementType() reflect.Type
func (NrqlAlertConditionWarningPtrOutput) Operator ¶
func (o NrqlAlertConditionWarningPtrOutput) Operator() pulumi.StringPtrOutput
func (NrqlAlertConditionWarningPtrOutput) Threshold ¶
func (o NrqlAlertConditionWarningPtrOutput) Threshold() pulumi.Float64PtrOutput
func (NrqlAlertConditionWarningPtrOutput) ThresholdDuration ¶
func (o NrqlAlertConditionWarningPtrOutput) ThresholdDuration() pulumi.IntPtrOutput
func (NrqlAlertConditionWarningPtrOutput) ThresholdOccurrences ¶
func (o NrqlAlertConditionWarningPtrOutput) ThresholdOccurrences() pulumi.StringPtrOutput
func (NrqlAlertConditionWarningPtrOutput) TimeFunction
deprecated
func (o NrqlAlertConditionWarningPtrOutput) TimeFunction() pulumi.StringPtrOutput
Deprecated: use `threshold_occurrences` attribute instead
func (NrqlAlertConditionWarningPtrOutput) ToNrqlAlertConditionWarningPtrOutput ¶
func (o NrqlAlertConditionWarningPtrOutput) ToNrqlAlertConditionWarningPtrOutput() NrqlAlertConditionWarningPtrOutput
func (NrqlAlertConditionWarningPtrOutput) ToNrqlAlertConditionWarningPtrOutputWithContext ¶
func (o NrqlAlertConditionWarningPtrOutput) ToNrqlAlertConditionWarningPtrOutputWithContext(ctx context.Context) NrqlAlertConditionWarningPtrOutput
type Provider ¶
type Provider struct {
pulumi.ProviderResourceState
}
The provider type for the newrelic package. By default, resources use package-wide configuration settings, however an explicit `Provider` instance may be created and passed during resource construction to achieve fine-grained programmatic control over provider settings. See the [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
func NewProvider ¶
func NewProvider(ctx *pulumi.Context, name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error)
NewProvider registers a new resource with the given unique name, arguments, and options.
type ProviderArgs ¶
type ProviderArgs struct { AccountId pulumi.IntPtrInput AdminApiKey pulumi.StringPtrInput ApiKey pulumi.StringPtrInput // Deprecated: New Relic internal use only. API URLs are now configured based on the configured region. ApiUrl pulumi.StringPtrInput CacertFile pulumi.StringPtrInput // Deprecated: New Relic internal use only. API URLs are now configured based on the configured region. InfrastructureApiUrl pulumi.StringPtrInput InsecureSkipVerify pulumi.BoolPtrInput InsightsInsertKey pulumi.StringPtrInput InsightsInsertUrl pulumi.StringPtrInput InsightsQueryUrl pulumi.StringPtrInput // Deprecated: New Relic internal use only. API URLs are now configured based on the configured region. NerdgraphApiUrl pulumi.StringPtrInput // The data center for which your New Relic account is configured. Only one region per provider block is permitted. Region pulumi.StringPtrInput // Deprecated: New Relic internal use only. API URLs are now configured based on the configured region. SyntheticsApiUrl pulumi.StringPtrInput }
The set of arguments for constructing a Provider resource.
func (ProviderArgs) ElementType ¶
func (ProviderArgs) ElementType() reflect.Type
Source Files ¶
- alertChannel.go
- alertCondition.go
- alertMutingRule.go
- alertPolicy.go
- alertPolicyChannel.go
- apiAccessKey.go
- dashboard.go
- doc.go
- entityTags.go
- eventsToMetricsRule.go
- getAccount.go
- getAlertChannel.go
- getAlertPolicy.go
- getApplication.go
- getEntity.go
- getKeyTransaction.go
- infraAlertCondition.go
- nrqlAlertCondition.go
- provider.go
- pulumiTypes.go
- pulumiUtilities.go