MonitorArgs

data class MonitorArgs(val accountCreationSource: Output<String>? = null, val accountId: Output<String>? = null, val ingestionKey: Output<String>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val orgCreationSource: Output<String>? = null, val organizationId: Output<String>? = null, val plan: Output<MonitorPlanArgs>? = null, val resourceGroupName: Output<String>? = null, val user: Output<MonitorUserArgs>? = null, val userId: Output<String>? = null) : ConvertibleToJava<MonitorArgs>

Manages an Azure Native New Relic Monitor.

Example Usage

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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("East US")
.build());
var exampleMonitor = new Monitor("exampleMonitor", MonitorArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.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());
}
}

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

Constructors

Link copied to clipboard
fun MonitorArgs(accountCreationSource: Output<String>? = null, accountId: Output<String>? = null, ingestionKey: Output<String>? = null, location: Output<String>? = null, name: Output<String>? = null, orgCreationSource: Output<String>? = null, organizationId: Output<String>? = null, plan: Output<MonitorPlanArgs>? = null, resourceGroupName: Output<String>? = null, user: Output<MonitorUserArgs>? = null, userId: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): MonitorArgs

Properties

Link copied to clipboard
val accountCreationSource: Output<String>? = null

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>? = null

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

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

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>? = null

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>? = null

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>? = null

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

Link copied to clipboard
val orgCreationSource: Output<String>? = null

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<MonitorPlanArgs>? = null

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

Link copied to clipboard
val resourceGroupName: Output<String>? = null

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 user: Output<MonitorUserArgs>? = null

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>? = null

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