datadog

package
v5.21.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 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

	// A `datadogOrganization` block as defined below.
	DatadogOrganization MonitorDatadogOrganizationOutput `pulumi:"datadogOrganization"`
	// A `identity` block as defined below.
	Identity MonitorIdentityPtrOutput `pulumi:"identity"`
	// The Azure Region where the Datadog Monitor should exist. Changing this forces a new Datadog Monitor to be created.
	Location pulumi.StringOutput `pulumi:"location"`
	// Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state.
	MarketplaceSubscriptionStatus pulumi.StringOutput `pulumi:"marketplaceSubscriptionStatus"`
	// Is monitoring enabled? Defaults to`true`.
	MonitoringEnabled pulumi.BoolPtrOutput `pulumi:"monitoringEnabled"`
	// The name of the user that will be associated with the Datadog Monitor. Changing this forces a new Datadog Monitor to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The name of the Resource Group where the Datadog Monitor should exist. Changing this forces a new Datadog Monitor to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// The name which should be used for this sku.
	SkuName pulumi.StringOutput `pulumi:"skuName"`
	// A mapping of tags which should be assigned to the Datadog Monitor.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// A `user` block as defined below.
	User MonitorUserOutput `pulumi:"user"`
}

Manages a datadog Monitor.

## Example Usage ### Monitor creation with linking to Datadog organization ```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/datadog"
"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("West US 2"),
		})
		if err != nil {
			return err
		}
		_, err = datadog.NewMonitor(ctx, "exampleMonitor", &datadog.MonitorArgs{
			ResourceGroupName: exampleResourceGroup.Name,
			Location:          exampleResourceGroup.Location,
			DatadogOrganization: &datadog.MonitorDatadogOrganizationArgs{
				ApiKey:         pulumi.String("XXXX"),
				ApplicationKey: pulumi.String("XXXX"),
			},
			User: &datadog.MonitorUserArgs{
				Name:  pulumi.String("Example"),
				Email: pulumi.String("abc@xyz.com"),
			},
			SkuName: pulumi.String("Linked"),
			Identity: &datadog.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 (

"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.String(monitoringReader.RoleDefinitionId),
			PrincipalId:      pulumi.Any(azurerm_datadog_monitor.Example.Identity[0].Principal_id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Datadog Monitors can be imported using the `resource id`, e.g.

```sh

$ pulumi import azure:datadog/monitor:Monitor example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Datadog/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 {
	// A `datadogOrganization` block as defined below.
	DatadogOrganization MonitorDatadogOrganizationInput
	// A `identity` block as defined below.
	Identity MonitorIdentityPtrInput
	// The Azure Region where the Datadog Monitor should exist. Changing this forces a new Datadog Monitor to be created.
	Location pulumi.StringPtrInput
	// Is monitoring enabled? Defaults to`true`.
	MonitoringEnabled pulumi.BoolPtrInput
	// The name of the user that will be associated with the Datadog Monitor. Changing this forces a new Datadog Monitor to be created.
	Name pulumi.StringPtrInput
	// The name of the Resource Group where the Datadog Monitor should exist. Changing this forces a new Datadog Monitor to be created.
	ResourceGroupName pulumi.StringInput
	// The name which should be used for this sku.
	SkuName pulumi.StringInput
	// A mapping of tags which should be assigned to the Datadog Monitor.
	Tags pulumi.StringMapInput
	// A `user` block as defined below.
	User MonitorUserInput
}

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 MonitorDatadogOrganization

type MonitorDatadogOrganization struct {
	// Api key associated to the Datadog organization. Changing this forces a new Datadog Monitor to be created.
	ApiKey string `pulumi:"apiKey"`
	// Application key associated to the Datadog organization. Changing this forces a new Datadog Monitor to be created.
	ApplicationKey string `pulumi:"applicationKey"`
	// The ID of the enterprise_app.
	EnterpriseAppId *string `pulumi:"enterpriseAppId"`
	// The ID of the Datadog Monitor.
	Id *string `pulumi:"id"`
	// The auth code used to linking to an existing Datadog organization. Changing this forces a new Datadog Monitor to be created.
	LinkingAuthCode *string `pulumi:"linkingAuthCode"`
	// The ID of the linking_client. Changing this forces a new Datadog Monitor to be created.
	LinkingClientId *string `pulumi:"linkingClientId"`
	// The name of the user that will be associated with the Datadog Monitor. Changing this forces a new Datadog Monitor to be created.
	Name *string `pulumi:"name"`
	// The redirect uri for linking. Changing this forces a new Datadog Monitor to be created.
	RedirectUri *string `pulumi:"redirectUri"`
}

type MonitorDatadogOrganizationArgs

type MonitorDatadogOrganizationArgs struct {
	// Api key associated to the Datadog organization. Changing this forces a new Datadog Monitor to be created.
	ApiKey pulumi.StringInput `pulumi:"apiKey"`
	// Application key associated to the Datadog organization. Changing this forces a new Datadog Monitor to be created.
	ApplicationKey pulumi.StringInput `pulumi:"applicationKey"`
	// The ID of the enterprise_app.
	EnterpriseAppId pulumi.StringPtrInput `pulumi:"enterpriseAppId"`
	// The ID of the Datadog Monitor.
	Id pulumi.StringPtrInput `pulumi:"id"`
	// The auth code used to linking to an existing Datadog organization. Changing this forces a new Datadog Monitor to be created.
	LinkingAuthCode pulumi.StringPtrInput `pulumi:"linkingAuthCode"`
	// The ID of the linking_client. Changing this forces a new Datadog Monitor to be created.
	LinkingClientId pulumi.StringPtrInput `pulumi:"linkingClientId"`
	// The name of the user that will be associated with the Datadog Monitor. Changing this forces a new Datadog Monitor to be created.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// The redirect uri for linking. Changing this forces a new Datadog Monitor to be created.
	RedirectUri pulumi.StringPtrInput `pulumi:"redirectUri"`
}

func (MonitorDatadogOrganizationArgs) ElementType

func (MonitorDatadogOrganizationArgs) ToMonitorDatadogOrganizationOutput

func (i MonitorDatadogOrganizationArgs) ToMonitorDatadogOrganizationOutput() MonitorDatadogOrganizationOutput

func (MonitorDatadogOrganizationArgs) ToMonitorDatadogOrganizationOutputWithContext

func (i MonitorDatadogOrganizationArgs) ToMonitorDatadogOrganizationOutputWithContext(ctx context.Context) MonitorDatadogOrganizationOutput

func (MonitorDatadogOrganizationArgs) ToMonitorDatadogOrganizationPtrOutput

func (i MonitorDatadogOrganizationArgs) ToMonitorDatadogOrganizationPtrOutput() MonitorDatadogOrganizationPtrOutput

func (MonitorDatadogOrganizationArgs) ToMonitorDatadogOrganizationPtrOutputWithContext

func (i MonitorDatadogOrganizationArgs) ToMonitorDatadogOrganizationPtrOutputWithContext(ctx context.Context) MonitorDatadogOrganizationPtrOutput

type MonitorDatadogOrganizationInput

type MonitorDatadogOrganizationInput interface {
	pulumi.Input

	ToMonitorDatadogOrganizationOutput() MonitorDatadogOrganizationOutput
	ToMonitorDatadogOrganizationOutputWithContext(context.Context) MonitorDatadogOrganizationOutput
}

MonitorDatadogOrganizationInput is an input type that accepts MonitorDatadogOrganizationArgs and MonitorDatadogOrganizationOutput values. You can construct a concrete instance of `MonitorDatadogOrganizationInput` via:

MonitorDatadogOrganizationArgs{...}

type MonitorDatadogOrganizationOutput

type MonitorDatadogOrganizationOutput struct{ *pulumi.OutputState }

func (MonitorDatadogOrganizationOutput) ApiKey

Api key associated to the Datadog organization. Changing this forces a new Datadog Monitor to be created.

func (MonitorDatadogOrganizationOutput) ApplicationKey

Application key associated to the Datadog organization. Changing this forces a new Datadog Monitor to be created.

func (MonitorDatadogOrganizationOutput) ElementType

func (MonitorDatadogOrganizationOutput) EnterpriseAppId

The ID of the enterprise_app.

func (MonitorDatadogOrganizationOutput) Id

The ID of the Datadog Monitor.

func (MonitorDatadogOrganizationOutput) LinkingAuthCode

The auth code used to linking to an existing Datadog organization. Changing this forces a new Datadog Monitor to be created.

func (MonitorDatadogOrganizationOutput) LinkingClientId

The ID of the linking_client. Changing this forces a new Datadog Monitor to be created.

func (MonitorDatadogOrganizationOutput) Name

The name of the user that will be associated with the Datadog Monitor. Changing this forces a new Datadog Monitor to be created.

func (MonitorDatadogOrganizationOutput) RedirectUri

The redirect uri for linking. Changing this forces a new Datadog Monitor to be created.

func (MonitorDatadogOrganizationOutput) ToMonitorDatadogOrganizationOutput

func (o MonitorDatadogOrganizationOutput) ToMonitorDatadogOrganizationOutput() MonitorDatadogOrganizationOutput

func (MonitorDatadogOrganizationOutput) ToMonitorDatadogOrganizationOutputWithContext

func (o MonitorDatadogOrganizationOutput) ToMonitorDatadogOrganizationOutputWithContext(ctx context.Context) MonitorDatadogOrganizationOutput

func (MonitorDatadogOrganizationOutput) ToMonitorDatadogOrganizationPtrOutput

func (o MonitorDatadogOrganizationOutput) ToMonitorDatadogOrganizationPtrOutput() MonitorDatadogOrganizationPtrOutput

func (MonitorDatadogOrganizationOutput) ToMonitorDatadogOrganizationPtrOutputWithContext

func (o MonitorDatadogOrganizationOutput) ToMonitorDatadogOrganizationPtrOutputWithContext(ctx context.Context) MonitorDatadogOrganizationPtrOutput

type MonitorDatadogOrganizationPtrInput

type MonitorDatadogOrganizationPtrInput interface {
	pulumi.Input

	ToMonitorDatadogOrganizationPtrOutput() MonitorDatadogOrganizationPtrOutput
	ToMonitorDatadogOrganizationPtrOutputWithContext(context.Context) MonitorDatadogOrganizationPtrOutput
}

MonitorDatadogOrganizationPtrInput is an input type that accepts MonitorDatadogOrganizationArgs, MonitorDatadogOrganizationPtr and MonitorDatadogOrganizationPtrOutput values. You can construct a concrete instance of `MonitorDatadogOrganizationPtrInput` via:

        MonitorDatadogOrganizationArgs{...}

or:

        nil

type MonitorDatadogOrganizationPtrOutput

type MonitorDatadogOrganizationPtrOutput struct{ *pulumi.OutputState }

func (MonitorDatadogOrganizationPtrOutput) ApiKey

Api key associated to the Datadog organization. Changing this forces a new Datadog Monitor to be created.

func (MonitorDatadogOrganizationPtrOutput) ApplicationKey

Application key associated to the Datadog organization. Changing this forces a new Datadog Monitor to be created.

func (MonitorDatadogOrganizationPtrOutput) Elem

func (MonitorDatadogOrganizationPtrOutput) ElementType

func (MonitorDatadogOrganizationPtrOutput) EnterpriseAppId

The ID of the enterprise_app.

func (MonitorDatadogOrganizationPtrOutput) Id

The ID of the Datadog Monitor.

func (MonitorDatadogOrganizationPtrOutput) LinkingAuthCode

The auth code used to linking to an existing Datadog organization. Changing this forces a new Datadog Monitor to be created.

func (MonitorDatadogOrganizationPtrOutput) LinkingClientId

The ID of the linking_client. Changing this forces a new Datadog Monitor to be created.

func (MonitorDatadogOrganizationPtrOutput) Name

The name of the user that will be associated with the Datadog Monitor. Changing this forces a new Datadog Monitor to be created.

func (MonitorDatadogOrganizationPtrOutput) RedirectUri

The redirect uri for linking. Changing this forces a new Datadog Monitor to be created.

func (MonitorDatadogOrganizationPtrOutput) ToMonitorDatadogOrganizationPtrOutput

func (o MonitorDatadogOrganizationPtrOutput) ToMonitorDatadogOrganizationPtrOutput() MonitorDatadogOrganizationPtrOutput

func (MonitorDatadogOrganizationPtrOutput) ToMonitorDatadogOrganizationPtrOutputWithContext

func (o MonitorDatadogOrganizationPtrOutput) ToMonitorDatadogOrganizationPtrOutputWithContext(ctx context.Context) MonitorDatadogOrganizationPtrOutput

type MonitorIdentity

type MonitorIdentity struct {
	// The Principal ID for the Service Principal associated with the Identity of this Datadog Monitor.
	PrincipalId *string `pulumi:"principalId"`
	// The Tenant ID for the Service Principal associated with the Identity of this Datadog Monitor.
	TenantId *string `pulumi:"tenantId"`
	// Specifies the identity type of the Datadog Monitor. At this time the only allowed value is `SystemAssigned`.
	Type string `pulumi:"type"`
}

type MonitorIdentityArgs

type MonitorIdentityArgs struct {
	// The Principal ID for the Service Principal associated with the Identity of this Datadog Monitor.
	PrincipalId pulumi.StringPtrInput `pulumi:"principalId"`
	// The Tenant ID for the Service Principal associated with the Identity of this Datadog Monitor.
	TenantId pulumi.StringPtrInput `pulumi:"tenantId"`
	// Specifies the identity type of the Datadog Monitor. At this time the only allowed value is `SystemAssigned`.
	Type pulumi.StringInput `pulumi:"type"`
}

func (MonitorIdentityArgs) ElementType

func (MonitorIdentityArgs) ElementType() reflect.Type

func (MonitorIdentityArgs) ToMonitorIdentityOutput

func (i MonitorIdentityArgs) ToMonitorIdentityOutput() MonitorIdentityOutput

func (MonitorIdentityArgs) ToMonitorIdentityOutputWithContext

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

func (MonitorIdentityArgs) ToMonitorIdentityPtrOutput

func (i MonitorIdentityArgs) ToMonitorIdentityPtrOutput() MonitorIdentityPtrOutput

func (MonitorIdentityArgs) ToMonitorIdentityPtrOutputWithContext

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

type MonitorIdentityInput

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

type MonitorIdentityOutput struct{ *pulumi.OutputState }

func (MonitorIdentityOutput) ElementType

func (MonitorIdentityOutput) ElementType() reflect.Type

func (MonitorIdentityOutput) PrincipalId

The Principal ID for the Service Principal associated with the Identity of this Datadog Monitor.

func (MonitorIdentityOutput) TenantId

The Tenant ID for the Service Principal associated with the Identity of this Datadog Monitor.

func (MonitorIdentityOutput) ToMonitorIdentityOutput

func (o MonitorIdentityOutput) ToMonitorIdentityOutput() MonitorIdentityOutput

func (MonitorIdentityOutput) ToMonitorIdentityOutputWithContext

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

func (MonitorIdentityOutput) ToMonitorIdentityPtrOutput

func (o MonitorIdentityOutput) ToMonitorIdentityPtrOutput() MonitorIdentityPtrOutput

func (MonitorIdentityOutput) ToMonitorIdentityPtrOutputWithContext

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

func (MonitorIdentityOutput) Type

Specifies the identity type of the Datadog Monitor. At this time the only allowed value is `SystemAssigned`.

type MonitorIdentityPtrInput

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

type MonitorIdentityPtrOutput

type MonitorIdentityPtrOutput struct{ *pulumi.OutputState }

func (MonitorIdentityPtrOutput) Elem

func (MonitorIdentityPtrOutput) ElementType

func (MonitorIdentityPtrOutput) ElementType() reflect.Type

func (MonitorIdentityPtrOutput) PrincipalId

The Principal ID for the Service Principal associated with the Identity of this Datadog Monitor.

func (MonitorIdentityPtrOutput) TenantId

The Tenant ID for the Service Principal associated with the Identity of this Datadog Monitor.

func (MonitorIdentityPtrOutput) ToMonitorIdentityPtrOutput

func (o MonitorIdentityPtrOutput) ToMonitorIdentityPtrOutput() MonitorIdentityPtrOutput

func (MonitorIdentityPtrOutput) ToMonitorIdentityPtrOutputWithContext

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

func (MonitorIdentityPtrOutput) Type

Specifies the identity type of the Datadog Monitor. At this time the only allowed value is `SystemAssigned`.

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

func (o MonitorOutput) DatadogOrganization() MonitorDatadogOrganizationOutput

A `datadogOrganization` block as defined below.

func (MonitorOutput) ElementType

func (MonitorOutput) ElementType() reflect.Type

func (MonitorOutput) Identity

A `identity` block as defined below.

func (MonitorOutput) Location

func (o MonitorOutput) Location() pulumi.StringOutput

The Azure Region where the Datadog Monitor should exist. Changing this forces a new Datadog Monitor to be created.

func (MonitorOutput) MarketplaceSubscriptionStatus

func (o MonitorOutput) MarketplaceSubscriptionStatus() pulumi.StringOutput

Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state.

func (MonitorOutput) MonitoringEnabled

func (o MonitorOutput) MonitoringEnabled() pulumi.BoolPtrOutput

Is monitoring enabled? Defaults to`true`.

func (MonitorOutput) Name

The name of the user that will be associated with the Datadog Monitor. Changing this forces a new Datadog Monitor to be created.

func (MonitorOutput) ResourceGroupName

func (o MonitorOutput) ResourceGroupName() pulumi.StringOutput

The name of the Resource Group where the Datadog Monitor should exist. Changing this forces a new Datadog Monitor to be created.

func (MonitorOutput) SkuName

func (o MonitorOutput) SkuName() pulumi.StringOutput

The name which should be used for this sku.

func (MonitorOutput) Tags

A mapping of tags which should be assigned to the Datadog Monitor.

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.

type MonitorState

type MonitorState struct {
	// A `datadogOrganization` block as defined below.
	DatadogOrganization MonitorDatadogOrganizationPtrInput
	// A `identity` block as defined below.
	Identity MonitorIdentityPtrInput
	// The Azure Region where the Datadog Monitor should exist. Changing this forces a new Datadog Monitor to be created.
	Location pulumi.StringPtrInput
	// Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state.
	MarketplaceSubscriptionStatus pulumi.StringPtrInput
	// Is monitoring enabled? Defaults to`true`.
	MonitoringEnabled pulumi.BoolPtrInput
	// The name of the user that will be associated with the Datadog Monitor. Changing this forces a new Datadog Monitor to be created.
	Name pulumi.StringPtrInput
	// The name of the Resource Group where the Datadog Monitor should exist. Changing this forces a new Datadog Monitor to be created.
	ResourceGroupName pulumi.StringPtrInput
	// The name which should be used for this sku.
	SkuName pulumi.StringPtrInput
	// A mapping of tags which should be assigned to the Datadog Monitor.
	Tags pulumi.StringMapInput
	// A `user` block as defined below.
	User MonitorUserPtrInput
}

func (MonitorState) ElementType

func (MonitorState) ElementType() reflect.Type

type MonitorUser

type MonitorUser struct {
	// Email of the user used by Datadog for contacting them if needed. Changing this forces a new Datadog Monitor to be created.
	Email string `pulumi:"email"`
	// The name which should be used for this user_info.
	Name string `pulumi:"name"`
	// Phone number of the user used by Datadog for contacting them if needed.
	PhoneNumber *string `pulumi:"phoneNumber"`
}

type MonitorUserArgs

type MonitorUserArgs struct {
	// Email of the user used by Datadog for contacting them if needed. Changing this forces a new Datadog Monitor to be created.
	Email pulumi.StringInput `pulumi:"email"`
	// The name which should be used for this user_info.
	Name pulumi.StringInput `pulumi:"name"`
	// Phone number of the user used by Datadog for contacting them if needed.
	PhoneNumber pulumi.StringPtrInput `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

Email of the user used by Datadog for contacting them if needed. Changing this forces a new Datadog Monitor to be created.

func (MonitorUserOutput) Name

The name which should be used for this user_info.

func (MonitorUserOutput) PhoneNumber

func (o MonitorUserOutput) PhoneNumber() pulumi.StringPtrOutput

Phone number of the user used by Datadog for contacting them if needed.

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

Email of the user used by Datadog for contacting them if needed. Changing this forces a new Datadog Monitor to be created.

func (MonitorUserPtrOutput) Name

The name which should be used for this user_info.

func (MonitorUserPtrOutput) PhoneNumber

Phone number of the user used by Datadog for contacting them if needed.

func (MonitorUserPtrOutput) ToMonitorUserPtrOutput

func (o MonitorUserPtrOutput) ToMonitorUserPtrOutput() MonitorUserPtrOutput

func (MonitorUserPtrOutput) ToMonitorUserPtrOutputWithContext

func (o MonitorUserPtrOutput) ToMonitorUserPtrOutputWithContext(ctx context.Context) MonitorUserPtrOutput

Jump to

Keyboard shortcuts

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