Documentation ¶
Index ¶
- type Monitor
- type MonitorArgs
- type MonitorArray
- type MonitorArrayInput
- type MonitorArrayOutput
- func (MonitorArrayOutput) ElementType() reflect.Type
- func (o MonitorArrayOutput) Index(i pulumi.IntInput) MonitorOutput
- func (o MonitorArrayOutput) ToMonitorArrayOutput() MonitorArrayOutput
- func (o MonitorArrayOutput) ToMonitorArrayOutputWithContext(ctx context.Context) MonitorArrayOutput
- func (o MonitorArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*Monitor]
- type MonitorInput
- type MonitorMap
- type MonitorMapInput
- type MonitorMapOutput
- func (MonitorMapOutput) ElementType() reflect.Type
- func (o MonitorMapOutput) MapIndex(k pulumi.StringInput) MonitorOutput
- func (o MonitorMapOutput) ToMonitorMapOutput() MonitorMapOutput
- func (o MonitorMapOutput) ToMonitorMapOutputWithContext(ctx context.Context) MonitorMapOutput
- func (o MonitorMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*Monitor]
- type MonitorOutput
- func (o MonitorOutput) AccountCreationSource() pulumi.StringPtrOutput
- func (o MonitorOutput) AccountId() pulumi.StringOutput
- func (MonitorOutput) ElementType() reflect.Type
- func (o MonitorOutput) IngestionKey() pulumi.StringPtrOutput
- func (o MonitorOutput) Location() pulumi.StringOutput
- func (o MonitorOutput) Name() pulumi.StringOutput
- func (o MonitorOutput) OrgCreationSource() pulumi.StringPtrOutput
- func (o MonitorOutput) OrganizationId() pulumi.StringOutput
- func (o MonitorOutput) Plan() MonitorPlanOutput
- func (o MonitorOutput) ResourceGroupName() pulumi.StringOutput
- func (o MonitorOutput) ToMonitorOutput() MonitorOutput
- func (o MonitorOutput) ToMonitorOutputWithContext(ctx context.Context) MonitorOutput
- func (o MonitorOutput) ToOutput(ctx context.Context) pulumix.Output[*Monitor]
- func (o MonitorOutput) User() MonitorUserOutput
- func (o MonitorOutput) UserId() pulumi.StringPtrOutput
- type MonitorPlan
- type MonitorPlanArgs
- func (MonitorPlanArgs) ElementType() reflect.Type
- func (i MonitorPlanArgs) ToMonitorPlanOutput() MonitorPlanOutput
- func (i MonitorPlanArgs) ToMonitorPlanOutputWithContext(ctx context.Context) MonitorPlanOutput
- func (i MonitorPlanArgs) ToMonitorPlanPtrOutput() MonitorPlanPtrOutput
- func (i MonitorPlanArgs) ToMonitorPlanPtrOutputWithContext(ctx context.Context) MonitorPlanPtrOutput
- func (i MonitorPlanArgs) ToOutput(ctx context.Context) pulumix.Output[MonitorPlan]
- type MonitorPlanInput
- type MonitorPlanOutput
- func (o MonitorPlanOutput) BillingCycle() pulumi.StringPtrOutput
- func (o MonitorPlanOutput) EffectiveDate() pulumi.StringOutput
- func (MonitorPlanOutput) ElementType() reflect.Type
- func (o MonitorPlanOutput) PlanId() pulumi.StringPtrOutput
- func (o MonitorPlanOutput) ToMonitorPlanOutput() MonitorPlanOutput
- func (o MonitorPlanOutput) ToMonitorPlanOutputWithContext(ctx context.Context) MonitorPlanOutput
- func (o MonitorPlanOutput) ToMonitorPlanPtrOutput() MonitorPlanPtrOutput
- func (o MonitorPlanOutput) ToMonitorPlanPtrOutputWithContext(ctx context.Context) MonitorPlanPtrOutput
- func (o MonitorPlanOutput) ToOutput(ctx context.Context) pulumix.Output[MonitorPlan]
- func (o MonitorPlanOutput) UsageType() pulumi.StringPtrOutput
- type MonitorPlanPtrInput
- type MonitorPlanPtrOutput
- func (o MonitorPlanPtrOutput) BillingCycle() pulumi.StringPtrOutput
- func (o MonitorPlanPtrOutput) EffectiveDate() pulumi.StringPtrOutput
- func (o MonitorPlanPtrOutput) Elem() MonitorPlanOutput
- func (MonitorPlanPtrOutput) ElementType() reflect.Type
- func (o MonitorPlanPtrOutput) PlanId() pulumi.StringPtrOutput
- func (o MonitorPlanPtrOutput) ToMonitorPlanPtrOutput() MonitorPlanPtrOutput
- func (o MonitorPlanPtrOutput) ToMonitorPlanPtrOutputWithContext(ctx context.Context) MonitorPlanPtrOutput
- func (o MonitorPlanPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*MonitorPlan]
- func (o MonitorPlanPtrOutput) UsageType() pulumi.StringPtrOutput
- type MonitorState
- type MonitorUser
- type MonitorUserArgs
- func (MonitorUserArgs) ElementType() reflect.Type
- func (i MonitorUserArgs) ToMonitorUserOutput() MonitorUserOutput
- func (i MonitorUserArgs) ToMonitorUserOutputWithContext(ctx context.Context) MonitorUserOutput
- func (i MonitorUserArgs) ToMonitorUserPtrOutput() MonitorUserPtrOutput
- func (i MonitorUserArgs) ToMonitorUserPtrOutputWithContext(ctx context.Context) MonitorUserPtrOutput
- func (i MonitorUserArgs) ToOutput(ctx context.Context) pulumix.Output[MonitorUser]
- type MonitorUserInput
- type MonitorUserOutput
- func (MonitorUserOutput) ElementType() reflect.Type
- func (o MonitorUserOutput) Email() pulumi.StringOutput
- func (o MonitorUserOutput) FirstName() pulumi.StringOutput
- func (o MonitorUserOutput) LastName() pulumi.StringOutput
- func (o MonitorUserOutput) PhoneNumber() pulumi.StringOutput
- func (o MonitorUserOutput) ToMonitorUserOutput() MonitorUserOutput
- func (o MonitorUserOutput) ToMonitorUserOutputWithContext(ctx context.Context) MonitorUserOutput
- func (o MonitorUserOutput) ToMonitorUserPtrOutput() MonitorUserPtrOutput
- func (o MonitorUserOutput) ToMonitorUserPtrOutputWithContext(ctx context.Context) MonitorUserPtrOutput
- func (o MonitorUserOutput) ToOutput(ctx context.Context) pulumix.Output[MonitorUser]
- type MonitorUserPtrInput
- type MonitorUserPtrOutput
- func (o MonitorUserPtrOutput) Elem() MonitorUserOutput
- func (MonitorUserPtrOutput) ElementType() reflect.Type
- func (o MonitorUserPtrOutput) Email() pulumi.StringPtrOutput
- func (o MonitorUserPtrOutput) FirstName() pulumi.StringPtrOutput
- func (o MonitorUserPtrOutput) LastName() pulumi.StringPtrOutput
- func (o MonitorUserPtrOutput) PhoneNumber() pulumi.StringPtrOutput
- func (o MonitorUserPtrOutput) ToMonitorUserPtrOutput() MonitorUserPtrOutput
- func (o MonitorUserPtrOutput) ToMonitorUserPtrOutputWithContext(ctx context.Context) MonitorUserPtrOutput
- func (o MonitorUserPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*MonitorUser]
- type TagRule
- type TagRuleArgs
- type TagRuleArray
- type TagRuleArrayInput
- type TagRuleArrayOutput
- func (TagRuleArrayOutput) ElementType() reflect.Type
- func (o TagRuleArrayOutput) Index(i pulumi.IntInput) TagRuleOutput
- func (o TagRuleArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*TagRule]
- func (o TagRuleArrayOutput) ToTagRuleArrayOutput() TagRuleArrayOutput
- func (o TagRuleArrayOutput) ToTagRuleArrayOutputWithContext(ctx context.Context) TagRuleArrayOutput
- type TagRuleInput
- type TagRuleLogTagFilter
- type TagRuleLogTagFilterArgs
- func (TagRuleLogTagFilterArgs) ElementType() reflect.Type
- func (i TagRuleLogTagFilterArgs) ToOutput(ctx context.Context) pulumix.Output[TagRuleLogTagFilter]
- func (i TagRuleLogTagFilterArgs) ToTagRuleLogTagFilterOutput() TagRuleLogTagFilterOutput
- func (i TagRuleLogTagFilterArgs) ToTagRuleLogTagFilterOutputWithContext(ctx context.Context) TagRuleLogTagFilterOutput
- type TagRuleLogTagFilterArray
- func (TagRuleLogTagFilterArray) ElementType() reflect.Type
- func (i TagRuleLogTagFilterArray) ToOutput(ctx context.Context) pulumix.Output[[]TagRuleLogTagFilter]
- func (i TagRuleLogTagFilterArray) ToTagRuleLogTagFilterArrayOutput() TagRuleLogTagFilterArrayOutput
- func (i TagRuleLogTagFilterArray) ToTagRuleLogTagFilterArrayOutputWithContext(ctx context.Context) TagRuleLogTagFilterArrayOutput
- type TagRuleLogTagFilterArrayInput
- type TagRuleLogTagFilterArrayOutput
- func (TagRuleLogTagFilterArrayOutput) ElementType() reflect.Type
- func (o TagRuleLogTagFilterArrayOutput) Index(i pulumi.IntInput) TagRuleLogTagFilterOutput
- func (o TagRuleLogTagFilterArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]TagRuleLogTagFilter]
- func (o TagRuleLogTagFilterArrayOutput) ToTagRuleLogTagFilterArrayOutput() TagRuleLogTagFilterArrayOutput
- func (o TagRuleLogTagFilterArrayOutput) ToTagRuleLogTagFilterArrayOutputWithContext(ctx context.Context) TagRuleLogTagFilterArrayOutput
- type TagRuleLogTagFilterInput
- type TagRuleLogTagFilterOutput
- func (o TagRuleLogTagFilterOutput) Action() pulumi.StringOutput
- func (TagRuleLogTagFilterOutput) ElementType() reflect.Type
- func (o TagRuleLogTagFilterOutput) Name() pulumi.StringOutput
- func (o TagRuleLogTagFilterOutput) ToOutput(ctx context.Context) pulumix.Output[TagRuleLogTagFilter]
- func (o TagRuleLogTagFilterOutput) ToTagRuleLogTagFilterOutput() TagRuleLogTagFilterOutput
- func (o TagRuleLogTagFilterOutput) ToTagRuleLogTagFilterOutputWithContext(ctx context.Context) TagRuleLogTagFilterOutput
- func (o TagRuleLogTagFilterOutput) Value() pulumi.StringOutput
- type TagRuleMap
- type TagRuleMapInput
- type TagRuleMapOutput
- func (TagRuleMapOutput) ElementType() reflect.Type
- func (o TagRuleMapOutput) MapIndex(k pulumi.StringInput) TagRuleOutput
- func (o TagRuleMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*TagRule]
- func (o TagRuleMapOutput) ToTagRuleMapOutput() TagRuleMapOutput
- func (o TagRuleMapOutput) ToTagRuleMapOutputWithContext(ctx context.Context) TagRuleMapOutput
- type TagRuleMetricTagFilter
- type TagRuleMetricTagFilterArgs
- func (TagRuleMetricTagFilterArgs) ElementType() reflect.Type
- func (i TagRuleMetricTagFilterArgs) ToOutput(ctx context.Context) pulumix.Output[TagRuleMetricTagFilter]
- func (i TagRuleMetricTagFilterArgs) ToTagRuleMetricTagFilterOutput() TagRuleMetricTagFilterOutput
- func (i TagRuleMetricTagFilterArgs) ToTagRuleMetricTagFilterOutputWithContext(ctx context.Context) TagRuleMetricTagFilterOutput
- type TagRuleMetricTagFilterArray
- func (TagRuleMetricTagFilterArray) ElementType() reflect.Type
- func (i TagRuleMetricTagFilterArray) ToOutput(ctx context.Context) pulumix.Output[[]TagRuleMetricTagFilter]
- func (i TagRuleMetricTagFilterArray) ToTagRuleMetricTagFilterArrayOutput() TagRuleMetricTagFilterArrayOutput
- func (i TagRuleMetricTagFilterArray) ToTagRuleMetricTagFilterArrayOutputWithContext(ctx context.Context) TagRuleMetricTagFilterArrayOutput
- type TagRuleMetricTagFilterArrayInput
- type TagRuleMetricTagFilterArrayOutput
- func (TagRuleMetricTagFilterArrayOutput) ElementType() reflect.Type
- func (o TagRuleMetricTagFilterArrayOutput) Index(i pulumi.IntInput) TagRuleMetricTagFilterOutput
- func (o TagRuleMetricTagFilterArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]TagRuleMetricTagFilter]
- func (o TagRuleMetricTagFilterArrayOutput) ToTagRuleMetricTagFilterArrayOutput() TagRuleMetricTagFilterArrayOutput
- func (o TagRuleMetricTagFilterArrayOutput) ToTagRuleMetricTagFilterArrayOutputWithContext(ctx context.Context) TagRuleMetricTagFilterArrayOutput
- type TagRuleMetricTagFilterInput
- type TagRuleMetricTagFilterOutput
- func (o TagRuleMetricTagFilterOutput) Action() pulumi.StringOutput
- func (TagRuleMetricTagFilterOutput) ElementType() reflect.Type
- func (o TagRuleMetricTagFilterOutput) Name() pulumi.StringOutput
- func (o TagRuleMetricTagFilterOutput) ToOutput(ctx context.Context) pulumix.Output[TagRuleMetricTagFilter]
- func (o TagRuleMetricTagFilterOutput) ToTagRuleMetricTagFilterOutput() TagRuleMetricTagFilterOutput
- func (o TagRuleMetricTagFilterOutput) ToTagRuleMetricTagFilterOutputWithContext(ctx context.Context) TagRuleMetricTagFilterOutput
- func (o TagRuleMetricTagFilterOutput) Value() pulumi.StringOutput
- type TagRuleOutput
- func (o TagRuleOutput) ActivityLogEnabled() pulumi.BoolPtrOutput
- func (o TagRuleOutput) AzureActiveDirectoryLogEnabled() pulumi.BoolPtrOutput
- func (TagRuleOutput) ElementType() reflect.Type
- func (o TagRuleOutput) LogTagFilters() TagRuleLogTagFilterArrayOutput
- func (o TagRuleOutput) MetricEnabled() pulumi.BoolPtrOutput
- func (o TagRuleOutput) MetricTagFilters() TagRuleMetricTagFilterArrayOutput
- func (o TagRuleOutput) MonitorId() pulumi.StringOutput
- func (o TagRuleOutput) SubscriptionLogEnabled() pulumi.BoolPtrOutput
- func (o TagRuleOutput) ToOutput(ctx context.Context) pulumix.Output[*TagRule]
- func (o TagRuleOutput) ToTagRuleOutput() TagRuleOutput
- func (o TagRuleOutput) ToTagRuleOutputWithContext(ctx context.Context) TagRuleOutput
- type TagRuleState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Monitor ¶
type Monitor struct { pulumi.CustomResourceState // Specifies the source of account creation. Possible values are `LIFTR` and `NEWRELIC`. Defaults to `LIFTR`. Changing this forces a new Azure Native New Relic Monitor to be created. AccountCreationSource pulumi.StringPtrOutput `pulumi:"accountCreationSource"` // Specifies the account id. Changing this forces a new Azure Native New Relic Monitor to be created. AccountId pulumi.StringOutput `pulumi:"accountId"` // Specifies the ingestion key of account. Changing this forces a new Azure Native New Relic Monitor to be created. IngestionKey pulumi.StringPtrOutput `pulumi:"ingestionKey"` // Specifies the Azure Region where the Azure Native New Relic Monitor should exist. Changing this forces a new Azure Native New Relic Monitor to be created. Location pulumi.StringOutput `pulumi:"location"` // Specifies the name which should be used for this Azure Native New Relic Monitor. Changing this forces a new Azure Native New Relic Monitor to be created. Name pulumi.StringOutput `pulumi:"name"` // Specifies the source of org creation. Possible values are `LIFTR` and `NEWRELIC`. Defaults to `LIFTR`. Changing this forces a new Azure Native New Relic Monitor to be created. OrgCreationSource pulumi.StringPtrOutput `pulumi:"orgCreationSource"` // Specifies the organization id. Changing this forces a new Azure Native New Relic Monitor to be created. OrganizationId pulumi.StringOutput `pulumi:"organizationId"` // A `plan` block as defined below. Changing this forces a new Azure Native New Relic Monitor to be created. Plan MonitorPlanOutput `pulumi:"plan"` // Specifies the name of the Resource Group where the Azure Native New Relic Monitor should exist. Changing this forces a new Azure Native New Relic Monitor to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A `user` block as defined below. Changing this forces a new Azure Native New Relic Monitor to be created. User MonitorUserOutput `pulumi:"user"` // Specifies the user id. Changing this forces a new Azure Native New Relic Monitor to be created. UserId pulumi.StringPtrOutput `pulumi:"userId"` }
Manages an Azure Native New Relic Monitor.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/newrelic" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("East US"), }) if err != nil { return err } _, err = newrelic.NewMonitor(ctx, "exampleMonitor", &newrelic.MonitorArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, Plan: &newrelic.MonitorPlanArgs{ EffectiveDate: pulumi.String("2023-06-06T00:00:00Z"), }, User: &newrelic.MonitorUserArgs{ Email: pulumi.String("user@example.com"), FirstName: pulumi.String("Example"), LastName: pulumi.String("User"), PhoneNumber: pulumi.String("+12313803556"), }, }) if err != nil { return err } return nil }) }
```
## Import
Azure Native New Relic Monitor can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:newrelic/monitor:Monitor example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/NewRelic.Observability/monitors/monitor1
```
func GetMonitor ¶
func GetMonitor(ctx *pulumi.Context, name string, id pulumi.IDInput, state *MonitorState, opts ...pulumi.ResourceOption) (*Monitor, error)
GetMonitor gets an existing Monitor 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 NewMonitor ¶
func NewMonitor(ctx *pulumi.Context, name string, args *MonitorArgs, opts ...pulumi.ResourceOption) (*Monitor, error)
NewMonitor registers a new resource with the given unique name, arguments, and options.
func (*Monitor) ElementType ¶
func (*Monitor) ToMonitorOutput ¶
func (i *Monitor) ToMonitorOutput() MonitorOutput
func (*Monitor) ToMonitorOutputWithContext ¶
func (i *Monitor) ToMonitorOutputWithContext(ctx context.Context) MonitorOutput
type MonitorArgs ¶
type MonitorArgs struct { // Specifies the source of account creation. Possible values are `LIFTR` and `NEWRELIC`. Defaults to `LIFTR`. Changing this forces a new Azure Native New Relic Monitor to be created. AccountCreationSource pulumi.StringPtrInput // Specifies the account id. Changing this forces a new Azure Native New Relic Monitor to be created. AccountId pulumi.StringPtrInput // Specifies the ingestion key of account. Changing this forces a new Azure Native New Relic Monitor to be created. IngestionKey pulumi.StringPtrInput // Specifies the Azure Region where the Azure Native New Relic Monitor should exist. Changing this forces a new Azure Native New Relic Monitor to be created. Location pulumi.StringPtrInput // Specifies the name which should be used for this Azure Native New Relic Monitor. Changing this forces a new Azure Native New Relic Monitor to be created. Name pulumi.StringPtrInput // Specifies the source of org creation. Possible values are `LIFTR` and `NEWRELIC`. Defaults to `LIFTR`. Changing this forces a new Azure Native New Relic Monitor to be created. OrgCreationSource pulumi.StringPtrInput // Specifies the organization id. Changing this forces a new Azure Native New Relic Monitor to be created. OrganizationId pulumi.StringPtrInput // A `plan` block as defined below. Changing this forces a new Azure Native New Relic Monitor to be created. Plan MonitorPlanInput // Specifies the name of the Resource Group where the Azure Native New Relic Monitor should exist. Changing this forces a new Azure Native New Relic Monitor to be created. ResourceGroupName pulumi.StringInput // A `user` block as defined below. Changing this forces a new Azure Native New Relic Monitor to be created. User MonitorUserInput // Specifies the user id. Changing this forces a new Azure Native New Relic Monitor to be created. UserId pulumi.StringPtrInput }
The set of arguments for constructing a Monitor resource.
func (MonitorArgs) ElementType ¶
func (MonitorArgs) ElementType() reflect.Type
type MonitorArray ¶
type MonitorArray []MonitorInput
func (MonitorArray) ElementType ¶
func (MonitorArray) ElementType() reflect.Type
func (MonitorArray) ToMonitorArrayOutput ¶
func (i MonitorArray) ToMonitorArrayOutput() MonitorArrayOutput
func (MonitorArray) ToMonitorArrayOutputWithContext ¶
func (i MonitorArray) ToMonitorArrayOutputWithContext(ctx context.Context) MonitorArrayOutput
type MonitorArrayInput ¶
type MonitorArrayInput interface { pulumi.Input ToMonitorArrayOutput() MonitorArrayOutput ToMonitorArrayOutputWithContext(context.Context) MonitorArrayOutput }
MonitorArrayInput is an input type that accepts MonitorArray and MonitorArrayOutput values. You can construct a concrete instance of `MonitorArrayInput` via:
MonitorArray{ MonitorArgs{...} }
type MonitorArrayOutput ¶
type MonitorArrayOutput struct{ *pulumi.OutputState }
func (MonitorArrayOutput) ElementType ¶
func (MonitorArrayOutput) ElementType() reflect.Type
func (MonitorArrayOutput) Index ¶
func (o MonitorArrayOutput) Index(i pulumi.IntInput) MonitorOutput
func (MonitorArrayOutput) ToMonitorArrayOutput ¶
func (o MonitorArrayOutput) ToMonitorArrayOutput() MonitorArrayOutput
func (MonitorArrayOutput) ToMonitorArrayOutputWithContext ¶
func (o MonitorArrayOutput) ToMonitorArrayOutputWithContext(ctx context.Context) MonitorArrayOutput
type MonitorInput ¶
type MonitorInput interface { pulumi.Input ToMonitorOutput() MonitorOutput ToMonitorOutputWithContext(ctx context.Context) MonitorOutput }
type MonitorMap ¶
type MonitorMap map[string]MonitorInput
func (MonitorMap) ElementType ¶
func (MonitorMap) ElementType() reflect.Type
func (MonitorMap) ToMonitorMapOutput ¶
func (i MonitorMap) ToMonitorMapOutput() MonitorMapOutput
func (MonitorMap) ToMonitorMapOutputWithContext ¶
func (i MonitorMap) ToMonitorMapOutputWithContext(ctx context.Context) MonitorMapOutput
type MonitorMapInput ¶
type MonitorMapInput interface { pulumi.Input ToMonitorMapOutput() MonitorMapOutput ToMonitorMapOutputWithContext(context.Context) MonitorMapOutput }
MonitorMapInput is an input type that accepts MonitorMap and MonitorMapOutput values. You can construct a concrete instance of `MonitorMapInput` via:
MonitorMap{ "key": MonitorArgs{...} }
type MonitorMapOutput ¶
type MonitorMapOutput struct{ *pulumi.OutputState }
func (MonitorMapOutput) ElementType ¶
func (MonitorMapOutput) ElementType() reflect.Type
func (MonitorMapOutput) MapIndex ¶
func (o MonitorMapOutput) MapIndex(k pulumi.StringInput) MonitorOutput
func (MonitorMapOutput) ToMonitorMapOutput ¶
func (o MonitorMapOutput) ToMonitorMapOutput() MonitorMapOutput
func (MonitorMapOutput) ToMonitorMapOutputWithContext ¶
func (o MonitorMapOutput) ToMonitorMapOutputWithContext(ctx context.Context) MonitorMapOutput
type MonitorOutput ¶
type MonitorOutput struct{ *pulumi.OutputState }
func (MonitorOutput) AccountCreationSource ¶
func (o MonitorOutput) AccountCreationSource() pulumi.StringPtrOutput
Specifies the source of account creation. Possible values are `LIFTR` and `NEWRELIC`. Defaults to `LIFTR`. Changing this forces a new Azure Native New Relic Monitor to be created.
func (MonitorOutput) AccountId ¶
func (o MonitorOutput) AccountId() pulumi.StringOutput
Specifies the account id. Changing this forces a new Azure Native New Relic Monitor to be created.
func (MonitorOutput) ElementType ¶
func (MonitorOutput) ElementType() reflect.Type
func (MonitorOutput) IngestionKey ¶
func (o MonitorOutput) IngestionKey() pulumi.StringPtrOutput
Specifies the ingestion key of account. Changing this forces a new Azure Native New Relic Monitor to be created.
func (MonitorOutput) Location ¶
func (o MonitorOutput) Location() pulumi.StringOutput
Specifies the Azure Region where the Azure Native New Relic Monitor should exist. Changing this forces a new Azure Native New Relic Monitor to be created.
func (MonitorOutput) Name ¶
func (o MonitorOutput) Name() pulumi.StringOutput
Specifies the name which should be used for this Azure Native New Relic Monitor. Changing this forces a new Azure Native New Relic Monitor to be created.
func (MonitorOutput) OrgCreationSource ¶
func (o MonitorOutput) OrgCreationSource() pulumi.StringPtrOutput
Specifies the source of org creation. Possible values are `LIFTR` and `NEWRELIC`. Defaults to `LIFTR`. Changing this forces a new Azure Native New Relic Monitor to be created.
func (MonitorOutput) OrganizationId ¶
func (o MonitorOutput) OrganizationId() pulumi.StringOutput
Specifies the organization id. Changing this forces a new Azure Native New Relic Monitor to be created.
func (MonitorOutput) Plan ¶
func (o MonitorOutput) Plan() MonitorPlanOutput
A `plan` block as defined below. Changing this forces a new Azure Native New Relic Monitor to be created.
func (MonitorOutput) ResourceGroupName ¶
func (o MonitorOutput) ResourceGroupName() pulumi.StringOutput
Specifies the name of the Resource Group where the Azure Native New Relic Monitor should exist. Changing this forces a new Azure Native New Relic Monitor to be created.
func (MonitorOutput) ToMonitorOutput ¶
func (o MonitorOutput) ToMonitorOutput() MonitorOutput
func (MonitorOutput) ToMonitorOutputWithContext ¶
func (o MonitorOutput) ToMonitorOutputWithContext(ctx context.Context) MonitorOutput
func (MonitorOutput) User ¶
func (o MonitorOutput) User() MonitorUserOutput
A `user` block as defined below. Changing this forces a new Azure Native New Relic Monitor to be created.
func (MonitorOutput) UserId ¶
func (o MonitorOutput) UserId() pulumi.StringPtrOutput
Specifies the user id. Changing this forces a new Azure Native New Relic Monitor to be created.
type MonitorPlan ¶
type MonitorPlan struct { // Specifies the billing cycles. Possible values are `MONTHLY`, `WEEKLY` and `YEARLY`. Defaults to `MONTHLY`. Changing this forces a new Azure Native New Relic Monitor to be created. BillingCycle *string `pulumi:"billingCycle"` // Specifies the date when plan was applied. Changing this forces a new Azure Native New Relic Monitor to be created. EffectiveDate string `pulumi:"effectiveDate"` // Specifies the plan id published by NewRelic. The only possible value is `newrelic-pay-as-you-go-free-live`. Defaults to `newrelic-pay-as-you-go-free-live`. Changing this forces a new Azure Native New Relic Monitor to be created. PlanId *string `pulumi:"planId"` // Specifies the usage type. Possible values are `COMMITTED` and `PAYG`. Defaults to `PAYG`. Changing this forces a new Azure Native New Relic Monitor to be created. UsageType *string `pulumi:"usageType"` }
type MonitorPlanArgs ¶
type MonitorPlanArgs struct { // Specifies the billing cycles. Possible values are `MONTHLY`, `WEEKLY` and `YEARLY`. Defaults to `MONTHLY`. Changing this forces a new Azure Native New Relic Monitor to be created. BillingCycle pulumi.StringPtrInput `pulumi:"billingCycle"` // Specifies the date when plan was applied. Changing this forces a new Azure Native New Relic Monitor to be created. EffectiveDate pulumi.StringInput `pulumi:"effectiveDate"` // Specifies the plan id published by NewRelic. The only possible value is `newrelic-pay-as-you-go-free-live`. Defaults to `newrelic-pay-as-you-go-free-live`. Changing this forces a new Azure Native New Relic Monitor to be created. PlanId pulumi.StringPtrInput `pulumi:"planId"` // Specifies the usage type. Possible values are `COMMITTED` and `PAYG`. Defaults to `PAYG`. Changing this forces a new Azure Native New Relic Monitor to be created. UsageType pulumi.StringPtrInput `pulumi:"usageType"` }
func (MonitorPlanArgs) ElementType ¶
func (MonitorPlanArgs) ElementType() reflect.Type
func (MonitorPlanArgs) ToMonitorPlanOutput ¶
func (i MonitorPlanArgs) ToMonitorPlanOutput() MonitorPlanOutput
func (MonitorPlanArgs) ToMonitorPlanOutputWithContext ¶
func (i MonitorPlanArgs) ToMonitorPlanOutputWithContext(ctx context.Context) MonitorPlanOutput
func (MonitorPlanArgs) ToMonitorPlanPtrOutput ¶
func (i MonitorPlanArgs) ToMonitorPlanPtrOutput() MonitorPlanPtrOutput
func (MonitorPlanArgs) ToMonitorPlanPtrOutputWithContext ¶
func (i MonitorPlanArgs) ToMonitorPlanPtrOutputWithContext(ctx context.Context) MonitorPlanPtrOutput
func (MonitorPlanArgs) ToOutput ¶ added in v5.52.0
func (i MonitorPlanArgs) ToOutput(ctx context.Context) pulumix.Output[MonitorPlan]
type MonitorPlanInput ¶
type MonitorPlanInput interface { pulumi.Input ToMonitorPlanOutput() MonitorPlanOutput ToMonitorPlanOutputWithContext(context.Context) MonitorPlanOutput }
MonitorPlanInput is an input type that accepts MonitorPlanArgs and MonitorPlanOutput values. You can construct a concrete instance of `MonitorPlanInput` via:
MonitorPlanArgs{...}
type MonitorPlanOutput ¶
type MonitorPlanOutput struct{ *pulumi.OutputState }
func (MonitorPlanOutput) BillingCycle ¶
func (o MonitorPlanOutput) BillingCycle() pulumi.StringPtrOutput
Specifies the billing cycles. Possible values are `MONTHLY`, `WEEKLY` and `YEARLY`. Defaults to `MONTHLY`. Changing this forces a new Azure Native New Relic Monitor to be created.
func (MonitorPlanOutput) EffectiveDate ¶
func (o MonitorPlanOutput) EffectiveDate() pulumi.StringOutput
Specifies the date when plan was applied. Changing this forces a new Azure Native New Relic Monitor to be created.
func (MonitorPlanOutput) ElementType ¶
func (MonitorPlanOutput) ElementType() reflect.Type
func (MonitorPlanOutput) PlanId ¶
func (o MonitorPlanOutput) PlanId() pulumi.StringPtrOutput
Specifies the plan id published by NewRelic. The only possible value is `newrelic-pay-as-you-go-free-live`. Defaults to `newrelic-pay-as-you-go-free-live`. Changing this forces a new Azure Native New Relic Monitor to be created.
func (MonitorPlanOutput) ToMonitorPlanOutput ¶
func (o MonitorPlanOutput) ToMonitorPlanOutput() MonitorPlanOutput
func (MonitorPlanOutput) ToMonitorPlanOutputWithContext ¶
func (o MonitorPlanOutput) ToMonitorPlanOutputWithContext(ctx context.Context) MonitorPlanOutput
func (MonitorPlanOutput) ToMonitorPlanPtrOutput ¶
func (o MonitorPlanOutput) ToMonitorPlanPtrOutput() MonitorPlanPtrOutput
func (MonitorPlanOutput) ToMonitorPlanPtrOutputWithContext ¶
func (o MonitorPlanOutput) ToMonitorPlanPtrOutputWithContext(ctx context.Context) MonitorPlanPtrOutput
func (MonitorPlanOutput) ToOutput ¶ added in v5.52.0
func (o MonitorPlanOutput) ToOutput(ctx context.Context) pulumix.Output[MonitorPlan]
func (MonitorPlanOutput) UsageType ¶
func (o MonitorPlanOutput) UsageType() pulumi.StringPtrOutput
Specifies the usage type. Possible values are `COMMITTED` and `PAYG`. Defaults to `PAYG`. Changing this forces a new Azure Native New Relic Monitor to be created.
type MonitorPlanPtrInput ¶
type MonitorPlanPtrInput interface { pulumi.Input ToMonitorPlanPtrOutput() MonitorPlanPtrOutput ToMonitorPlanPtrOutputWithContext(context.Context) MonitorPlanPtrOutput }
MonitorPlanPtrInput is an input type that accepts MonitorPlanArgs, MonitorPlanPtr and MonitorPlanPtrOutput values. You can construct a concrete instance of `MonitorPlanPtrInput` via:
MonitorPlanArgs{...} or: nil
func MonitorPlanPtr ¶
func MonitorPlanPtr(v *MonitorPlanArgs) MonitorPlanPtrInput
type MonitorPlanPtrOutput ¶
type MonitorPlanPtrOutput struct{ *pulumi.OutputState }
func (MonitorPlanPtrOutput) BillingCycle ¶
func (o MonitorPlanPtrOutput) BillingCycle() pulumi.StringPtrOutput
Specifies the billing cycles. Possible values are `MONTHLY`, `WEEKLY` and `YEARLY`. Defaults to `MONTHLY`. Changing this forces a new Azure Native New Relic Monitor to be created.
func (MonitorPlanPtrOutput) EffectiveDate ¶
func (o MonitorPlanPtrOutput) EffectiveDate() pulumi.StringPtrOutput
Specifies the date when plan was applied. Changing this forces a new Azure Native New Relic Monitor to be created.
func (MonitorPlanPtrOutput) Elem ¶
func (o MonitorPlanPtrOutput) Elem() MonitorPlanOutput
func (MonitorPlanPtrOutput) ElementType ¶
func (MonitorPlanPtrOutput) ElementType() reflect.Type
func (MonitorPlanPtrOutput) PlanId ¶
func (o MonitorPlanPtrOutput) PlanId() pulumi.StringPtrOutput
Specifies the plan id published by NewRelic. The only possible value is `newrelic-pay-as-you-go-free-live`. Defaults to `newrelic-pay-as-you-go-free-live`. Changing this forces a new Azure Native New Relic Monitor to be created.
func (MonitorPlanPtrOutput) ToMonitorPlanPtrOutput ¶
func (o MonitorPlanPtrOutput) ToMonitorPlanPtrOutput() MonitorPlanPtrOutput
func (MonitorPlanPtrOutput) ToMonitorPlanPtrOutputWithContext ¶
func (o MonitorPlanPtrOutput) ToMonitorPlanPtrOutputWithContext(ctx context.Context) MonitorPlanPtrOutput
func (MonitorPlanPtrOutput) ToOutput ¶ added in v5.52.0
func (o MonitorPlanPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*MonitorPlan]
func (MonitorPlanPtrOutput) UsageType ¶
func (o MonitorPlanPtrOutput) UsageType() pulumi.StringPtrOutput
Specifies the usage type. Possible values are `COMMITTED` and `PAYG`. Defaults to `PAYG`. Changing this forces a new Azure Native New Relic Monitor to be created.
type MonitorState ¶
type MonitorState struct { // Specifies the source of account creation. Possible values are `LIFTR` and `NEWRELIC`. Defaults to `LIFTR`. Changing this forces a new Azure Native New Relic Monitor to be created. AccountCreationSource pulumi.StringPtrInput // Specifies the account id. Changing this forces a new Azure Native New Relic Monitor to be created. AccountId pulumi.StringPtrInput // Specifies the ingestion key of account. Changing this forces a new Azure Native New Relic Monitor to be created. IngestionKey pulumi.StringPtrInput // Specifies the Azure Region where the Azure Native New Relic Monitor should exist. Changing this forces a new Azure Native New Relic Monitor to be created. Location pulumi.StringPtrInput // Specifies the name which should be used for this Azure Native New Relic Monitor. Changing this forces a new Azure Native New Relic Monitor to be created. Name pulumi.StringPtrInput // Specifies the source of org creation. Possible values are `LIFTR` and `NEWRELIC`. Defaults to `LIFTR`. Changing this forces a new Azure Native New Relic Monitor to be created. OrgCreationSource pulumi.StringPtrInput // Specifies the organization id. Changing this forces a new Azure Native New Relic Monitor to be created. OrganizationId pulumi.StringPtrInput // A `plan` block as defined below. Changing this forces a new Azure Native New Relic Monitor to be created. Plan MonitorPlanPtrInput // Specifies the name of the Resource Group where the Azure Native New Relic Monitor should exist. Changing this forces a new Azure Native New Relic Monitor to be created. ResourceGroupName pulumi.StringPtrInput // A `user` block as defined below. Changing this forces a new Azure Native New Relic Monitor to be created. User MonitorUserPtrInput // Specifies the user id. Changing this forces a new Azure Native New Relic Monitor to be created. UserId pulumi.StringPtrInput }
func (MonitorState) ElementType ¶
func (MonitorState) ElementType() reflect.Type
type MonitorUser ¶
type MonitorUser struct { // Specifies the user Email. Changing this forces a new Azure Native New Relic Monitor to be created. Email string `pulumi:"email"` // Specifies the first name. Changing this forces a new Azure Native New Relic Monitor to be created. FirstName string `pulumi:"firstName"` // Specifies the last name. Changing this forces a new Azure Native New Relic Monitor to be created. LastName string `pulumi:"lastName"` // Specifies the contact phone number. Changing this forces a new Azure Native New Relic Monitor to be created. PhoneNumber string `pulumi:"phoneNumber"` }
type MonitorUserArgs ¶
type MonitorUserArgs struct { // Specifies the user Email. Changing this forces a new Azure Native New Relic Monitor to be created. Email pulumi.StringInput `pulumi:"email"` // Specifies the first name. Changing this forces a new Azure Native New Relic Monitor to be created. FirstName pulumi.StringInput `pulumi:"firstName"` // Specifies the last name. Changing this forces a new Azure Native New Relic Monitor to be created. LastName pulumi.StringInput `pulumi:"lastName"` // Specifies the contact phone number. Changing this forces a new Azure Native New Relic Monitor to be created. PhoneNumber pulumi.StringInput `pulumi:"phoneNumber"` }
func (MonitorUserArgs) ElementType ¶
func (MonitorUserArgs) ElementType() reflect.Type
func (MonitorUserArgs) ToMonitorUserOutput ¶
func (i MonitorUserArgs) ToMonitorUserOutput() MonitorUserOutput
func (MonitorUserArgs) ToMonitorUserOutputWithContext ¶
func (i MonitorUserArgs) ToMonitorUserOutputWithContext(ctx context.Context) MonitorUserOutput
func (MonitorUserArgs) ToMonitorUserPtrOutput ¶
func (i MonitorUserArgs) ToMonitorUserPtrOutput() MonitorUserPtrOutput
func (MonitorUserArgs) ToMonitorUserPtrOutputWithContext ¶
func (i MonitorUserArgs) ToMonitorUserPtrOutputWithContext(ctx context.Context) MonitorUserPtrOutput
func (MonitorUserArgs) ToOutput ¶ added in v5.52.0
func (i MonitorUserArgs) ToOutput(ctx context.Context) pulumix.Output[MonitorUser]
type MonitorUserInput ¶
type MonitorUserInput interface { pulumi.Input ToMonitorUserOutput() MonitorUserOutput ToMonitorUserOutputWithContext(context.Context) MonitorUserOutput }
MonitorUserInput is an input type that accepts MonitorUserArgs and MonitorUserOutput values. You can construct a concrete instance of `MonitorUserInput` via:
MonitorUserArgs{...}
type MonitorUserOutput ¶
type MonitorUserOutput struct{ *pulumi.OutputState }
func (MonitorUserOutput) ElementType ¶
func (MonitorUserOutput) ElementType() reflect.Type
func (MonitorUserOutput) Email ¶
func (o MonitorUserOutput) Email() pulumi.StringOutput
Specifies the user Email. Changing this forces a new Azure Native New Relic Monitor to be created.
func (MonitorUserOutput) FirstName ¶
func (o MonitorUserOutput) FirstName() pulumi.StringOutput
Specifies the first name. Changing this forces a new Azure Native New Relic Monitor to be created.
func (MonitorUserOutput) LastName ¶
func (o MonitorUserOutput) LastName() pulumi.StringOutput
Specifies the last name. Changing this forces a new Azure Native New Relic Monitor to be created.
func (MonitorUserOutput) PhoneNumber ¶
func (o MonitorUserOutput) PhoneNumber() pulumi.StringOutput
Specifies the contact phone number. Changing this forces a new Azure Native New Relic Monitor to be created.
func (MonitorUserOutput) ToMonitorUserOutput ¶
func (o MonitorUserOutput) ToMonitorUserOutput() MonitorUserOutput
func (MonitorUserOutput) ToMonitorUserOutputWithContext ¶
func (o MonitorUserOutput) ToMonitorUserOutputWithContext(ctx context.Context) MonitorUserOutput
func (MonitorUserOutput) ToMonitorUserPtrOutput ¶
func (o MonitorUserOutput) ToMonitorUserPtrOutput() MonitorUserPtrOutput
func (MonitorUserOutput) ToMonitorUserPtrOutputWithContext ¶
func (o MonitorUserOutput) ToMonitorUserPtrOutputWithContext(ctx context.Context) MonitorUserPtrOutput
func (MonitorUserOutput) ToOutput ¶ added in v5.52.0
func (o MonitorUserOutput) ToOutput(ctx context.Context) pulumix.Output[MonitorUser]
type MonitorUserPtrInput ¶
type MonitorUserPtrInput interface { pulumi.Input ToMonitorUserPtrOutput() MonitorUserPtrOutput ToMonitorUserPtrOutputWithContext(context.Context) MonitorUserPtrOutput }
MonitorUserPtrInput is an input type that accepts MonitorUserArgs, MonitorUserPtr and MonitorUserPtrOutput values. You can construct a concrete instance of `MonitorUserPtrInput` via:
MonitorUserArgs{...} or: nil
func MonitorUserPtr ¶
func MonitorUserPtr(v *MonitorUserArgs) MonitorUserPtrInput
type MonitorUserPtrOutput ¶
type MonitorUserPtrOutput struct{ *pulumi.OutputState }
func (MonitorUserPtrOutput) Elem ¶
func (o MonitorUserPtrOutput) Elem() MonitorUserOutput
func (MonitorUserPtrOutput) ElementType ¶
func (MonitorUserPtrOutput) ElementType() reflect.Type
func (MonitorUserPtrOutput) Email ¶
func (o MonitorUserPtrOutput) Email() pulumi.StringPtrOutput
Specifies the user Email. Changing this forces a new Azure Native New Relic Monitor to be created.
func (MonitorUserPtrOutput) FirstName ¶
func (o MonitorUserPtrOutput) FirstName() pulumi.StringPtrOutput
Specifies the first name. Changing this forces a new Azure Native New Relic Monitor to be created.
func (MonitorUserPtrOutput) LastName ¶
func (o MonitorUserPtrOutput) LastName() pulumi.StringPtrOutput
Specifies the last name. Changing this forces a new Azure Native New Relic Monitor to be created.
func (MonitorUserPtrOutput) PhoneNumber ¶
func (o MonitorUserPtrOutput) PhoneNumber() pulumi.StringPtrOutput
Specifies the contact phone number. Changing this forces a new Azure Native New Relic Monitor to be created.
func (MonitorUserPtrOutput) ToMonitorUserPtrOutput ¶
func (o MonitorUserPtrOutput) ToMonitorUserPtrOutput() MonitorUserPtrOutput
func (MonitorUserPtrOutput) ToMonitorUserPtrOutputWithContext ¶
func (o MonitorUserPtrOutput) ToMonitorUserPtrOutputWithContext(ctx context.Context) MonitorUserPtrOutput
func (MonitorUserPtrOutput) ToOutput ¶ added in v5.52.0
func (o MonitorUserPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*MonitorUser]
type TagRule ¶ added in v5.52.0
type TagRule struct { pulumi.CustomResourceState // Whether activity logs from Azure resources should be sent for the Monitor resource. Defaults to `false`. ActivityLogEnabled pulumi.BoolPtrOutput `pulumi:"activityLogEnabled"` // Whether Azure Active Directory logs should be sent for the Monitor resource. Defaults to `false`. AzureActiveDirectoryLogEnabled pulumi.BoolPtrOutput `pulumi:"azureActiveDirectoryLogEnabled"` // A `logTagFilter` block as defined below. LogTagFilters TagRuleLogTagFilterArrayOutput `pulumi:"logTagFilters"` // Whether metrics should be sent for the Monitor resource. Defaults to `false`. MetricEnabled pulumi.BoolPtrOutput `pulumi:"metricEnabled"` // A `metricTagFilter` block as defined below. MetricTagFilters TagRuleMetricTagFilterArrayOutput `pulumi:"metricTagFilters"` // Specifies the ID of the New Relic Monitor this Tag Rule should be created within. Changing this forces a new Azure Native New Relic Tag Rule to be created. MonitorId pulumi.StringOutput `pulumi:"monitorId"` // Whether subscription logs should be sent for the Monitor resource. Defaults to `false`. SubscriptionLogEnabled pulumi.BoolPtrOutput `pulumi:"subscriptionLogEnabled"` }
Manages an Azure Native New Relic Tag Rule.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/newrelic" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("East US"), }) if err != nil { return err } exampleMonitor, err := newrelic.NewMonitor(ctx, "exampleMonitor", &newrelic.MonitorArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, Plan: &newrelic.MonitorPlanArgs{ EffectiveDate: pulumi.String("2023-06-06T00:00:00Z"), }, User: &newrelic.MonitorUserArgs{ Email: pulumi.String("user@example.com"), FirstName: pulumi.String("Example"), LastName: pulumi.String("User"), PhoneNumber: pulumi.String("+12313803556"), }, }) if err != nil { return err } _, err = newrelic.NewTagRule(ctx, "exampleTagRule", &newrelic.TagRuleArgs{ MonitorId: exampleMonitor.ID(), AzureActiveDirectoryLogEnabled: pulumi.Bool(true), ActivityLogEnabled: pulumi.Bool(true), MetricEnabled: pulumi.Bool(true), SubscriptionLogEnabled: pulumi.Bool(true), LogTagFilters: newrelic.TagRuleLogTagFilterArray{ &newrelic.TagRuleLogTagFilterArgs{ Name: pulumi.String("key"), Action: pulumi.String("Include"), Value: pulumi.String("value"), }, }, MetricTagFilters: newrelic.TagRuleMetricTagFilterArray{ &newrelic.TagRuleMetricTagFilterArgs{ Name: pulumi.String("key"), Action: pulumi.String("Exclude"), Value: pulumi.String("value"), }, }, }) if err != nil { return err } return nil }) }
```
## Import
Azure Native New Relic Tag Rule can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:newrelic/tagRule:TagRule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/NewRelic.Observability/monitors/monitor1/tagRules/ruleSet1
```
func GetTagRule ¶ added in v5.52.0
func GetTagRule(ctx *pulumi.Context, name string, id pulumi.IDInput, state *TagRuleState, opts ...pulumi.ResourceOption) (*TagRule, error)
GetTagRule gets an existing TagRule 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 NewTagRule ¶ added in v5.52.0
func NewTagRule(ctx *pulumi.Context, name string, args *TagRuleArgs, opts ...pulumi.ResourceOption) (*TagRule, error)
NewTagRule registers a new resource with the given unique name, arguments, and options.
func (*TagRule) ElementType ¶ added in v5.52.0
func (*TagRule) ToTagRuleOutput ¶ added in v5.52.0
func (i *TagRule) ToTagRuleOutput() TagRuleOutput
func (*TagRule) ToTagRuleOutputWithContext ¶ added in v5.52.0
func (i *TagRule) ToTagRuleOutputWithContext(ctx context.Context) TagRuleOutput
type TagRuleArgs ¶ added in v5.52.0
type TagRuleArgs struct { // Whether activity logs from Azure resources should be sent for the Monitor resource. Defaults to `false`. ActivityLogEnabled pulumi.BoolPtrInput // Whether Azure Active Directory logs should be sent for the Monitor resource. Defaults to `false`. AzureActiveDirectoryLogEnabled pulumi.BoolPtrInput // A `logTagFilter` block as defined below. LogTagFilters TagRuleLogTagFilterArrayInput // Whether metrics should be sent for the Monitor resource. Defaults to `false`. MetricEnabled pulumi.BoolPtrInput // A `metricTagFilter` block as defined below. MetricTagFilters TagRuleMetricTagFilterArrayInput // Specifies the ID of the New Relic Monitor this Tag Rule should be created within. Changing this forces a new Azure Native New Relic Tag Rule to be created. MonitorId pulumi.StringInput // Whether subscription logs should be sent for the Monitor resource. Defaults to `false`. SubscriptionLogEnabled pulumi.BoolPtrInput }
The set of arguments for constructing a TagRule resource.
func (TagRuleArgs) ElementType ¶ added in v5.52.0
func (TagRuleArgs) ElementType() reflect.Type
type TagRuleArray ¶ added in v5.52.0
type TagRuleArray []TagRuleInput
func (TagRuleArray) ElementType ¶ added in v5.52.0
func (TagRuleArray) ElementType() reflect.Type
func (TagRuleArray) ToTagRuleArrayOutput ¶ added in v5.52.0
func (i TagRuleArray) ToTagRuleArrayOutput() TagRuleArrayOutput
func (TagRuleArray) ToTagRuleArrayOutputWithContext ¶ added in v5.52.0
func (i TagRuleArray) ToTagRuleArrayOutputWithContext(ctx context.Context) TagRuleArrayOutput
type TagRuleArrayInput ¶ added in v5.52.0
type TagRuleArrayInput interface { pulumi.Input ToTagRuleArrayOutput() TagRuleArrayOutput ToTagRuleArrayOutputWithContext(context.Context) TagRuleArrayOutput }
TagRuleArrayInput is an input type that accepts TagRuleArray and TagRuleArrayOutput values. You can construct a concrete instance of `TagRuleArrayInput` via:
TagRuleArray{ TagRuleArgs{...} }
type TagRuleArrayOutput ¶ added in v5.52.0
type TagRuleArrayOutput struct{ *pulumi.OutputState }
func (TagRuleArrayOutput) ElementType ¶ added in v5.52.0
func (TagRuleArrayOutput) ElementType() reflect.Type
func (TagRuleArrayOutput) Index ¶ added in v5.52.0
func (o TagRuleArrayOutput) Index(i pulumi.IntInput) TagRuleOutput
func (TagRuleArrayOutput) ToTagRuleArrayOutput ¶ added in v5.52.0
func (o TagRuleArrayOutput) ToTagRuleArrayOutput() TagRuleArrayOutput
func (TagRuleArrayOutput) ToTagRuleArrayOutputWithContext ¶ added in v5.52.0
func (o TagRuleArrayOutput) ToTagRuleArrayOutputWithContext(ctx context.Context) TagRuleArrayOutput
type TagRuleInput ¶ added in v5.52.0
type TagRuleInput interface { pulumi.Input ToTagRuleOutput() TagRuleOutput ToTagRuleOutputWithContext(ctx context.Context) TagRuleOutput }
type TagRuleLogTagFilter ¶ added in v5.52.0
type TagRuleLogTagFilter struct { // Valid actions for a filtering tag. Possible values are `Exclude` and `Include`. Exclusion takes priority over inclusion. Action string `pulumi:"action"` // Specifies the name (also known as the key) of the tag. Name string `pulumi:"name"` // Specifies the value of the tag. Value string `pulumi:"value"` }
type TagRuleLogTagFilterArgs ¶ added in v5.52.0
type TagRuleLogTagFilterArgs struct { // Valid actions for a filtering tag. Possible values are `Exclude` and `Include`. Exclusion takes priority over inclusion. Action pulumi.StringInput `pulumi:"action"` // Specifies the name (also known as the key) of the tag. Name pulumi.StringInput `pulumi:"name"` // Specifies the value of the tag. Value pulumi.StringInput `pulumi:"value"` }
func (TagRuleLogTagFilterArgs) ElementType ¶ added in v5.52.0
func (TagRuleLogTagFilterArgs) ElementType() reflect.Type
func (TagRuleLogTagFilterArgs) ToOutput ¶ added in v5.52.0
func (i TagRuleLogTagFilterArgs) ToOutput(ctx context.Context) pulumix.Output[TagRuleLogTagFilter]
func (TagRuleLogTagFilterArgs) ToTagRuleLogTagFilterOutput ¶ added in v5.52.0
func (i TagRuleLogTagFilterArgs) ToTagRuleLogTagFilterOutput() TagRuleLogTagFilterOutput
func (TagRuleLogTagFilterArgs) ToTagRuleLogTagFilterOutputWithContext ¶ added in v5.52.0
func (i TagRuleLogTagFilterArgs) ToTagRuleLogTagFilterOutputWithContext(ctx context.Context) TagRuleLogTagFilterOutput
type TagRuleLogTagFilterArray ¶ added in v5.52.0
type TagRuleLogTagFilterArray []TagRuleLogTagFilterInput
func (TagRuleLogTagFilterArray) ElementType ¶ added in v5.52.0
func (TagRuleLogTagFilterArray) ElementType() reflect.Type
func (TagRuleLogTagFilterArray) ToOutput ¶ added in v5.52.0
func (i TagRuleLogTagFilterArray) ToOutput(ctx context.Context) pulumix.Output[[]TagRuleLogTagFilter]
func (TagRuleLogTagFilterArray) ToTagRuleLogTagFilterArrayOutput ¶ added in v5.52.0
func (i TagRuleLogTagFilterArray) ToTagRuleLogTagFilterArrayOutput() TagRuleLogTagFilterArrayOutput
func (TagRuleLogTagFilterArray) ToTagRuleLogTagFilterArrayOutputWithContext ¶ added in v5.52.0
func (i TagRuleLogTagFilterArray) ToTagRuleLogTagFilterArrayOutputWithContext(ctx context.Context) TagRuleLogTagFilterArrayOutput
type TagRuleLogTagFilterArrayInput ¶ added in v5.52.0
type TagRuleLogTagFilterArrayInput interface { pulumi.Input ToTagRuleLogTagFilterArrayOutput() TagRuleLogTagFilterArrayOutput ToTagRuleLogTagFilterArrayOutputWithContext(context.Context) TagRuleLogTagFilterArrayOutput }
TagRuleLogTagFilterArrayInput is an input type that accepts TagRuleLogTagFilterArray and TagRuleLogTagFilterArrayOutput values. You can construct a concrete instance of `TagRuleLogTagFilterArrayInput` via:
TagRuleLogTagFilterArray{ TagRuleLogTagFilterArgs{...} }
type TagRuleLogTagFilterArrayOutput ¶ added in v5.52.0
type TagRuleLogTagFilterArrayOutput struct{ *pulumi.OutputState }
func (TagRuleLogTagFilterArrayOutput) ElementType ¶ added in v5.52.0
func (TagRuleLogTagFilterArrayOutput) ElementType() reflect.Type
func (TagRuleLogTagFilterArrayOutput) Index ¶ added in v5.52.0
func (o TagRuleLogTagFilterArrayOutput) Index(i pulumi.IntInput) TagRuleLogTagFilterOutput
func (TagRuleLogTagFilterArrayOutput) ToOutput ¶ added in v5.52.0
func (o TagRuleLogTagFilterArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]TagRuleLogTagFilter]
func (TagRuleLogTagFilterArrayOutput) ToTagRuleLogTagFilterArrayOutput ¶ added in v5.52.0
func (o TagRuleLogTagFilterArrayOutput) ToTagRuleLogTagFilterArrayOutput() TagRuleLogTagFilterArrayOutput
func (TagRuleLogTagFilterArrayOutput) ToTagRuleLogTagFilterArrayOutputWithContext ¶ added in v5.52.0
func (o TagRuleLogTagFilterArrayOutput) ToTagRuleLogTagFilterArrayOutputWithContext(ctx context.Context) TagRuleLogTagFilterArrayOutput
type TagRuleLogTagFilterInput ¶ added in v5.52.0
type TagRuleLogTagFilterInput interface { pulumi.Input ToTagRuleLogTagFilterOutput() TagRuleLogTagFilterOutput ToTagRuleLogTagFilterOutputWithContext(context.Context) TagRuleLogTagFilterOutput }
TagRuleLogTagFilterInput is an input type that accepts TagRuleLogTagFilterArgs and TagRuleLogTagFilterOutput values. You can construct a concrete instance of `TagRuleLogTagFilterInput` via:
TagRuleLogTagFilterArgs{...}
type TagRuleLogTagFilterOutput ¶ added in v5.52.0
type TagRuleLogTagFilterOutput struct{ *pulumi.OutputState }
func (TagRuleLogTagFilterOutput) Action ¶ added in v5.52.0
func (o TagRuleLogTagFilterOutput) Action() pulumi.StringOutput
Valid actions for a filtering tag. Possible values are `Exclude` and `Include`. Exclusion takes priority over inclusion.
func (TagRuleLogTagFilterOutput) ElementType ¶ added in v5.52.0
func (TagRuleLogTagFilterOutput) ElementType() reflect.Type
func (TagRuleLogTagFilterOutput) Name ¶ added in v5.52.0
func (o TagRuleLogTagFilterOutput) Name() pulumi.StringOutput
Specifies the name (also known as the key) of the tag.
func (TagRuleLogTagFilterOutput) ToOutput ¶ added in v5.52.0
func (o TagRuleLogTagFilterOutput) ToOutput(ctx context.Context) pulumix.Output[TagRuleLogTagFilter]
func (TagRuleLogTagFilterOutput) ToTagRuleLogTagFilterOutput ¶ added in v5.52.0
func (o TagRuleLogTagFilterOutput) ToTagRuleLogTagFilterOutput() TagRuleLogTagFilterOutput
func (TagRuleLogTagFilterOutput) ToTagRuleLogTagFilterOutputWithContext ¶ added in v5.52.0
func (o TagRuleLogTagFilterOutput) ToTagRuleLogTagFilterOutputWithContext(ctx context.Context) TagRuleLogTagFilterOutput
func (TagRuleLogTagFilterOutput) Value ¶ added in v5.52.0
func (o TagRuleLogTagFilterOutput) Value() pulumi.StringOutput
Specifies the value of the tag.
type TagRuleMap ¶ added in v5.52.0
type TagRuleMap map[string]TagRuleInput
func (TagRuleMap) ElementType ¶ added in v5.52.0
func (TagRuleMap) ElementType() reflect.Type
func (TagRuleMap) ToTagRuleMapOutput ¶ added in v5.52.0
func (i TagRuleMap) ToTagRuleMapOutput() TagRuleMapOutput
func (TagRuleMap) ToTagRuleMapOutputWithContext ¶ added in v5.52.0
func (i TagRuleMap) ToTagRuleMapOutputWithContext(ctx context.Context) TagRuleMapOutput
type TagRuleMapInput ¶ added in v5.52.0
type TagRuleMapInput interface { pulumi.Input ToTagRuleMapOutput() TagRuleMapOutput ToTagRuleMapOutputWithContext(context.Context) TagRuleMapOutput }
TagRuleMapInput is an input type that accepts TagRuleMap and TagRuleMapOutput values. You can construct a concrete instance of `TagRuleMapInput` via:
TagRuleMap{ "key": TagRuleArgs{...} }
type TagRuleMapOutput ¶ added in v5.52.0
type TagRuleMapOutput struct{ *pulumi.OutputState }
func (TagRuleMapOutput) ElementType ¶ added in v5.52.0
func (TagRuleMapOutput) ElementType() reflect.Type
func (TagRuleMapOutput) MapIndex ¶ added in v5.52.0
func (o TagRuleMapOutput) MapIndex(k pulumi.StringInput) TagRuleOutput
func (TagRuleMapOutput) ToTagRuleMapOutput ¶ added in v5.52.0
func (o TagRuleMapOutput) ToTagRuleMapOutput() TagRuleMapOutput
func (TagRuleMapOutput) ToTagRuleMapOutputWithContext ¶ added in v5.52.0
func (o TagRuleMapOutput) ToTagRuleMapOutputWithContext(ctx context.Context) TagRuleMapOutput
type TagRuleMetricTagFilter ¶ added in v5.52.0
type TagRuleMetricTagFilter struct { // Valid actions for a filtering tag. Possible values are `Exclude` and `Include`. Exclusion takes priority over inclusion. Action string `pulumi:"action"` // Specifies the name (also known as the key) of the tag. Name string `pulumi:"name"` // Specifies the value of the tag. Value string `pulumi:"value"` }
type TagRuleMetricTagFilterArgs ¶ added in v5.52.0
type TagRuleMetricTagFilterArgs struct { // Valid actions for a filtering tag. Possible values are `Exclude` and `Include`. Exclusion takes priority over inclusion. Action pulumi.StringInput `pulumi:"action"` // Specifies the name (also known as the key) of the tag. Name pulumi.StringInput `pulumi:"name"` // Specifies the value of the tag. Value pulumi.StringInput `pulumi:"value"` }
func (TagRuleMetricTagFilterArgs) ElementType ¶ added in v5.52.0
func (TagRuleMetricTagFilterArgs) ElementType() reflect.Type
func (TagRuleMetricTagFilterArgs) ToOutput ¶ added in v5.52.0
func (i TagRuleMetricTagFilterArgs) ToOutput(ctx context.Context) pulumix.Output[TagRuleMetricTagFilter]
func (TagRuleMetricTagFilterArgs) ToTagRuleMetricTagFilterOutput ¶ added in v5.52.0
func (i TagRuleMetricTagFilterArgs) ToTagRuleMetricTagFilterOutput() TagRuleMetricTagFilterOutput
func (TagRuleMetricTagFilterArgs) ToTagRuleMetricTagFilterOutputWithContext ¶ added in v5.52.0
func (i TagRuleMetricTagFilterArgs) ToTagRuleMetricTagFilterOutputWithContext(ctx context.Context) TagRuleMetricTagFilterOutput
type TagRuleMetricTagFilterArray ¶ added in v5.52.0
type TagRuleMetricTagFilterArray []TagRuleMetricTagFilterInput
func (TagRuleMetricTagFilterArray) ElementType ¶ added in v5.52.0
func (TagRuleMetricTagFilterArray) ElementType() reflect.Type
func (TagRuleMetricTagFilterArray) ToOutput ¶ added in v5.52.0
func (i TagRuleMetricTagFilterArray) ToOutput(ctx context.Context) pulumix.Output[[]TagRuleMetricTagFilter]
func (TagRuleMetricTagFilterArray) ToTagRuleMetricTagFilterArrayOutput ¶ added in v5.52.0
func (i TagRuleMetricTagFilterArray) ToTagRuleMetricTagFilterArrayOutput() TagRuleMetricTagFilterArrayOutput
func (TagRuleMetricTagFilterArray) ToTagRuleMetricTagFilterArrayOutputWithContext ¶ added in v5.52.0
func (i TagRuleMetricTagFilterArray) ToTagRuleMetricTagFilterArrayOutputWithContext(ctx context.Context) TagRuleMetricTagFilterArrayOutput
type TagRuleMetricTagFilterArrayInput ¶ added in v5.52.0
type TagRuleMetricTagFilterArrayInput interface { pulumi.Input ToTagRuleMetricTagFilterArrayOutput() TagRuleMetricTagFilterArrayOutput ToTagRuleMetricTagFilterArrayOutputWithContext(context.Context) TagRuleMetricTagFilterArrayOutput }
TagRuleMetricTagFilterArrayInput is an input type that accepts TagRuleMetricTagFilterArray and TagRuleMetricTagFilterArrayOutput values. You can construct a concrete instance of `TagRuleMetricTagFilterArrayInput` via:
TagRuleMetricTagFilterArray{ TagRuleMetricTagFilterArgs{...} }
type TagRuleMetricTagFilterArrayOutput ¶ added in v5.52.0
type TagRuleMetricTagFilterArrayOutput struct{ *pulumi.OutputState }
func (TagRuleMetricTagFilterArrayOutput) ElementType ¶ added in v5.52.0
func (TagRuleMetricTagFilterArrayOutput) ElementType() reflect.Type
func (TagRuleMetricTagFilterArrayOutput) Index ¶ added in v5.52.0
func (o TagRuleMetricTagFilterArrayOutput) Index(i pulumi.IntInput) TagRuleMetricTagFilterOutput
func (TagRuleMetricTagFilterArrayOutput) ToOutput ¶ added in v5.52.0
func (o TagRuleMetricTagFilterArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]TagRuleMetricTagFilter]
func (TagRuleMetricTagFilterArrayOutput) ToTagRuleMetricTagFilterArrayOutput ¶ added in v5.52.0
func (o TagRuleMetricTagFilterArrayOutput) ToTagRuleMetricTagFilterArrayOutput() TagRuleMetricTagFilterArrayOutput
func (TagRuleMetricTagFilterArrayOutput) ToTagRuleMetricTagFilterArrayOutputWithContext ¶ added in v5.52.0
func (o TagRuleMetricTagFilterArrayOutput) ToTagRuleMetricTagFilterArrayOutputWithContext(ctx context.Context) TagRuleMetricTagFilterArrayOutput
type TagRuleMetricTagFilterInput ¶ added in v5.52.0
type TagRuleMetricTagFilterInput interface { pulumi.Input ToTagRuleMetricTagFilterOutput() TagRuleMetricTagFilterOutput ToTagRuleMetricTagFilterOutputWithContext(context.Context) TagRuleMetricTagFilterOutput }
TagRuleMetricTagFilterInput is an input type that accepts TagRuleMetricTagFilterArgs and TagRuleMetricTagFilterOutput values. You can construct a concrete instance of `TagRuleMetricTagFilterInput` via:
TagRuleMetricTagFilterArgs{...}
type TagRuleMetricTagFilterOutput ¶ added in v5.52.0
type TagRuleMetricTagFilterOutput struct{ *pulumi.OutputState }
func (TagRuleMetricTagFilterOutput) Action ¶ added in v5.52.0
func (o TagRuleMetricTagFilterOutput) Action() pulumi.StringOutput
Valid actions for a filtering tag. Possible values are `Exclude` and `Include`. Exclusion takes priority over inclusion.
func (TagRuleMetricTagFilterOutput) ElementType ¶ added in v5.52.0
func (TagRuleMetricTagFilterOutput) ElementType() reflect.Type
func (TagRuleMetricTagFilterOutput) Name ¶ added in v5.52.0
func (o TagRuleMetricTagFilterOutput) Name() pulumi.StringOutput
Specifies the name (also known as the key) of the tag.
func (TagRuleMetricTagFilterOutput) ToOutput ¶ added in v5.52.0
func (o TagRuleMetricTagFilterOutput) ToOutput(ctx context.Context) pulumix.Output[TagRuleMetricTagFilter]
func (TagRuleMetricTagFilterOutput) ToTagRuleMetricTagFilterOutput ¶ added in v5.52.0
func (o TagRuleMetricTagFilterOutput) ToTagRuleMetricTagFilterOutput() TagRuleMetricTagFilterOutput
func (TagRuleMetricTagFilterOutput) ToTagRuleMetricTagFilterOutputWithContext ¶ added in v5.52.0
func (o TagRuleMetricTagFilterOutput) ToTagRuleMetricTagFilterOutputWithContext(ctx context.Context) TagRuleMetricTagFilterOutput
func (TagRuleMetricTagFilterOutput) Value ¶ added in v5.52.0
func (o TagRuleMetricTagFilterOutput) Value() pulumi.StringOutput
Specifies the value of the tag.
type TagRuleOutput ¶ added in v5.52.0
type TagRuleOutput struct{ *pulumi.OutputState }
func (TagRuleOutput) ActivityLogEnabled ¶ added in v5.52.0
func (o TagRuleOutput) ActivityLogEnabled() pulumi.BoolPtrOutput
Whether activity logs from Azure resources should be sent for the Monitor resource. Defaults to `false`.
func (TagRuleOutput) AzureActiveDirectoryLogEnabled ¶ added in v5.52.0
func (o TagRuleOutput) AzureActiveDirectoryLogEnabled() pulumi.BoolPtrOutput
Whether Azure Active Directory logs should be sent for the Monitor resource. Defaults to `false`.
func (TagRuleOutput) ElementType ¶ added in v5.52.0
func (TagRuleOutput) ElementType() reflect.Type
func (TagRuleOutput) LogTagFilters ¶ added in v5.52.0
func (o TagRuleOutput) LogTagFilters() TagRuleLogTagFilterArrayOutput
A `logTagFilter` block as defined below.
func (TagRuleOutput) MetricEnabled ¶ added in v5.52.0
func (o TagRuleOutput) MetricEnabled() pulumi.BoolPtrOutput
Whether metrics should be sent for the Monitor resource. Defaults to `false`.
func (TagRuleOutput) MetricTagFilters ¶ added in v5.52.0
func (o TagRuleOutput) MetricTagFilters() TagRuleMetricTagFilterArrayOutput
A `metricTagFilter` block as defined below.
func (TagRuleOutput) MonitorId ¶ added in v5.52.0
func (o TagRuleOutput) MonitorId() pulumi.StringOutput
Specifies the ID of the New Relic Monitor this Tag Rule should be created within. Changing this forces a new Azure Native New Relic Tag Rule to be created.
func (TagRuleOutput) SubscriptionLogEnabled ¶ added in v5.52.0
func (o TagRuleOutput) SubscriptionLogEnabled() pulumi.BoolPtrOutput
Whether subscription logs should be sent for the Monitor resource. Defaults to `false`.
func (TagRuleOutput) ToTagRuleOutput ¶ added in v5.52.0
func (o TagRuleOutput) ToTagRuleOutput() TagRuleOutput
func (TagRuleOutput) ToTagRuleOutputWithContext ¶ added in v5.52.0
func (o TagRuleOutput) ToTagRuleOutputWithContext(ctx context.Context) TagRuleOutput
type TagRuleState ¶ added in v5.52.0
type TagRuleState struct { // Whether activity logs from Azure resources should be sent for the Monitor resource. Defaults to `false`. ActivityLogEnabled pulumi.BoolPtrInput // Whether Azure Active Directory logs should be sent for the Monitor resource. Defaults to `false`. AzureActiveDirectoryLogEnabled pulumi.BoolPtrInput // A `logTagFilter` block as defined below. LogTagFilters TagRuleLogTagFilterArrayInput // Whether metrics should be sent for the Monitor resource. Defaults to `false`. MetricEnabled pulumi.BoolPtrInput // A `metricTagFilter` block as defined below. MetricTagFilters TagRuleMetricTagFilterArrayInput // Specifies the ID of the New Relic Monitor this Tag Rule should be created within. Changing this forces a new Azure Native New Relic Tag Rule to be created. MonitorId pulumi.StringPtrInput // Whether subscription logs should be sent for the Monitor resource. Defaults to `false`. SubscriptionLogEnabled pulumi.BoolPtrInput }
func (TagRuleState) ElementType ¶ added in v5.52.0
func (TagRuleState) ElementType() reflect.Type