oci.Monitoring.AlarmSuppression
Explore with Pulumi AI
This resource provides the Alarm Suppression resource in Oracle Cloud Infrastructure Monitoring service.
Creates a new alarm suppression at the specified level (alarm-wide or dimension-specific). For more information, see Adding an Alarm-wide Suppression and Adding a Dimension-Specific Alarm Suppression.
For important limits information, see Limits on Monitoring.
This call is subject to a Monitoring limit that applies to the total number of requests across all alarm operations. Monitoring might throttle this call to reject an otherwise valid request when the total rate of alarm operations exceeds 10 requests, or transactions, per second (TPS) for a given tenancy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAlarmSuppression = new oci.monitoring.AlarmSuppression("test_alarm_suppression", {
alarmSuppressionTarget: {
targetType: alarmSuppressionAlarmSuppressionTargetTargetType,
alarmId: testAlarm.id,
compartmentId: compartmentId,
compartmentIdInSubtree: alarmSuppressionAlarmSuppressionTargetCompartmentIdInSubtree,
},
displayName: alarmSuppressionDisplayName,
timeSuppressFrom: alarmSuppressionTimeSuppressFrom,
timeSuppressUntil: alarmSuppressionTimeSuppressUntil,
definedTags: {
"Operations.CostCenter": "42",
},
description: alarmSuppressionDescription,
dimensions: alarmSuppressionDimensions,
freeformTags: {
Department: "Finance",
},
level: alarmSuppressionLevel,
suppressionConditions: [{
conditionType: alarmSuppressionSuppressionConditionsConditionType,
suppressionDuration: alarmSuppressionSuppressionConditionsSuppressionDuration,
suppressionRecurrence: alarmSuppressionSuppressionConditionsSuppressionRecurrence,
}],
});
import pulumi
import pulumi_oci as oci
test_alarm_suppression = oci.monitoring.AlarmSuppression("test_alarm_suppression",
alarm_suppression_target={
"target_type": alarm_suppression_alarm_suppression_target_target_type,
"alarm_id": test_alarm["id"],
"compartment_id": compartment_id,
"compartment_id_in_subtree": alarm_suppression_alarm_suppression_target_compartment_id_in_subtree,
},
display_name=alarm_suppression_display_name,
time_suppress_from=alarm_suppression_time_suppress_from,
time_suppress_until=alarm_suppression_time_suppress_until,
defined_tags={
"Operations.CostCenter": "42",
},
description=alarm_suppression_description,
dimensions=alarm_suppression_dimensions,
freeform_tags={
"Department": "Finance",
},
level=alarm_suppression_level,
suppression_conditions=[{
"condition_type": alarm_suppression_suppression_conditions_condition_type,
"suppression_duration": alarm_suppression_suppression_conditions_suppression_duration,
"suppression_recurrence": alarm_suppression_suppression_conditions_suppression_recurrence,
}])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Monitoring"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Monitoring.NewAlarmSuppression(ctx, "test_alarm_suppression", &Monitoring.AlarmSuppressionArgs{
AlarmSuppressionTarget: &monitoring.AlarmSuppressionAlarmSuppressionTargetArgs{
TargetType: pulumi.Any(alarmSuppressionAlarmSuppressionTargetTargetType),
AlarmId: pulumi.Any(testAlarm.Id),
CompartmentId: pulumi.Any(compartmentId),
CompartmentIdInSubtree: pulumi.Any(alarmSuppressionAlarmSuppressionTargetCompartmentIdInSubtree),
},
DisplayName: pulumi.Any(alarmSuppressionDisplayName),
TimeSuppressFrom: pulumi.Any(alarmSuppressionTimeSuppressFrom),
TimeSuppressUntil: pulumi.Any(alarmSuppressionTimeSuppressUntil),
DefinedTags: pulumi.StringMap{
"Operations.CostCenter": pulumi.String("42"),
},
Description: pulumi.Any(alarmSuppressionDescription),
Dimensions: pulumi.Any(alarmSuppressionDimensions),
FreeformTags: pulumi.StringMap{
"Department": pulumi.String("Finance"),
},
Level: pulumi.Any(alarmSuppressionLevel),
SuppressionConditions: monitoring.AlarmSuppressionSuppressionConditionArray{
&monitoring.AlarmSuppressionSuppressionConditionArgs{
ConditionType: pulumi.Any(alarmSuppressionSuppressionConditionsConditionType),
SuppressionDuration: pulumi.Any(alarmSuppressionSuppressionConditionsSuppressionDuration),
SuppressionRecurrence: pulumi.Any(alarmSuppressionSuppressionConditionsSuppressionRecurrence),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testAlarmSuppression = new Oci.Monitoring.AlarmSuppression("test_alarm_suppression", new()
{
AlarmSuppressionTarget = new Oci.Monitoring.Inputs.AlarmSuppressionAlarmSuppressionTargetArgs
{
TargetType = alarmSuppressionAlarmSuppressionTargetTargetType,
AlarmId = testAlarm.Id,
CompartmentId = compartmentId,
CompartmentIdInSubtree = alarmSuppressionAlarmSuppressionTargetCompartmentIdInSubtree,
},
DisplayName = alarmSuppressionDisplayName,
TimeSuppressFrom = alarmSuppressionTimeSuppressFrom,
TimeSuppressUntil = alarmSuppressionTimeSuppressUntil,
DefinedTags =
{
{ "Operations.CostCenter", "42" },
},
Description = alarmSuppressionDescription,
Dimensions = alarmSuppressionDimensions,
FreeformTags =
{
{ "Department", "Finance" },
},
Level = alarmSuppressionLevel,
SuppressionConditions = new[]
{
new Oci.Monitoring.Inputs.AlarmSuppressionSuppressionConditionArgs
{
ConditionType = alarmSuppressionSuppressionConditionsConditionType,
SuppressionDuration = alarmSuppressionSuppressionConditionsSuppressionDuration,
SuppressionRecurrence = alarmSuppressionSuppressionConditionsSuppressionRecurrence,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Monitoring.AlarmSuppression;
import com.pulumi.oci.Monitoring.AlarmSuppressionArgs;
import com.pulumi.oci.Monitoring.inputs.AlarmSuppressionAlarmSuppressionTargetArgs;
import com.pulumi.oci.Monitoring.inputs.AlarmSuppressionSuppressionConditionArgs;
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 testAlarmSuppression = new AlarmSuppression("testAlarmSuppression", AlarmSuppressionArgs.builder()
.alarmSuppressionTarget(AlarmSuppressionAlarmSuppressionTargetArgs.builder()
.targetType(alarmSuppressionAlarmSuppressionTargetTargetType)
.alarmId(testAlarm.id())
.compartmentId(compartmentId)
.compartmentIdInSubtree(alarmSuppressionAlarmSuppressionTargetCompartmentIdInSubtree)
.build())
.displayName(alarmSuppressionDisplayName)
.timeSuppressFrom(alarmSuppressionTimeSuppressFrom)
.timeSuppressUntil(alarmSuppressionTimeSuppressUntil)
.definedTags(Map.of("Operations.CostCenter", "42"))
.description(alarmSuppressionDescription)
.dimensions(alarmSuppressionDimensions)
.freeformTags(Map.of("Department", "Finance"))
.level(alarmSuppressionLevel)
.suppressionConditions(AlarmSuppressionSuppressionConditionArgs.builder()
.conditionType(alarmSuppressionSuppressionConditionsConditionType)
.suppressionDuration(alarmSuppressionSuppressionConditionsSuppressionDuration)
.suppressionRecurrence(alarmSuppressionSuppressionConditionsSuppressionRecurrence)
.build())
.build());
}
}
resources:
testAlarmSuppression:
type: oci:Monitoring:AlarmSuppression
name: test_alarm_suppression
properties:
alarmSuppressionTarget:
targetType: ${alarmSuppressionAlarmSuppressionTargetTargetType}
alarmId: ${testAlarm.id}
compartmentId: ${compartmentId}
compartmentIdInSubtree: ${alarmSuppressionAlarmSuppressionTargetCompartmentIdInSubtree}
displayName: ${alarmSuppressionDisplayName}
timeSuppressFrom: ${alarmSuppressionTimeSuppressFrom}
timeSuppressUntil: ${alarmSuppressionTimeSuppressUntil}
definedTags:
Operations.CostCenter: '42'
description: ${alarmSuppressionDescription}
dimensions: ${alarmSuppressionDimensions}
freeformTags:
Department: Finance
level: ${alarmSuppressionLevel}
suppressionConditions:
- conditionType: ${alarmSuppressionSuppressionConditionsConditionType}
suppressionDuration: ${alarmSuppressionSuppressionConditionsSuppressionDuration}
suppressionRecurrence: ${alarmSuppressionSuppressionConditionsSuppressionRecurrence}
Create AlarmSuppression Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AlarmSuppression(name: string, args: AlarmSuppressionArgs, opts?: CustomResourceOptions);
@overload
def AlarmSuppression(resource_name: str,
args: AlarmSuppressionInitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AlarmSuppression(resource_name: str,
opts: Optional[ResourceOptions] = None,
alarm_suppression_target: Optional[_monitoring.AlarmSuppressionAlarmSuppressionTargetArgs] = None,
display_name: Optional[str] = None,
time_suppress_from: Optional[str] = None,
time_suppress_until: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
dimensions: Optional[Mapping[str, str]] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
level: Optional[str] = None,
suppression_conditions: Optional[Sequence[_monitoring.AlarmSuppressionSuppressionConditionArgs]] = None)
func NewAlarmSuppression(ctx *Context, name string, args AlarmSuppressionArgs, opts ...ResourceOption) (*AlarmSuppression, error)
public AlarmSuppression(string name, AlarmSuppressionArgs args, CustomResourceOptions? opts = null)
public AlarmSuppression(String name, AlarmSuppressionArgs args)
public AlarmSuppression(String name, AlarmSuppressionArgs args, CustomResourceOptions options)
type: oci:Monitoring:AlarmSuppression
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AlarmSuppressionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AlarmSuppressionInitArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AlarmSuppressionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AlarmSuppressionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AlarmSuppressionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var alarmSuppressionResource = new Oci.Monitoring.AlarmSuppression("alarmSuppressionResource", new()
{
AlarmSuppressionTarget = new Oci.Monitoring.Inputs.AlarmSuppressionAlarmSuppressionTargetArgs
{
TargetType = "string",
AlarmId = "string",
CompartmentId = "string",
CompartmentIdInSubtree = false,
},
DisplayName = "string",
TimeSuppressFrom = "string",
TimeSuppressUntil = "string",
DefinedTags =
{
{ "string", "string" },
},
Description = "string",
Dimensions =
{
{ "string", "string" },
},
FreeformTags =
{
{ "string", "string" },
},
Level = "string",
SuppressionConditions = new[]
{
new Oci.Monitoring.Inputs.AlarmSuppressionSuppressionConditionArgs
{
ConditionType = "string",
SuppressionDuration = "string",
SuppressionRecurrence = "string",
},
},
});
example, err := Monitoring.NewAlarmSuppression(ctx, "alarmSuppressionResource", &Monitoring.AlarmSuppressionArgs{
AlarmSuppressionTarget: &monitoring.AlarmSuppressionAlarmSuppressionTargetArgs{
TargetType: pulumi.String("string"),
AlarmId: pulumi.String("string"),
CompartmentId: pulumi.String("string"),
CompartmentIdInSubtree: pulumi.Bool(false),
},
DisplayName: pulumi.String("string"),
TimeSuppressFrom: pulumi.String("string"),
TimeSuppressUntil: pulumi.String("string"),
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
Dimensions: pulumi.StringMap{
"string": pulumi.String("string"),
},
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Level: pulumi.String("string"),
SuppressionConditions: monitoring.AlarmSuppressionSuppressionConditionArray{
&monitoring.AlarmSuppressionSuppressionConditionArgs{
ConditionType: pulumi.String("string"),
SuppressionDuration: pulumi.String("string"),
SuppressionRecurrence: pulumi.String("string"),
},
},
})
var alarmSuppressionResource = new AlarmSuppression("alarmSuppressionResource", AlarmSuppressionArgs.builder()
.alarmSuppressionTarget(AlarmSuppressionAlarmSuppressionTargetArgs.builder()
.targetType("string")
.alarmId("string")
.compartmentId("string")
.compartmentIdInSubtree(false)
.build())
.displayName("string")
.timeSuppressFrom("string")
.timeSuppressUntil("string")
.definedTags(Map.of("string", "string"))
.description("string")
.dimensions(Map.of("string", "string"))
.freeformTags(Map.of("string", "string"))
.level("string")
.suppressionConditions(AlarmSuppressionSuppressionConditionArgs.builder()
.conditionType("string")
.suppressionDuration("string")
.suppressionRecurrence("string")
.build())
.build());
alarm_suppression_resource = oci.monitoring.AlarmSuppression("alarmSuppressionResource",
alarm_suppression_target={
"target_type": "string",
"alarm_id": "string",
"compartment_id": "string",
"compartment_id_in_subtree": False,
},
display_name="string",
time_suppress_from="string",
time_suppress_until="string",
defined_tags={
"string": "string",
},
description="string",
dimensions={
"string": "string",
},
freeform_tags={
"string": "string",
},
level="string",
suppression_conditions=[{
"condition_type": "string",
"suppression_duration": "string",
"suppression_recurrence": "string",
}])
const alarmSuppressionResource = new oci.monitoring.AlarmSuppression("alarmSuppressionResource", {
alarmSuppressionTarget: {
targetType: "string",
alarmId: "string",
compartmentId: "string",
compartmentIdInSubtree: false,
},
displayName: "string",
timeSuppressFrom: "string",
timeSuppressUntil: "string",
definedTags: {
string: "string",
},
description: "string",
dimensions: {
string: "string",
},
freeformTags: {
string: "string",
},
level: "string",
suppressionConditions: [{
conditionType: "string",
suppressionDuration: "string",
suppressionRecurrence: "string",
}],
});
type: oci:Monitoring:AlarmSuppression
properties:
alarmSuppressionTarget:
alarmId: string
compartmentId: string
compartmentIdInSubtree: false
targetType: string
definedTags:
string: string
description: string
dimensions:
string: string
displayName: string
freeformTags:
string: string
level: string
suppressionConditions:
- conditionType: string
suppressionDuration: string
suppressionRecurrence: string
timeSuppressFrom: string
timeSuppressUntil: string
AlarmSuppression Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AlarmSuppression resource accepts the following input properties:
- Alarm
Suppression AlarmTarget Suppression Alarm Suppression Target - The target of the alarm suppression.
- Display
Name string - A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
- Time
Suppress stringFrom - The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2023-02-01T01:02:29.600Z
- Time
Suppress stringUntil The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2023-02-01T02:02:29.600Z
** 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
- Dictionary<string, string>
- Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example:
{"Operations.CostCenter": "42"}
- Description string
Human-readable reason for this alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
Oracle recommends including tracking information for the event or associated work, such as a ticket number.
Example:
Planned outage due to change IT-1234.
- Dimensions Dictionary<string, string>
A filter to suppress only alarm state entries that include the set of specified dimension key-value pairs. If you specify {"availabilityDomain": "phx-ad-1"} and the alarm state entry corresponds to the set {"availabilityDomain": "phx-ad-1" and "resourceId": "instance.region1.phx.exampleuniqueID"}, then this alarm will be included for suppression.
This is required only when the value of level is
DIMENSION
. If required, the value cannot be an empty object. Only a single value is allowed per key. No grouping of multiple values is allowed under the same key. Maximum characters (after serialization): 4000. This maximum satisfies typical use cases. The response for an exceeded maximum isHTTP 400
with an "dimensions values are too long" message.- Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"Department": "Finance"}
- Level string
The level of this alarm suppression.
ALARM
indicates a suppression of the entire alarm, regardless of dimension.DIMENSION
indicates a suppression configured for specified dimensions.Defaut:
DIMENSION
- Suppression
Conditions List<AlarmSuppression Suppression Condition> - Array of all preconditions for alarm suppression. Example:
[{ conditionType: "RECURRENCE", suppressionRecurrence: "FRQ=DAILY;BYHOUR=10", suppressionDuration: "PT1H" }]
- Alarm
Suppression AlarmTarget Suppression Alarm Suppression Target Args - The target of the alarm suppression.
- Display
Name string - A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
- Time
Suppress stringFrom - The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2023-02-01T01:02:29.600Z
- Time
Suppress stringUntil The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2023-02-01T02:02:29.600Z
** 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
- map[string]string
- Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example:
{"Operations.CostCenter": "42"}
- Description string
Human-readable reason for this alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
Oracle recommends including tracking information for the event or associated work, such as a ticket number.
Example:
Planned outage due to change IT-1234.
- Dimensions map[string]string
A filter to suppress only alarm state entries that include the set of specified dimension key-value pairs. If you specify {"availabilityDomain": "phx-ad-1"} and the alarm state entry corresponds to the set {"availabilityDomain": "phx-ad-1" and "resourceId": "instance.region1.phx.exampleuniqueID"}, then this alarm will be included for suppression.
This is required only when the value of level is
DIMENSION
. If required, the value cannot be an empty object. Only a single value is allowed per key. No grouping of multiple values is allowed under the same key. Maximum characters (after serialization): 4000. This maximum satisfies typical use cases. The response for an exceeded maximum isHTTP 400
with an "dimensions values are too long" message.- map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"Department": "Finance"}
- Level string
The level of this alarm suppression.
ALARM
indicates a suppression of the entire alarm, regardless of dimension.DIMENSION
indicates a suppression configured for specified dimensions.Defaut:
DIMENSION
- Suppression
Conditions []AlarmSuppression Suppression Condition Args - Array of all preconditions for alarm suppression. Example:
[{ conditionType: "RECURRENCE", suppressionRecurrence: "FRQ=DAILY;BYHOUR=10", suppressionDuration: "PT1H" }]
- alarm
Suppression AlarmTarget Suppression Alarm Suppression Target - The target of the alarm suppression.
- display
Name String - A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
- time
Suppress StringFrom - The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2023-02-01T01:02:29.600Z
- time
Suppress StringUntil The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2023-02-01T02:02:29.600Z
** 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
- Map<String,String>
- Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example:
{"Operations.CostCenter": "42"}
- description String
Human-readable reason for this alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
Oracle recommends including tracking information for the event or associated work, such as a ticket number.
Example:
Planned outage due to change IT-1234.
- dimensions Map<String,String>
A filter to suppress only alarm state entries that include the set of specified dimension key-value pairs. If you specify {"availabilityDomain": "phx-ad-1"} and the alarm state entry corresponds to the set {"availabilityDomain": "phx-ad-1" and "resourceId": "instance.region1.phx.exampleuniqueID"}, then this alarm will be included for suppression.
This is required only when the value of level is
DIMENSION
. If required, the value cannot be an empty object. Only a single value is allowed per key. No grouping of multiple values is allowed under the same key. Maximum characters (after serialization): 4000. This maximum satisfies typical use cases. The response for an exceeded maximum isHTTP 400
with an "dimensions values are too long" message.- Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"Department": "Finance"}
- level String
The level of this alarm suppression.
ALARM
indicates a suppression of the entire alarm, regardless of dimension.DIMENSION
indicates a suppression configured for specified dimensions.Defaut:
DIMENSION
- suppression
Conditions List<AlarmSuppression Suppression Condition> - Array of all preconditions for alarm suppression. Example:
[{ conditionType: "RECURRENCE", suppressionRecurrence: "FRQ=DAILY;BYHOUR=10", suppressionDuration: "PT1H" }]
- alarm
Suppression AlarmTarget Suppression Alarm Suppression Target - The target of the alarm suppression.
- display
Name string - A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
- time
Suppress stringFrom - The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2023-02-01T01:02:29.600Z
- time
Suppress stringUntil The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2023-02-01T02:02:29.600Z
** 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
- {[key: string]: string}
- Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example:
{"Operations.CostCenter": "42"}
- description string
Human-readable reason for this alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
Oracle recommends including tracking information for the event or associated work, such as a ticket number.
Example:
Planned outage due to change IT-1234.
- dimensions {[key: string]: string}
A filter to suppress only alarm state entries that include the set of specified dimension key-value pairs. If you specify {"availabilityDomain": "phx-ad-1"} and the alarm state entry corresponds to the set {"availabilityDomain": "phx-ad-1" and "resourceId": "instance.region1.phx.exampleuniqueID"}, then this alarm will be included for suppression.
This is required only when the value of level is
DIMENSION
. If required, the value cannot be an empty object. Only a single value is allowed per key. No grouping of multiple values is allowed under the same key. Maximum characters (after serialization): 4000. This maximum satisfies typical use cases. The response for an exceeded maximum isHTTP 400
with an "dimensions values are too long" message.- {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"Department": "Finance"}
- level string
The level of this alarm suppression.
ALARM
indicates a suppression of the entire alarm, regardless of dimension.DIMENSION
indicates a suppression configured for specified dimensions.Defaut:
DIMENSION
- suppression
Conditions AlarmSuppression Suppression Condition[] - Array of all preconditions for alarm suppression. Example:
[{ conditionType: "RECURRENCE", suppressionRecurrence: "FRQ=DAILY;BYHOUR=10", suppressionDuration: "PT1H" }]
- alarm_
suppression_ monitoring.target Alarm Suppression Alarm Suppression Target Args - The target of the alarm suppression.
- display_
name str - A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
- time_
suppress_ strfrom - The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2023-02-01T01:02:29.600Z
- time_
suppress_ struntil The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2023-02-01T02:02:29.600Z
** 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
- Mapping[str, str]
- Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example:
{"Operations.CostCenter": "42"}
- description str
Human-readable reason for this alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
Oracle recommends including tracking information for the event or associated work, such as a ticket number.
Example:
Planned outage due to change IT-1234.
- dimensions Mapping[str, str]
A filter to suppress only alarm state entries that include the set of specified dimension key-value pairs. If you specify {"availabilityDomain": "phx-ad-1"} and the alarm state entry corresponds to the set {"availabilityDomain": "phx-ad-1" and "resourceId": "instance.region1.phx.exampleuniqueID"}, then this alarm will be included for suppression.
This is required only when the value of level is
DIMENSION
. If required, the value cannot be an empty object. Only a single value is allowed per key. No grouping of multiple values is allowed under the same key. Maximum characters (after serialization): 4000. This maximum satisfies typical use cases. The response for an exceeded maximum isHTTP 400
with an "dimensions values are too long" message.- Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"Department": "Finance"}
- level str
The level of this alarm suppression.
ALARM
indicates a suppression of the entire alarm, regardless of dimension.DIMENSION
indicates a suppression configured for specified dimensions.Defaut:
DIMENSION
- suppression_
conditions Sequence[monitoring.Alarm Suppression Suppression Condition Args] - Array of all preconditions for alarm suppression. Example:
[{ conditionType: "RECURRENCE", suppressionRecurrence: "FRQ=DAILY;BYHOUR=10", suppressionDuration: "PT1H" }]
- alarm
Suppression Property MapTarget - The target of the alarm suppression.
- display
Name String - A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
- time
Suppress StringFrom - The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2023-02-01T01:02:29.600Z
- time
Suppress StringUntil The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2023-02-01T02:02:29.600Z
** 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
- Map<String>
- Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example:
{"Operations.CostCenter": "42"}
- description String
Human-readable reason for this alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
Oracle recommends including tracking information for the event or associated work, such as a ticket number.
Example:
Planned outage due to change IT-1234.
- dimensions Map<String>
A filter to suppress only alarm state entries that include the set of specified dimension key-value pairs. If you specify {"availabilityDomain": "phx-ad-1"} and the alarm state entry corresponds to the set {"availabilityDomain": "phx-ad-1" and "resourceId": "instance.region1.phx.exampleuniqueID"}, then this alarm will be included for suppression.
This is required only when the value of level is
DIMENSION
. If required, the value cannot be an empty object. Only a single value is allowed per key. No grouping of multiple values is allowed under the same key. Maximum characters (after serialization): 4000. This maximum satisfies typical use cases. The response for an exceeded maximum isHTTP 400
with an "dimensions values are too long" message.- Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"Department": "Finance"}
- level String
The level of this alarm suppression.
ALARM
indicates a suppression of the entire alarm, regardless of dimension.DIMENSION
indicates a suppression configured for specified dimensions.Defaut:
DIMENSION
- suppression
Conditions List<Property Map> - Array of all preconditions for alarm suppression. Example:
[{ conditionType: "RECURRENCE", suppressionRecurrence: "FRQ=DAILY;BYHOUR=10", suppressionDuration: "PT1H" }]
Outputs
All input properties are implicitly available as output properties. Additionally, the AlarmSuppression resource produces the following output properties:
- Compartment
Id string - The OCID of the compartment containing the alarm suppression.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The current lifecycle state of the alarm suppression. Example:
DELETED
- Time
Created string - The date and time the alarm suppression was created. Format defined by RFC3339. Example:
2018-02-01T01:02:29.600Z
- Time
Updated string - The date and time the alarm suppression was last updated (deleted). Format defined by RFC3339. Example:
2018-02-03T01:02:29.600Z
- Compartment
Id string - The OCID of the compartment containing the alarm suppression.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The current lifecycle state of the alarm suppression. Example:
DELETED
- Time
Created string - The date and time the alarm suppression was created. Format defined by RFC3339. Example:
2018-02-01T01:02:29.600Z
- Time
Updated string - The date and time the alarm suppression was last updated (deleted). Format defined by RFC3339. Example:
2018-02-03T01:02:29.600Z
- compartment
Id String - The OCID of the compartment containing the alarm suppression.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The current lifecycle state of the alarm suppression. Example:
DELETED
- time
Created String - The date and time the alarm suppression was created. Format defined by RFC3339. Example:
2018-02-01T01:02:29.600Z
- time
Updated String - The date and time the alarm suppression was last updated (deleted). Format defined by RFC3339. Example:
2018-02-03T01:02:29.600Z
- compartment
Id string - The OCID of the compartment containing the alarm suppression.
- id string
- The provider-assigned unique ID for this managed resource.
- state string
- The current lifecycle state of the alarm suppression. Example:
DELETED
- time
Created string - The date and time the alarm suppression was created. Format defined by RFC3339. Example:
2018-02-01T01:02:29.600Z
- time
Updated string - The date and time the alarm suppression was last updated (deleted). Format defined by RFC3339. Example:
2018-02-03T01:02:29.600Z
- compartment_
id str - The OCID of the compartment containing the alarm suppression.
- id str
- The provider-assigned unique ID for this managed resource.
- state str
- The current lifecycle state of the alarm suppression. Example:
DELETED
- time_
created str - The date and time the alarm suppression was created. Format defined by RFC3339. Example:
2018-02-01T01:02:29.600Z
- time_
updated str - The date and time the alarm suppression was last updated (deleted). Format defined by RFC3339. Example:
2018-02-03T01:02:29.600Z
- compartment
Id String - The OCID of the compartment containing the alarm suppression.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The current lifecycle state of the alarm suppression. Example:
DELETED
- time
Created String - The date and time the alarm suppression was created. Format defined by RFC3339. Example:
2018-02-01T01:02:29.600Z
- time
Updated String - The date and time the alarm suppression was last updated (deleted). Format defined by RFC3339. Example:
2018-02-03T01:02:29.600Z
Look up Existing AlarmSuppression Resource
Get an existing AlarmSuppression resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AlarmSuppressionState, opts?: CustomResourceOptions): AlarmSuppression
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alarm_suppression_target: Optional[_monitoring.AlarmSuppressionAlarmSuppressionTargetArgs] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
dimensions: Optional[Mapping[str, str]] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
level: Optional[str] = None,
state: Optional[str] = None,
suppression_conditions: Optional[Sequence[_monitoring.AlarmSuppressionSuppressionConditionArgs]] = None,
time_created: Optional[str] = None,
time_suppress_from: Optional[str] = None,
time_suppress_until: Optional[str] = None,
time_updated: Optional[str] = None) -> AlarmSuppression
func GetAlarmSuppression(ctx *Context, name string, id IDInput, state *AlarmSuppressionState, opts ...ResourceOption) (*AlarmSuppression, error)
public static AlarmSuppression Get(string name, Input<string> id, AlarmSuppressionState? state, CustomResourceOptions? opts = null)
public static AlarmSuppression get(String name, Output<String> id, AlarmSuppressionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Alarm
Suppression AlarmTarget Suppression Alarm Suppression Target - The target of the alarm suppression.
- Compartment
Id string - The OCID of the compartment containing the alarm suppression.
- Dictionary<string, string>
- Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example:
{"Operations.CostCenter": "42"}
- Description string
Human-readable reason for this alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
Oracle recommends including tracking information for the event or associated work, such as a ticket number.
Example:
Planned outage due to change IT-1234.
- Dimensions Dictionary<string, string>
A filter to suppress only alarm state entries that include the set of specified dimension key-value pairs. If you specify {"availabilityDomain": "phx-ad-1"} and the alarm state entry corresponds to the set {"availabilityDomain": "phx-ad-1" and "resourceId": "instance.region1.phx.exampleuniqueID"}, then this alarm will be included for suppression.
This is required only when the value of level is
DIMENSION
. If required, the value cannot be an empty object. Only a single value is allowed per key. No grouping of multiple values is allowed under the same key. Maximum characters (after serialization): 4000. This maximum satisfies typical use cases. The response for an exceeded maximum isHTTP 400
with an "dimensions values are too long" message.- Display
Name string - A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
- Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"Department": "Finance"}
- Level string
The level of this alarm suppression.
ALARM
indicates a suppression of the entire alarm, regardless of dimension.DIMENSION
indicates a suppression configured for specified dimensions.Defaut:
DIMENSION
- State string
- The current lifecycle state of the alarm suppression. Example:
DELETED
- Suppression
Conditions List<AlarmSuppression Suppression Condition> - Array of all preconditions for alarm suppression. Example:
[{ conditionType: "RECURRENCE", suppressionRecurrence: "FRQ=DAILY;BYHOUR=10", suppressionDuration: "PT1H" }]
- Time
Created string - The date and time the alarm suppression was created. Format defined by RFC3339. Example:
2018-02-01T01:02:29.600Z
- Time
Suppress stringFrom - The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2023-02-01T01:02:29.600Z
- Time
Suppress stringUntil The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2023-02-01T02:02:29.600Z
** 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
- Time
Updated string - The date and time the alarm suppression was last updated (deleted). Format defined by RFC3339. Example:
2018-02-03T01:02:29.600Z
- Alarm
Suppression AlarmTarget Suppression Alarm Suppression Target Args - The target of the alarm suppression.
- Compartment
Id string - The OCID of the compartment containing the alarm suppression.
- map[string]string
- Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example:
{"Operations.CostCenter": "42"}
- Description string
Human-readable reason for this alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
Oracle recommends including tracking information for the event or associated work, such as a ticket number.
Example:
Planned outage due to change IT-1234.
- Dimensions map[string]string
A filter to suppress only alarm state entries that include the set of specified dimension key-value pairs. If you specify {"availabilityDomain": "phx-ad-1"} and the alarm state entry corresponds to the set {"availabilityDomain": "phx-ad-1" and "resourceId": "instance.region1.phx.exampleuniqueID"}, then this alarm will be included for suppression.
This is required only when the value of level is
DIMENSION
. If required, the value cannot be an empty object. Only a single value is allowed per key. No grouping of multiple values is allowed under the same key. Maximum characters (after serialization): 4000. This maximum satisfies typical use cases. The response for an exceeded maximum isHTTP 400
with an "dimensions values are too long" message.- Display
Name string - A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
- map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"Department": "Finance"}
- Level string
The level of this alarm suppression.
ALARM
indicates a suppression of the entire alarm, regardless of dimension.DIMENSION
indicates a suppression configured for specified dimensions.Defaut:
DIMENSION
- State string
- The current lifecycle state of the alarm suppression. Example:
DELETED
- Suppression
Conditions []AlarmSuppression Suppression Condition Args - Array of all preconditions for alarm suppression. Example:
[{ conditionType: "RECURRENCE", suppressionRecurrence: "FRQ=DAILY;BYHOUR=10", suppressionDuration: "PT1H" }]
- Time
Created string - The date and time the alarm suppression was created. Format defined by RFC3339. Example:
2018-02-01T01:02:29.600Z
- Time
Suppress stringFrom - The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2023-02-01T01:02:29.600Z
- Time
Suppress stringUntil The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2023-02-01T02:02:29.600Z
** 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
- Time
Updated string - The date and time the alarm suppression was last updated (deleted). Format defined by RFC3339. Example:
2018-02-03T01:02:29.600Z
- alarm
Suppression AlarmTarget Suppression Alarm Suppression Target - The target of the alarm suppression.
- compartment
Id String - The OCID of the compartment containing the alarm suppression.
- Map<String,String>
- Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example:
{"Operations.CostCenter": "42"}
- description String
Human-readable reason for this alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
Oracle recommends including tracking information for the event or associated work, such as a ticket number.
Example:
Planned outage due to change IT-1234.
- dimensions Map<String,String>
A filter to suppress only alarm state entries that include the set of specified dimension key-value pairs. If you specify {"availabilityDomain": "phx-ad-1"} and the alarm state entry corresponds to the set {"availabilityDomain": "phx-ad-1" and "resourceId": "instance.region1.phx.exampleuniqueID"}, then this alarm will be included for suppression.
This is required only when the value of level is
DIMENSION
. If required, the value cannot be an empty object. Only a single value is allowed per key. No grouping of multiple values is allowed under the same key. Maximum characters (after serialization): 4000. This maximum satisfies typical use cases. The response for an exceeded maximum isHTTP 400
with an "dimensions values are too long" message.- display
Name String - A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"Department": "Finance"}
- level String
The level of this alarm suppression.
ALARM
indicates a suppression of the entire alarm, regardless of dimension.DIMENSION
indicates a suppression configured for specified dimensions.Defaut:
DIMENSION
- state String
- The current lifecycle state of the alarm suppression. Example:
DELETED
- suppression
Conditions List<AlarmSuppression Suppression Condition> - Array of all preconditions for alarm suppression. Example:
[{ conditionType: "RECURRENCE", suppressionRecurrence: "FRQ=DAILY;BYHOUR=10", suppressionDuration: "PT1H" }]
- time
Created String - The date and time the alarm suppression was created. Format defined by RFC3339. Example:
2018-02-01T01:02:29.600Z
- time
Suppress StringFrom - The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2023-02-01T01:02:29.600Z
- time
Suppress StringUntil The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2023-02-01T02:02:29.600Z
** 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
- time
Updated String - The date and time the alarm suppression was last updated (deleted). Format defined by RFC3339. Example:
2018-02-03T01:02:29.600Z
- alarm
Suppression AlarmTarget Suppression Alarm Suppression Target - The target of the alarm suppression.
- compartment
Id string - The OCID of the compartment containing the alarm suppression.
- {[key: string]: string}
- Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example:
{"Operations.CostCenter": "42"}
- description string
Human-readable reason for this alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
Oracle recommends including tracking information for the event or associated work, such as a ticket number.
Example:
Planned outage due to change IT-1234.
- dimensions {[key: string]: string}
A filter to suppress only alarm state entries that include the set of specified dimension key-value pairs. If you specify {"availabilityDomain": "phx-ad-1"} and the alarm state entry corresponds to the set {"availabilityDomain": "phx-ad-1" and "resourceId": "instance.region1.phx.exampleuniqueID"}, then this alarm will be included for suppression.
This is required only when the value of level is
DIMENSION
. If required, the value cannot be an empty object. Only a single value is allowed per key. No grouping of multiple values is allowed under the same key. Maximum characters (after serialization): 4000. This maximum satisfies typical use cases. The response for an exceeded maximum isHTTP 400
with an "dimensions values are too long" message.- display
Name string - A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"Department": "Finance"}
- level string
The level of this alarm suppression.
ALARM
indicates a suppression of the entire alarm, regardless of dimension.DIMENSION
indicates a suppression configured for specified dimensions.Defaut:
DIMENSION
- state string
- The current lifecycle state of the alarm suppression. Example:
DELETED
- suppression
Conditions AlarmSuppression Suppression Condition[] - Array of all preconditions for alarm suppression. Example:
[{ conditionType: "RECURRENCE", suppressionRecurrence: "FRQ=DAILY;BYHOUR=10", suppressionDuration: "PT1H" }]
- time
Created string - The date and time the alarm suppression was created. Format defined by RFC3339. Example:
2018-02-01T01:02:29.600Z
- time
Suppress stringFrom - The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2023-02-01T01:02:29.600Z
- time
Suppress stringUntil The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2023-02-01T02:02:29.600Z
** 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
- time
Updated string - The date and time the alarm suppression was last updated (deleted). Format defined by RFC3339. Example:
2018-02-03T01:02:29.600Z
- alarm_
suppression_ monitoring.target Alarm Suppression Alarm Suppression Target Args - The target of the alarm suppression.
- compartment_
id str - The OCID of the compartment containing the alarm suppression.
- Mapping[str, str]
- Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example:
{"Operations.CostCenter": "42"}
- description str
Human-readable reason for this alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
Oracle recommends including tracking information for the event or associated work, such as a ticket number.
Example:
Planned outage due to change IT-1234.
- dimensions Mapping[str, str]
A filter to suppress only alarm state entries that include the set of specified dimension key-value pairs. If you specify {"availabilityDomain": "phx-ad-1"} and the alarm state entry corresponds to the set {"availabilityDomain": "phx-ad-1" and "resourceId": "instance.region1.phx.exampleuniqueID"}, then this alarm will be included for suppression.
This is required only when the value of level is
DIMENSION
. If required, the value cannot be an empty object. Only a single value is allowed per key. No grouping of multiple values is allowed under the same key. Maximum characters (after serialization): 4000. This maximum satisfies typical use cases. The response for an exceeded maximum isHTTP 400
with an "dimensions values are too long" message.- display_
name str - A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
- Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"Department": "Finance"}
- level str
The level of this alarm suppression.
ALARM
indicates a suppression of the entire alarm, regardless of dimension.DIMENSION
indicates a suppression configured for specified dimensions.Defaut:
DIMENSION
- state str
- The current lifecycle state of the alarm suppression. Example:
DELETED
- suppression_
conditions Sequence[monitoring.Alarm Suppression Suppression Condition Args] - Array of all preconditions for alarm suppression. Example:
[{ conditionType: "RECURRENCE", suppressionRecurrence: "FRQ=DAILY;BYHOUR=10", suppressionDuration: "PT1H" }]
- time_
created str - The date and time the alarm suppression was created. Format defined by RFC3339. Example:
2018-02-01T01:02:29.600Z
- time_
suppress_ strfrom - The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2023-02-01T01:02:29.600Z
- time_
suppress_ struntil The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2023-02-01T02:02:29.600Z
** 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
- time_
updated str - The date and time the alarm suppression was last updated (deleted). Format defined by RFC3339. Example:
2018-02-03T01:02:29.600Z
- alarm
Suppression Property MapTarget - The target of the alarm suppression.
- compartment
Id String - The OCID of the compartment containing the alarm suppression.
- Map<String>
- Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example:
{"Operations.CostCenter": "42"}
- description String
Human-readable reason for this alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
Oracle recommends including tracking information for the event or associated work, such as a ticket number.
Example:
Planned outage due to change IT-1234.
- dimensions Map<String>
A filter to suppress only alarm state entries that include the set of specified dimension key-value pairs. If you specify {"availabilityDomain": "phx-ad-1"} and the alarm state entry corresponds to the set {"availabilityDomain": "phx-ad-1" and "resourceId": "instance.region1.phx.exampleuniqueID"}, then this alarm will be included for suppression.
This is required only when the value of level is
DIMENSION
. If required, the value cannot be an empty object. Only a single value is allowed per key. No grouping of multiple values is allowed under the same key. Maximum characters (after serialization): 4000. This maximum satisfies typical use cases. The response for an exceeded maximum isHTTP 400
with an "dimensions values are too long" message.- display
Name String - A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"Department": "Finance"}
- level String
The level of this alarm suppression.
ALARM
indicates a suppression of the entire alarm, regardless of dimension.DIMENSION
indicates a suppression configured for specified dimensions.Defaut:
DIMENSION
- state String
- The current lifecycle state of the alarm suppression. Example:
DELETED
- suppression
Conditions List<Property Map> - Array of all preconditions for alarm suppression. Example:
[{ conditionType: "RECURRENCE", suppressionRecurrence: "FRQ=DAILY;BYHOUR=10", suppressionDuration: "PT1H" }]
- time
Created String - The date and time the alarm suppression was created. Format defined by RFC3339. Example:
2018-02-01T01:02:29.600Z
- time
Suppress StringFrom - The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2023-02-01T01:02:29.600Z
- time
Suppress StringUntil The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2023-02-01T02:02:29.600Z
** 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
- time
Updated String - The date and time the alarm suppression was last updated (deleted). Format defined by RFC3339. Example:
2018-02-03T01:02:29.600Z
Supporting Types
AlarmSuppressionAlarmSuppressionTarget, AlarmSuppressionAlarmSuppressionTargetArgs
- Target
Type string - The type of the alarm suppression target.
- Alarm
Id string - The OCID of the alarm that is the target of the alarm suppression.
- Compartment
Id string - The OCID of the compartment or tenancy that is the target of the alarm suppression. Example:
ocid1.compartment.oc1..exampleuniqueID
- Compartment
Id boolIn Subtree - When true, the alarm suppression targets all alarms under all compartments and subcompartments of the tenancy specified. The parameter can only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). When false, the alarm suppression targets only the alarms under the specified compartment.
- Target
Type string - The type of the alarm suppression target.
- Alarm
Id string - The OCID of the alarm that is the target of the alarm suppression.
- Compartment
Id string - The OCID of the compartment or tenancy that is the target of the alarm suppression. Example:
ocid1.compartment.oc1..exampleuniqueID
- Compartment
Id boolIn Subtree - When true, the alarm suppression targets all alarms under all compartments and subcompartments of the tenancy specified. The parameter can only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). When false, the alarm suppression targets only the alarms under the specified compartment.
- target
Type String - The type of the alarm suppression target.
- alarm
Id String - The OCID of the alarm that is the target of the alarm suppression.
- compartment
Id String - The OCID of the compartment or tenancy that is the target of the alarm suppression. Example:
ocid1.compartment.oc1..exampleuniqueID
- compartment
Id BooleanIn Subtree - When true, the alarm suppression targets all alarms under all compartments and subcompartments of the tenancy specified. The parameter can only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). When false, the alarm suppression targets only the alarms under the specified compartment.
- target
Type string - The type of the alarm suppression target.
- alarm
Id string - The OCID of the alarm that is the target of the alarm suppression.
- compartment
Id string - The OCID of the compartment or tenancy that is the target of the alarm suppression. Example:
ocid1.compartment.oc1..exampleuniqueID
- compartment
Id booleanIn Subtree - When true, the alarm suppression targets all alarms under all compartments and subcompartments of the tenancy specified. The parameter can only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). When false, the alarm suppression targets only the alarms under the specified compartment.
- target_
type str - The type of the alarm suppression target.
- alarm_
id str - The OCID of the alarm that is the target of the alarm suppression.
- compartment_
id str - The OCID of the compartment or tenancy that is the target of the alarm suppression. Example:
ocid1.compartment.oc1..exampleuniqueID
- compartment_
id_ boolin_ subtree - When true, the alarm suppression targets all alarms under all compartments and subcompartments of the tenancy specified. The parameter can only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). When false, the alarm suppression targets only the alarms under the specified compartment.
- target
Type String - The type of the alarm suppression target.
- alarm
Id String - The OCID of the alarm that is the target of the alarm suppression.
- compartment
Id String - The OCID of the compartment or tenancy that is the target of the alarm suppression. Example:
ocid1.compartment.oc1..exampleuniqueID
- compartment
Id BooleanIn Subtree - When true, the alarm suppression targets all alarms under all compartments and subcompartments of the tenancy specified. The parameter can only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). When false, the alarm suppression targets only the alarms under the specified compartment.
AlarmSuppressionSuppressionCondition, AlarmSuppressionSuppressionConditionArgs
- Condition
Type string - Type of suppression condition.
- Suppression
Duration string - Duration of the recurring suppression. Specified as a string in ISO 8601 format. Minimum:
PT1M
(1 minute). Maximum:PT24H
(24 hours). - Suppression
Recurrence string - Frequency and start time of the recurring suppression. The format follows the iCalendar specification (RFC 5545, section 3.3.10). Supported rule parts:
FREQ
: Frequency of the recurring suppression:WEEKLY
orDAILY
only.BYDAY
: Comma separated days. Use with weekly suppressions only. Supported values:MO
,TU
,WE
,TH
,FR
,SA
,SU
.BYHOUR
,BYMINUTE
,BYSECOND
: Start time in UTC, aftertimeSuppressFrom
value. Default is 00:00:00 UTC aftertimeSuppressFrom
.
- Condition
Type string - Type of suppression condition.
- Suppression
Duration string - Duration of the recurring suppression. Specified as a string in ISO 8601 format. Minimum:
PT1M
(1 minute). Maximum:PT24H
(24 hours). - Suppression
Recurrence string - Frequency and start time of the recurring suppression. The format follows the iCalendar specification (RFC 5545, section 3.3.10). Supported rule parts:
FREQ
: Frequency of the recurring suppression:WEEKLY
orDAILY
only.BYDAY
: Comma separated days. Use with weekly suppressions only. Supported values:MO
,TU
,WE
,TH
,FR
,SA
,SU
.BYHOUR
,BYMINUTE
,BYSECOND
: Start time in UTC, aftertimeSuppressFrom
value. Default is 00:00:00 UTC aftertimeSuppressFrom
.
- condition
Type String - Type of suppression condition.
- suppression
Duration String - Duration of the recurring suppression. Specified as a string in ISO 8601 format. Minimum:
PT1M
(1 minute). Maximum:PT24H
(24 hours). - suppression
Recurrence String - Frequency and start time of the recurring suppression. The format follows the iCalendar specification (RFC 5545, section 3.3.10). Supported rule parts:
FREQ
: Frequency of the recurring suppression:WEEKLY
orDAILY
only.BYDAY
: Comma separated days. Use with weekly suppressions only. Supported values:MO
,TU
,WE
,TH
,FR
,SA
,SU
.BYHOUR
,BYMINUTE
,BYSECOND
: Start time in UTC, aftertimeSuppressFrom
value. Default is 00:00:00 UTC aftertimeSuppressFrom
.
- condition
Type string - Type of suppression condition.
- suppression
Duration string - Duration of the recurring suppression. Specified as a string in ISO 8601 format. Minimum:
PT1M
(1 minute). Maximum:PT24H
(24 hours). - suppression
Recurrence string - Frequency and start time of the recurring suppression. The format follows the iCalendar specification (RFC 5545, section 3.3.10). Supported rule parts:
FREQ
: Frequency of the recurring suppression:WEEKLY
orDAILY
only.BYDAY
: Comma separated days. Use with weekly suppressions only. Supported values:MO
,TU
,WE
,TH
,FR
,SA
,SU
.BYHOUR
,BYMINUTE
,BYSECOND
: Start time in UTC, aftertimeSuppressFrom
value. Default is 00:00:00 UTC aftertimeSuppressFrom
.
- condition_
type str - Type of suppression condition.
- suppression_
duration str - Duration of the recurring suppression. Specified as a string in ISO 8601 format. Minimum:
PT1M
(1 minute). Maximum:PT24H
(24 hours). - suppression_
recurrence str - Frequency and start time of the recurring suppression. The format follows the iCalendar specification (RFC 5545, section 3.3.10). Supported rule parts:
FREQ
: Frequency of the recurring suppression:WEEKLY
orDAILY
only.BYDAY
: Comma separated days. Use with weekly suppressions only. Supported values:MO
,TU
,WE
,TH
,FR
,SA
,SU
.BYHOUR
,BYMINUTE
,BYSECOND
: Start time in UTC, aftertimeSuppressFrom
value. Default is 00:00:00 UTC aftertimeSuppressFrom
.
- condition
Type String - Type of suppression condition.
- suppression
Duration String - Duration of the recurring suppression. Specified as a string in ISO 8601 format. Minimum:
PT1M
(1 minute). Maximum:PT24H
(24 hours). - suppression
Recurrence String - Frequency and start time of the recurring suppression. The format follows the iCalendar specification (RFC 5545, section 3.3.10). Supported rule parts:
FREQ
: Frequency of the recurring suppression:WEEKLY
orDAILY
only.BYDAY
: Comma separated days. Use with weekly suppressions only. Supported values:MO
,TU
,WE
,TH
,FR
,SA
,SU
.BYHOUR
,BYMINUTE
,BYSECOND
: Start time in UTC, aftertimeSuppressFrom
value. Default is 00:00:00 UTC aftertimeSuppressFrom
.
Import
AlarmSuppressions can be imported using the id
, e.g.
$ pulumi import oci:Monitoring/alarmSuppression:AlarmSuppression test_alarm_suppression "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.