import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Occ Metric Alarm resource in Oracle Cloud Infrastructure Demand Signal service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/occds/latest/OccMetricAlarm * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/demand_signal * * Creates a new OccMetricAlarm resource in the specified compartment with the provided configuration details. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testOccMetricAlarm = new oci.demandsignal.OccMetricAlarm("test_occ_metric_alarm", { * compartmentId: compartmentId, * displayName: occMetricAlarmDisplayName, * frequency: occMetricAlarmFrequency, * isActive: occMetricAlarmIsActive === "true", * resourceConfiguration: { * resource: occMetricAlarmResourceConfigurationResource, * usageType: occMetricAlarmResourceConfigurationUsageType, * computeHwGeneration: occMetricAlarmResourceConfigurationComputeHwGeneration, * hwGeneration: occMetricAlarmResourceConfigurationHwGeneration, * linkRole: occMetricAlarmResourceConfigurationLinkRole, * nodeType: occMetricAlarmResourceConfigurationNodeType, * occMetricAlarmProvider: occMetricAlarmResourceConfigurationOccMetricAlarmProvider, * shape: occMetricAlarmResourceConfigurationShape, * storageType: occMetricAlarmResourceConfigurationStorageType, * }, * threshold: Number(occMetricAlarmThreshold), * definedTags: { * "Operations.CostCenter": "42", * }, * description: occMetricAlarmDescription, * freeformTags: { * Department: "Finance", * }, * state: occMetricAlarmState, * subscribers: occMetricAlarmSubscribers, * thresholdType: occMetricAlarmThresholdType, * }); * ``` * * ## Import * * OccMetricAlarms can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:DemandSignal/occMetricAlarm:OccMetricAlarm test_occ_metric_alarm "id" * ``` */ export declare class OccMetricAlarm extends pulumi.CustomResource { /** * Get an existing OccMetricAlarm 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?: OccMetricAlarmState, opts?: pulumi.CustomResourceOptions): OccMetricAlarm; /** * Returns true if the given object is an instance of OccMetricAlarm. 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 OccMetricAlarm; /** * Compartment OCID in which the alarm is created. */ readonly compartmentId: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) Optional description for the alarm. */ readonly description: pulumi.Output; /** * (Updatable) Human-readable name for the alarm. */ readonly displayName: pulumi.Output; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) Frequency at which notifications should be sent. */ readonly frequency: pulumi.Output; /** * (Updatable) Alarm active status. */ readonly isActive: pulumi.Output; /** * Configuration for a given 'resource' */ readonly resourceConfiguration: pulumi.Output; /** * (Updatable) The current lifecycle state of the resource. */ readonly state: pulumi.Output; /** * (Updatable) List of topic OCIDs for notifications. */ readonly subscribers: pulumi.Output; /** * System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) Threshold at which alarm must be triggered. */ readonly threshold: pulumi.Output; /** * (Updatable) Units in which threshold is being stored. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ readonly thresholdType: pulumi.Output; /** * Creation timestamp (RFC 3339). */ readonly timeCreated: pulumi.Output; /** * Last update timestamp (RFC 3339). */ readonly timeUpdated: pulumi.Output; /** * Create a OccMetricAlarm 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: OccMetricAlarmArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering OccMetricAlarm resources. */ export interface OccMetricAlarmState { /** * Compartment OCID in which the alarm is created. */ compartmentId?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Optional description for the alarm. */ description?: pulumi.Input; /** * (Updatable) Human-readable name for the alarm. */ displayName?: pulumi.Input; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Frequency at which notifications should be sent. */ frequency?: pulumi.Input; /** * (Updatable) Alarm active status. */ isActive?: pulumi.Input; /** * Configuration for a given 'resource' */ resourceConfiguration?: pulumi.Input; /** * (Updatable) The current lifecycle state of the resource. */ state?: pulumi.Input; /** * (Updatable) List of topic OCIDs for notifications. */ subscribers?: pulumi.Input[] | undefined>; /** * System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Threshold at which alarm must be triggered. */ threshold?: pulumi.Input; /** * (Updatable) Units in which threshold is being stored. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ thresholdType?: pulumi.Input; /** * Creation timestamp (RFC 3339). */ timeCreated?: pulumi.Input; /** * Last update timestamp (RFC 3339). */ timeUpdated?: pulumi.Input; } /** * The set of arguments for constructing a OccMetricAlarm resource. */ export interface OccMetricAlarmArgs { /** * Compartment OCID in which the alarm is created. */ compartmentId: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Optional description for the alarm. */ description?: pulumi.Input; /** * (Updatable) Human-readable name for the alarm. */ displayName: pulumi.Input; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Frequency at which notifications should be sent. */ frequency: pulumi.Input; /** * (Updatable) Alarm active status. */ isActive: pulumi.Input; /** * Configuration for a given 'resource' */ resourceConfiguration: pulumi.Input; /** * (Updatable) The current lifecycle state of the resource. */ state?: pulumi.Input; /** * (Updatable) List of topic OCIDs for notifications. */ subscribers?: pulumi.Input[] | undefined>; /** * (Updatable) Threshold at which alarm must be triggered. */ threshold: pulumi.Input; /** * (Updatable) Units in which threshold is being stored. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ thresholdType?: pulumi.Input; } //# sourceMappingURL=occMetricAlarm.d.ts.map