newrelic

package
v5.89.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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.
	//
	// > **NOTE:** The value of `accountId` must come from an Azure Native New Relic Monitor instance of another different subscription.
	AccountId pulumi.StringOutput `pulumi:"accountId"`
	// An `identity` block as defined below. Changing this forces a new Azure Native New Relic Monitor to be created.
	Identity MonitorIdentityPtrOutput `pulumi:"identity"`
	// 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.
	//
	// > **NOTE:** The value of `organizationId` must come from an Azure Native New Relic Monitor instance of another different subscription.
	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 {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("East US"),
		})
		if err != nil {
			return err
		}
		_, err = newrelic.NewMonitor(ctx, "example", &newrelic.MonitorArgs{
			Name:              pulumi.String("example-nrm"),
			ResourceGroupName: example.Name,
			Location:          example.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"),
			},
			Identity: &newrelic.MonitorIdentityArgs{
				Type: pulumi.String("SystemAssigned"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Role Assignment

To enable metrics flow, perform role assignment on the identity created above. `Monitoring reader(43d0d8ad-25c7-4714-9337-8ba259a9fe05)` role is required .

### Role assignment on the monitor created

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/authorization"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		primary, err := core.LookupSubscription(ctx, nil, nil)
		if err != nil {
			return err
		}
		monitoringReader, err := authorization.LookupRoleDefinition(ctx, &authorization.LookupRoleDefinitionArgs{
			Name: pulumi.StringRef("Monitoring Reader"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = authorization.NewAssignment(ctx, "example", &authorization.AssignmentArgs{
			Scope:            pulumi.String(primary.Id),
			RoleDefinitionId: pulumi.Sprintf("%v%v", primary.Id, monitoringReader.Id),
			PrincipalId:      pulumi.Any(exampleAzurermNewRelicMonitor.Identity[0].PrincipalId),
		})
		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) ElementType() reflect.Type

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.
	//
	// > **NOTE:** The value of `accountId` must come from an Azure Native New Relic Monitor instance of another different subscription.
	AccountId pulumi.StringPtrInput
	// An `identity` block as defined below. Changing this forces a new Azure Native New Relic Monitor to be created.
	Identity MonitorIdentityPtrInput
	// 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.
	//
	// > **NOTE:** The value of `organizationId` must come from an Azure Native New Relic Monitor instance of another different subscription.
	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 (MonitorArrayOutput) ToMonitorArrayOutput

func (o MonitorArrayOutput) ToMonitorArrayOutput() MonitorArrayOutput

func (MonitorArrayOutput) ToMonitorArrayOutputWithContext

func (o MonitorArrayOutput) ToMonitorArrayOutputWithContext(ctx context.Context) MonitorArrayOutput

type MonitorIdentity added in v5.80.0

type MonitorIdentity struct {
	// The Principal ID for the Service Principal associated with the Identity of this Azure Native New Relic Monitor.
	PrincipalId *string `pulumi:"principalId"`
	// The Tenant ID for the Service Principal associated with the Identity of this Azure Native New Relic Monitor.
	TenantId *string `pulumi:"tenantId"`
	// Specifies the identity type of the Azure Native New Relic Monitor. The only possible value is `SystemAssigned`. Changing this forces a new Azure Native New Relic Monitor to be created.
	Type string `pulumi:"type"`
}

type MonitorIdentityArgs added in v5.80.0

type MonitorIdentityArgs struct {
	// The Principal ID for the Service Principal associated with the Identity of this Azure Native New Relic Monitor.
	PrincipalId pulumi.StringPtrInput `pulumi:"principalId"`
	// The Tenant ID for the Service Principal associated with the Identity of this Azure Native New Relic Monitor.
	TenantId pulumi.StringPtrInput `pulumi:"tenantId"`
	// Specifies the identity type of the Azure Native New Relic Monitor. The only possible value is `SystemAssigned`. Changing this forces a new Azure Native New Relic Monitor to be created.
	Type pulumi.StringInput `pulumi:"type"`
}

func (MonitorIdentityArgs) ElementType added in v5.80.0

func (MonitorIdentityArgs) ElementType() reflect.Type

func (MonitorIdentityArgs) ToMonitorIdentityOutput added in v5.80.0

func (i MonitorIdentityArgs) ToMonitorIdentityOutput() MonitorIdentityOutput

func (MonitorIdentityArgs) ToMonitorIdentityOutputWithContext added in v5.80.0

func (i MonitorIdentityArgs) ToMonitorIdentityOutputWithContext(ctx context.Context) MonitorIdentityOutput

func (MonitorIdentityArgs) ToMonitorIdentityPtrOutput added in v5.80.0

func (i MonitorIdentityArgs) ToMonitorIdentityPtrOutput() MonitorIdentityPtrOutput

func (MonitorIdentityArgs) ToMonitorIdentityPtrOutputWithContext added in v5.80.0

func (i MonitorIdentityArgs) ToMonitorIdentityPtrOutputWithContext(ctx context.Context) MonitorIdentityPtrOutput

type MonitorIdentityInput added in v5.80.0

type MonitorIdentityInput interface {
	pulumi.Input

	ToMonitorIdentityOutput() MonitorIdentityOutput
	ToMonitorIdentityOutputWithContext(context.Context) MonitorIdentityOutput
}

MonitorIdentityInput is an input type that accepts MonitorIdentityArgs and MonitorIdentityOutput values. You can construct a concrete instance of `MonitorIdentityInput` via:

MonitorIdentityArgs{...}

type MonitorIdentityOutput added in v5.80.0

type MonitorIdentityOutput struct{ *pulumi.OutputState }

func (MonitorIdentityOutput) ElementType added in v5.80.0

func (MonitorIdentityOutput) ElementType() reflect.Type

func (MonitorIdentityOutput) PrincipalId added in v5.80.0

The Principal ID for the Service Principal associated with the Identity of this Azure Native New Relic Monitor.

func (MonitorIdentityOutput) TenantId added in v5.80.0

The Tenant ID for the Service Principal associated with the Identity of this Azure Native New Relic Monitor.

func (MonitorIdentityOutput) ToMonitorIdentityOutput added in v5.80.0

func (o MonitorIdentityOutput) ToMonitorIdentityOutput() MonitorIdentityOutput

func (MonitorIdentityOutput) ToMonitorIdentityOutputWithContext added in v5.80.0

func (o MonitorIdentityOutput) ToMonitorIdentityOutputWithContext(ctx context.Context) MonitorIdentityOutput

func (MonitorIdentityOutput) ToMonitorIdentityPtrOutput added in v5.80.0

func (o MonitorIdentityOutput) ToMonitorIdentityPtrOutput() MonitorIdentityPtrOutput

func (MonitorIdentityOutput) ToMonitorIdentityPtrOutputWithContext added in v5.80.0

func (o MonitorIdentityOutput) ToMonitorIdentityPtrOutputWithContext(ctx context.Context) MonitorIdentityPtrOutput

func (MonitorIdentityOutput) Type added in v5.80.0

Specifies the identity type of the Azure Native New Relic Monitor. The only possible value is `SystemAssigned`. Changing this forces a new Azure Native New Relic Monitor to be created.

type MonitorIdentityPtrInput added in v5.80.0

type MonitorIdentityPtrInput interface {
	pulumi.Input

	ToMonitorIdentityPtrOutput() MonitorIdentityPtrOutput
	ToMonitorIdentityPtrOutputWithContext(context.Context) MonitorIdentityPtrOutput
}

MonitorIdentityPtrInput is an input type that accepts MonitorIdentityArgs, MonitorIdentityPtr and MonitorIdentityPtrOutput values. You can construct a concrete instance of `MonitorIdentityPtrInput` via:

        MonitorIdentityArgs{...}

or:

        nil

func MonitorIdentityPtr added in v5.80.0

func MonitorIdentityPtr(v *MonitorIdentityArgs) MonitorIdentityPtrInput

type MonitorIdentityPtrOutput added in v5.80.0

type MonitorIdentityPtrOutput struct{ *pulumi.OutputState }

func (MonitorIdentityPtrOutput) Elem added in v5.80.0

func (MonitorIdentityPtrOutput) ElementType added in v5.80.0

func (MonitorIdentityPtrOutput) ElementType() reflect.Type

func (MonitorIdentityPtrOutput) PrincipalId added in v5.80.0

The Principal ID for the Service Principal associated with the Identity of this Azure Native New Relic Monitor.

func (MonitorIdentityPtrOutput) TenantId added in v5.80.0

The Tenant ID for the Service Principal associated with the Identity of this Azure Native New Relic Monitor.

func (MonitorIdentityPtrOutput) ToMonitorIdentityPtrOutput added in v5.80.0

func (o MonitorIdentityPtrOutput) ToMonitorIdentityPtrOutput() MonitorIdentityPtrOutput

func (MonitorIdentityPtrOutput) ToMonitorIdentityPtrOutputWithContext added in v5.80.0

func (o MonitorIdentityPtrOutput) ToMonitorIdentityPtrOutputWithContext(ctx context.Context) MonitorIdentityPtrOutput

func (MonitorIdentityPtrOutput) Type added in v5.80.0

Specifies the identity type of the Azure Native New Relic Monitor. The only possible value is `SystemAssigned`. Changing this forces a new Azure Native New Relic Monitor to be created.

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 (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.

> **NOTE:** The value of `accountId` must come from an Azure Native New Relic Monitor instance of another different subscription.

func (MonitorOutput) ElementType

func (MonitorOutput) ElementType() reflect.Type

func (MonitorOutput) Identity added in v5.80.0

An `identity` block as defined below. Changing this forces a new Azure Native New Relic Monitor to be created.

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

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.

> **NOTE:** The value of `organizationId` must come from an Azure Native New Relic Monitor instance of another different subscription.

func (MonitorOutput) Plan

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

A `user` block as defined below. Changing this forces a new Azure Native New Relic Monitor to be created.

func (MonitorOutput) UserId

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

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

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) UsageType

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 (MonitorPlanPtrOutput) ElementType

func (MonitorPlanPtrOutput) ElementType() reflect.Type

func (MonitorPlanPtrOutput) PlanId

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) UsageType

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.
	//
	// > **NOTE:** The value of `accountId` must come from an Azure Native New Relic Monitor instance of another different subscription.
	AccountId pulumi.StringPtrInput
	// An `identity` block as defined below. Changing this forces a new Azure Native New Relic Monitor to be created.
	Identity MonitorIdentityPtrInput
	// 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.
	//
	// > **NOTE:** The value of `organizationId` must come from an Azure Native New Relic Monitor instance of another different subscription.
	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

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

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

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 (MonitorUserPtrOutput) ElementType

func (MonitorUserPtrOutput) ElementType() reflect.Type

func (MonitorUserPtrOutput) Email

Specifies the user Email. Changing this forces a new Azure Native New Relic Monitor to be created.

func (MonitorUserPtrOutput) FirstName

Specifies the first name. Changing this forces a new Azure Native New Relic Monitor to be created.

func (MonitorUserPtrOutput) LastName

Specifies the last name. Changing this forces a new Azure Native New Relic Monitor to be created.

func (MonitorUserPtrOutput) PhoneNumber

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

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 {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("East US"),
		})
		if err != nil {
			return err
		}
		exampleMonitor, err := newrelic.NewMonitor(ctx, "example", &newrelic.MonitorArgs{
			Name:              pulumi.String("example-nrm"),
			ResourceGroupName: example.Name,
			Location:          example.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, "example", &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) ElementType() reflect.Type

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 (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) 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) 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) Index added in v5.52.0

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

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

Specifies the name (also known as the key) of the tag.

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

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 (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) 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) 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) Index added in v5.52.0

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

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) Name added in v5.52.0

Specifies the name (also known as the key) of the tag.

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

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

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

Jump to

Keyboard shortcuts

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