import * as pulumi from "@pulumi/pulumi"; /** * Use this resource to create, update, and delete New Relic Events to Metrics rules. * * > **IMPORTANT!** Version 2.0.0 of the New Relic Terraform Provider introduces some [additional requirements](https://www.terraform.io/providers/newrelic/newrelic/latest/docs/guides/migration_guide_v2) for configuring the provider. *

* Before upgrading to version 2.0.0 or later, it is recommended to upgrade to the most recent 1.x version of the provider and ensure that your environment successfully runs `pulumi preview` without unexpected changes. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * const foo = new newrelic.EventsToMetricsRule("foo", { * accountId: "12345", * name: "Example events to metrics rule", * description: "Example description", * nrql: "SELECT uniqueCount(account_id) AS ``Transaction.account_id`` FROM Transaction FACET appName, name", * }); * ``` * * ## Import * * New Relic Events to Metrics rules can be imported using a concatenated string of the format * `:`, e.g. * * ```sh * $ pulumi import newrelic:index/eventsToMetricsRule:EventsToMetricsRule foo 12345:34567 * ``` */ export declare class EventsToMetricsRule extends pulumi.CustomResource { /** * Get an existing EventsToMetricsRule resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: EventsToMetricsRuleState, opts?: pulumi.CustomResourceOptions): EventsToMetricsRule; /** * Returns true if the given object is an instance of EventsToMetricsRule. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is EventsToMetricsRule; /** * The account ID where the Events to Metrics rule will be created. If not specified, defaults to *the provider's configured account ID*. * * > **NOTE:** Setting `accountId` explicitly is recommended so the target account is unambiguous in your configuration. */ readonly accountId: pulumi.Output; /** * Provides additional information about the rule. */ readonly description: pulumi.Output; /** * True means this rule is enabled. False means the rule is currently not creating metrics. */ readonly enabled: pulumi.Output; /** * The name of the rule. This must be unique within an account. */ readonly name: pulumi.Output; /** * Explains how to create metrics from events. */ readonly nrql: pulumi.Output; /** * The id, uniquely identifying the rule. */ readonly ruleId: pulumi.Output; /** * Create a EventsToMetricsRule resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: EventsToMetricsRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering EventsToMetricsRule resources. */ export interface EventsToMetricsRuleState { /** * The account ID where the Events to Metrics rule will be created. If not specified, defaults to *the provider's configured account ID*. * * > **NOTE:** Setting `accountId` explicitly is recommended so the target account is unambiguous in your configuration. */ accountId?: pulumi.Input; /** * Provides additional information about the rule. */ description?: pulumi.Input; /** * True means this rule is enabled. False means the rule is currently not creating metrics. */ enabled?: pulumi.Input; /** * The name of the rule. This must be unique within an account. */ name?: pulumi.Input; /** * Explains how to create metrics from events. */ nrql?: pulumi.Input; /** * The id, uniquely identifying the rule. */ ruleId?: pulumi.Input; } /** * The set of arguments for constructing a EventsToMetricsRule resource. */ export interface EventsToMetricsRuleArgs { /** * The account ID where the Events to Metrics rule will be created. If not specified, defaults to *the provider's configured account ID*. * * > **NOTE:** Setting `accountId` explicitly is recommended so the target account is unambiguous in your configuration. */ accountId?: pulumi.Input; /** * Provides additional information about the rule. */ description?: pulumi.Input; /** * True means this rule is enabled. False means the rule is currently not creating metrics. */ enabled?: pulumi.Input; /** * The name of the rule. This must be unique within an account. */ name?: pulumi.Input; /** * Explains how to create metrics from events. */ nrql: pulumi.Input; } //# sourceMappingURL=eventsToMetricsRule.d.ts.map