import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Monitoring Template Alarm Condition resource in Oracle Cloud Infrastructure Stack Monitoring service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/stack-monitoring/latest/MonitoringTemplateAlarmCondition * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/stack_monitoring * * Create a new alarm condition in same monitoringTemplate compartment. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testMonitoringTemplateAlarmCondition = new oci.stackmonitoring.MonitoringTemplateAlarmCondition("test_monitoring_template_alarm_condition", { * conditionType: monitoringTemplateAlarmConditionConditionType, * conditions: [{ * query: monitoringTemplateAlarmConditionConditionsQuery, * severity: monitoringTemplateAlarmConditionConditionsSeverity, * body: monitoringTemplateAlarmConditionConditionsBody, * shouldAppendNote: monitoringTemplateAlarmConditionConditionsShouldAppendNote === "true", * shouldAppendUrl: monitoringTemplateAlarmConditionConditionsShouldAppendUrl === "true", * triggerDelay: monitoringTemplateAlarmConditionConditionsTriggerDelay, * }], * metricName: testMetric.name, * monitoringTemplateId: testMonitoringTemplate.id, * namespace: monitoringTemplateAlarmConditionNamespace, * resourceType: monitoringTemplateAlarmConditionResourceType, * compositeType: monitoringTemplateAlarmConditionCompositeType, * definedTags: { * "foo-namespace.bar-key": "value", * }, * freeformTags: { * "bar-key": "value", * }, * }); * ``` * * ## Import * * MonitoringTemplateAlarmConditions can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:StackMonitoring/monitoringTemplateAlarmCondition:MonitoringTemplateAlarmCondition test_monitoring_template_alarm_condition "monitoringTemplates/{monitoringTemplateId}/alarmConditions/{alarmConditionId}" * ``` */ export declare class MonitoringTemplateAlarmCondition extends pulumi.CustomResource { /** * Get an existing MonitoringTemplateAlarmCondition 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?: MonitoringTemplateAlarmConditionState, opts?: pulumi.CustomResourceOptions): MonitoringTemplateAlarmCondition; /** * Returns true if the given object is an instance of MonitoringTemplateAlarmCondition. 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 MonitoringTemplateAlarmCondition; /** * (Updatable) The OCID of the composite resource type like EBS/PEOPLE_SOFT. */ readonly compositeType: pulumi.Output; /** * (Updatable) Type of defined monitoring template. */ readonly conditionType: pulumi.Output; /** * (Updatable) Monitoring template conditions. */ readonly conditions: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) The metric name. */ readonly metricName: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the monitoring template. */ readonly monitoringTemplateId: pulumi.Output; /** * (Updatable) The stack monitoring service or application emitting the metric that is evaluated by the alarm. */ readonly namespace: pulumi.Output; /** * (Updatable) The resource group OCID. * * ** 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 resourceType: pulumi.Output; /** * The current lifecycle state of the monitoring template */ readonly state: pulumi.Output; /** * The current status of the monitoring template i.e. whether it is Published or Unpublished */ readonly status: pulumi.Output; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * The date and time the alarm condition was created. Format defined by RFC3339. */ readonly timeCreated: pulumi.Output; /** * The date and time the alarm condition was updated. Format defined by RFC3339. */ readonly timeUpdated: pulumi.Output; /** * Create a MonitoringTemplateAlarmCondition 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: MonitoringTemplateAlarmConditionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering MonitoringTemplateAlarmCondition resources. */ export interface MonitoringTemplateAlarmConditionState { /** * (Updatable) The OCID of the composite resource type like EBS/PEOPLE_SOFT. */ compositeType?: pulumi.Input; /** * (Updatable) Type of defined monitoring template. */ conditionType?: pulumi.Input; /** * (Updatable) Monitoring template conditions. */ conditions?: pulumi.Input[] | undefined>; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) The metric name. */ metricName?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the monitoring template. */ monitoringTemplateId?: pulumi.Input; /** * (Updatable) The stack monitoring service or application emitting the metric that is evaluated by the alarm. */ namespace?: pulumi.Input; /** * (Updatable) The resource group OCID. * * ** 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 */ resourceType?: pulumi.Input; /** * The current lifecycle state of the monitoring template */ state?: pulumi.Input; /** * The current status of the monitoring template i.e. whether it is Published or Unpublished */ status?: pulumi.Input; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The date and time the alarm condition was created. Format defined by RFC3339. */ timeCreated?: pulumi.Input; /** * The date and time the alarm condition was updated. Format defined by RFC3339. */ timeUpdated?: pulumi.Input; } /** * The set of arguments for constructing a MonitoringTemplateAlarmCondition resource. */ export interface MonitoringTemplateAlarmConditionArgs { /** * (Updatable) The OCID of the composite resource type like EBS/PEOPLE_SOFT. */ compositeType?: pulumi.Input; /** * (Updatable) Type of defined monitoring template. */ conditionType: pulumi.Input; /** * (Updatable) Monitoring template conditions. */ conditions: pulumi.Input[]>; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) The metric name. */ metricName: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the monitoring template. */ monitoringTemplateId: pulumi.Input; /** * (Updatable) The stack monitoring service or application emitting the metric that is evaluated by the alarm. */ namespace: pulumi.Input; /** * (Updatable) The resource group OCID. * * ** 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 */ resourceType: pulumi.Input; } //# sourceMappingURL=monitoringTemplateAlarmCondition.d.ts.map