import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Monitoring Template resource in Oracle Cloud Infrastructure Stack Monitoring service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/stack-monitoring/latest/MonitoringTemplate * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/stack_monitoring * * Creates a new monitoring template for a given compartment. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testMonitoringTemplate = new oci.stackmonitoring.MonitoringTemplate("test_monitoring_template", { * compartmentId: compartmentId, * destinations: monitoringTemplateDestinations, * displayName: monitoringTemplateDisplayName, * members: [{ * id: monitoringTemplateMembersId, * type: monitoringTemplateMembersType, * compositeType: monitoringTemplateMembersCompositeType, * }], * definedTags: { * "foo-namespace.bar-key": "value", * }, * description: monitoringTemplateDescription, * freeformTags: { * "bar-key": "value", * }, * isAlarmsEnabled: monitoringTemplateIsAlarmsEnabled === "true", * isSplitNotificationEnabled: monitoringTemplateIsSplitNotificationEnabled === "true", * messageFormat: monitoringTemplateMessageFormat, * repeatNotificationDuration: monitoringTemplateRepeatNotificationDuration, * }); * ``` * * ## Import * * MonitoringTemplates can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:StackMonitoring/monitoringTemplate:MonitoringTemplate test_monitoring_template "id" * ``` */ export declare class MonitoringTemplate extends pulumi.CustomResource { /** * Get an existing MonitoringTemplate 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?: MonitoringTemplateState, opts?: pulumi.CustomResourceOptions): MonitoringTemplate; /** * Returns true if the given object is an instance of MonitoringTemplate. 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 MonitoringTemplate; /** * The OCID of the compartment containing the monitoringTemplate. */ readonly compartmentId: 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) A user-friendly description for the monitoring template. It does not have to be unique, and it's changeable. Avoid entering confidential information. */ readonly description: pulumi.Output; /** * (Updatable) A list of destinations for alarm notifications. Each destination is represented by the OCID of a related resource, such as a topic. */ readonly destinations: pulumi.Output; /** * (Updatable) A user-friendly name for the monitoring template. It is unique and mutable in nature. Avoid entering confidential information. */ readonly displayName: pulumi.Output; /** * (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) Whether the alarm is enabled or disabled, it will be Enabled by default. */ readonly isAlarmsEnabled: pulumi.Output; /** * (Updatable) Whether the alarm notification is enabled or disabled, it will be Enabled by default. */ readonly isSplitNotificationEnabled: pulumi.Output; /** * (Updatable) List of members of this monitoring template */ readonly members: pulumi.Output; /** * (Updatable) The format to use for alarm notifications. */ readonly messageFormat: pulumi.Output; /** * (Updatable) The frequency for re-submitting alarm notifications, if the alarm keeps firing without interruption. Format defined by ISO 8601. For example, PT4H indicates four hours. Minimum- PT1M. Maximum - P30D. * * ** 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 repeatNotificationDuration: 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 Applied or NotApplied. */ 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; }>; /** * Tenant Identifier [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) */ readonly tenantId: pulumi.Output; /** * The date and time the monitoringTemplate was created. Format defined by RFC3339. */ readonly timeCreated: pulumi.Output; /** * The date and time the monitoringTemplate was last updated. Format defined by RFC3339. */ readonly timeUpdated: pulumi.Output; /** * Total Alarm Conditions */ readonly totalAlarmConditions: pulumi.Output; /** * Total Applied Alarm Conditions */ readonly totalAppliedAlarmConditions: pulumi.Output; /** * Create a MonitoringTemplate 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: MonitoringTemplateArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering MonitoringTemplate resources. */ export interface MonitoringTemplateState { /** * The OCID of the compartment containing the monitoringTemplate. */ compartmentId?: 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) A user-friendly description for the monitoring template. It does not have to be unique, and it's changeable. Avoid entering confidential information. */ description?: pulumi.Input; /** * (Updatable) A list of destinations for alarm notifications. Each destination is represented by the OCID of a related resource, such as a topic. */ destinations?: pulumi.Input[] | undefined>; /** * (Updatable) A user-friendly name for the monitoring template. It is unique and mutable in nature. Avoid entering confidential information. */ displayName?: pulumi.Input; /** * (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) Whether the alarm is enabled or disabled, it will be Enabled by default. */ isAlarmsEnabled?: pulumi.Input; /** * (Updatable) Whether the alarm notification is enabled or disabled, it will be Enabled by default. */ isSplitNotificationEnabled?: pulumi.Input; /** * (Updatable) List of members of this monitoring template */ members?: pulumi.Input[] | undefined>; /** * (Updatable) The format to use for alarm notifications. */ messageFormat?: pulumi.Input; /** * (Updatable) The frequency for re-submitting alarm notifications, if the alarm keeps firing without interruption. Format defined by ISO 8601. For example, PT4H indicates four hours. Minimum- PT1M. Maximum - P30D. * * ** 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 */ repeatNotificationDuration?: 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 Applied or NotApplied. */ 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>; /** * Tenant Identifier [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) */ tenantId?: pulumi.Input; /** * The date and time the monitoringTemplate was created. Format defined by RFC3339. */ timeCreated?: pulumi.Input; /** * The date and time the monitoringTemplate was last updated. Format defined by RFC3339. */ timeUpdated?: pulumi.Input; /** * Total Alarm Conditions */ totalAlarmConditions?: pulumi.Input; /** * Total Applied Alarm Conditions */ totalAppliedAlarmConditions?: pulumi.Input; } /** * The set of arguments for constructing a MonitoringTemplate resource. */ export interface MonitoringTemplateArgs { /** * The OCID of the compartment containing the monitoringTemplate. */ compartmentId: 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) A user-friendly description for the monitoring template. It does not have to be unique, and it's changeable. Avoid entering confidential information. */ description?: pulumi.Input; /** * (Updatable) A list of destinations for alarm notifications. Each destination is represented by the OCID of a related resource, such as a topic. */ destinations: pulumi.Input[]>; /** * (Updatable) A user-friendly name for the monitoring template. It is unique and mutable in nature. Avoid entering confidential information. */ displayName: pulumi.Input; /** * (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) Whether the alarm is enabled or disabled, it will be Enabled by default. */ isAlarmsEnabled?: pulumi.Input; /** * (Updatable) Whether the alarm notification is enabled or disabled, it will be Enabled by default. */ isSplitNotificationEnabled?: pulumi.Input; /** * (Updatable) List of members of this monitoring template */ members: pulumi.Input[]>; /** * (Updatable) The format to use for alarm notifications. */ messageFormat?: pulumi.Input; /** * (Updatable) The frequency for re-submitting alarm notifications, if the alarm keeps firing without interruption. Format defined by ISO 8601. For example, PT4H indicates four hours. Minimum- PT1M. Maximum - P30D. * * ** 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 */ repeatNotificationDuration?: pulumi.Input; } //# sourceMappingURL=monitoringTemplate.d.ts.map