Monitor

class Monitor : KotlinCustomResource

Manages an Azure Native New Relic Monitor.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "East US",
});
const exampleMonitor = new azure.newrelic.Monitor("example", {
name: "example-nrm",
resourceGroupName: example.name,
location: example.location,
plan: {
effectiveDate: "2023-06-06T00:00:00Z",
},
user: {
email: "user@example.com",
firstName: "Example",
lastName: "User",
phoneNumber: "+12313803556",
},
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="East US")
example_monitor = azure.newrelic.Monitor("example",
name="example-nrm",
resource_group_name=example.name,
location=example.location,
plan=azure.newrelic.MonitorPlanArgs(
effective_date="2023-06-06T00:00:00Z",
),
user=azure.newrelic.MonitorUserArgs(
email="user@example.com",
first_name="Example",
last_name="User",
phone_number="+12313803556",
))
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "East US",
});
var exampleMonitor = new Azure.NewRelic.Monitor("example", new()
{
Name = "example-nrm",
ResourceGroupName = example.Name,
Location = example.Location,
Plan = new Azure.NewRelic.Inputs.MonitorPlanArgs
{
EffectiveDate = "2023-06-06T00:00:00Z",
},
User = new Azure.NewRelic.Inputs.MonitorUserArgs
{
Email = "user@example.com",
FirstName = "Example",
LastName = "User",
PhoneNumber = "+12313803556",
},
});
});
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"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.newrelic.Monitor;
import com.pulumi.azure.newrelic.MonitorArgs;
import com.pulumi.azure.newrelic.inputs.MonitorPlanArgs;
import com.pulumi.azure.newrelic.inputs.MonitorUserArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("East US")
.build());
var exampleMonitor = new Monitor("exampleMonitor", MonitorArgs.builder()
.name("example-nrm")
.resourceGroupName(example.name())
.location(example.location())
.plan(MonitorPlanArgs.builder()
.effectiveDate("2023-06-06T00:00:00Z")
.build())
.user(MonitorUserArgs.builder()
.email("user@example.com")
.firstName("Example")
.lastName("User")
.phoneNumber("+12313803556")
.build())
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: East US
exampleMonitor:
type: azure:newrelic:Monitor
name: example
properties:
name: example-nrm
resourceGroupName: ${example.name}
location: ${example.location}
plan:
effectiveDate: 2023-06-06T00:00:00Z
user:
email: user@example.com
firstName: Example
lastName: User
phoneNumber: '+12313803556'

Import

Azure Native New Relic Monitor can be imported using the resource id, e.g.

$ pulumi import azure:newrelic/monitor:Monitor example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/NewRelic.Observability/monitors/monitor1

Properties

Link copied to clipboard

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.

Link copied to clipboard
val accountId: Output<String>

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

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val ingestionKey: Output<String>?

Specifies the ingestion key of account. Changing this forces a new Azure Native New Relic Monitor to be created.

Link copied to clipboard
val location: Output<String>

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.

Link copied to clipboard
val name: Output<String>

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.

Link copied to clipboard
val organizationId: Output<String>

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

Link copied to clipboard

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.

Link copied to clipboard
val plan: Output<MonitorPlan>

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val user: Output<MonitorUser>

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

Link copied to clipboard
val userId: Output<String>?

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