oci.Monitoring.getAlarmSuppression
Explore with Pulumi AI
This data source provides details about a specific Alarm Suppression resource in Oracle Cloud Infrastructure Monitoring service.
Gets the specified 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 = oci.Monitoring.getAlarmSuppression({
alarmSuppressionId: testAlarmSuppressionOciMonitoringAlarmSuppression.id,
});
import pulumi
import pulumi_oci as oci
test_alarm_suppression = oci.Monitoring.get_alarm_suppression(alarm_suppression_id=test_alarm_suppression_oci_monitoring_alarm_suppression["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/Monitoring"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Monitoring.GetAlarmSuppression(ctx, &monitoring.GetAlarmSuppressionArgs{
AlarmSuppressionId: testAlarmSuppressionOciMonitoringAlarmSuppression.Id,
}, nil)
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 = Oci.Monitoring.GetAlarmSuppression.Invoke(new()
{
AlarmSuppressionId = testAlarmSuppressionOciMonitoringAlarmSuppression.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Monitoring.MonitoringFunctions;
import com.pulumi.oci.Monitoring.inputs.GetAlarmSuppressionArgs;
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) {
final var testAlarmSuppression = MonitoringFunctions.getAlarmSuppression(GetAlarmSuppressionArgs.builder()
.alarmSuppressionId(testAlarmSuppressionOciMonitoringAlarmSuppression.id())
.build());
}
}
variables:
testAlarmSuppression:
fn::invoke:
Function: oci:Monitoring:getAlarmSuppression
Arguments:
alarmSuppressionId: ${testAlarmSuppressionOciMonitoringAlarmSuppression.id}
Using getAlarmSuppression
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAlarmSuppression(args: GetAlarmSuppressionArgs, opts?: InvokeOptions): Promise<GetAlarmSuppressionResult>
function getAlarmSuppressionOutput(args: GetAlarmSuppressionOutputArgs, opts?: InvokeOptions): Output<GetAlarmSuppressionResult>
def get_alarm_suppression(alarm_suppression_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAlarmSuppressionResult
def get_alarm_suppression_output(alarm_suppression_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAlarmSuppressionResult]
func GetAlarmSuppression(ctx *Context, args *GetAlarmSuppressionArgs, opts ...InvokeOption) (*GetAlarmSuppressionResult, error)
func GetAlarmSuppressionOutput(ctx *Context, args *GetAlarmSuppressionOutputArgs, opts ...InvokeOption) GetAlarmSuppressionResultOutput
> Note: This function is named GetAlarmSuppression
in the Go SDK.
public static class GetAlarmSuppression
{
public static Task<GetAlarmSuppressionResult> InvokeAsync(GetAlarmSuppressionArgs args, InvokeOptions? opts = null)
public static Output<GetAlarmSuppressionResult> Invoke(GetAlarmSuppressionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAlarmSuppressionResult> getAlarmSuppression(GetAlarmSuppressionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Monitoring/getAlarmSuppression:getAlarmSuppression
arguments:
# arguments dictionary
The following arguments are supported:
- Alarm
Suppression stringId - The OCID of the alarm suppression.
- Alarm
Suppression stringId - The OCID of the alarm suppression.
- alarm
Suppression StringId - The OCID of the alarm suppression.
- alarm
Suppression stringId - The OCID of the alarm suppression.
- alarm_
suppression_ strid - The OCID of the alarm suppression.
- alarm
Suppression StringId - The OCID of the alarm suppression.
getAlarmSuppression Result
The following output properties are available:
- Alarm
Suppression stringId - Alarm
Suppression List<GetTargets Alarm Suppression Alarm Suppression Target> - The target of the alarm suppression.
- Compartment
Id string - The OCID of the compartment containing the alarm suppression.
- Dictionary<string, object>
- 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.
- Dimensions Dictionary<string, object>
- Configured dimension filter for suppressing alarm state entries that include the set of specified dimension key-value pairs. Example:
{"resourceId": "instance.region1.phx.exampleuniqueID"}
- 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, object>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"Department": "Finance"}
- Id string
- The OCID of the alarm suppression.
- 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
Suppress stringFrom - The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2018-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:
2018-02-01T02: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
- Alarm
Suppression stringId - Alarm
Suppression []GetTargets Alarm Suppression Alarm Suppression Target - The target of the alarm suppression.
- Compartment
Id string - The OCID of the compartment containing the alarm suppression.
- map[string]interface{}
- 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.
- Dimensions map[string]interface{}
- Configured dimension filter for suppressing alarm state entries that include the set of specified dimension key-value pairs. Example:
{"resourceId": "instance.region1.phx.exampleuniqueID"}
- 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]interface{}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"Department": "Finance"}
- Id string
- The OCID of the alarm suppression.
- 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
Suppress stringFrom - The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2018-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:
2018-02-01T02: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
- alarm
Suppression StringId - alarm
Suppression List<GetTargets Alarm Suppression Alarm Suppression Target> - The target of the alarm suppression.
- compartment
Id String - The OCID of the compartment containing the alarm suppression.
- Map<String,Object>
- 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.
- dimensions Map<String,Object>
- Configured dimension filter for suppressing alarm state entries that include the set of specified dimension key-value pairs. Example:
{"resourceId": "instance.region1.phx.exampleuniqueID"}
- 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,Object>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"Department": "Finance"}
- id String
- The OCID of the alarm suppression.
- 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
Suppress StringFrom - The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2018-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:
2018-02-01T02: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
- alarm
Suppression stringId - alarm
Suppression GetTargets Alarm Suppression Alarm Suppression Target[] - The target of the alarm suppression.
- compartment
Id string - The OCID of the compartment containing the alarm suppression.
- {[key: string]: any}
- 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.
- dimensions {[key: string]: any}
- Configured dimension filter for suppressing alarm state entries that include the set of specified dimension key-value pairs. Example:
{"resourceId": "instance.region1.phx.exampleuniqueID"}
- 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]: any}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"Department": "Finance"}
- id string
- The OCID of the alarm suppression.
- 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
Suppress stringFrom - The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2018-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:
2018-02-01T02: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
- alarm_
suppression_ strid - alarm_
suppression_ Sequence[monitoring.targets Get Alarm Suppression Alarm Suppression Target] - The target of the alarm suppression.
- compartment_
id str - The OCID of the compartment containing the alarm suppression.
- Mapping[str, Any]
- 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.
- dimensions Mapping[str, Any]
- Configured dimension filter for suppressing alarm state entries that include the set of specified dimension key-value pairs. Example:
{"resourceId": "instance.region1.phx.exampleuniqueID"}
- 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, Any]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"Department": "Finance"}
- id str
- The OCID of the alarm suppression.
- 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_
suppress_ strfrom - The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2018-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:
2018-02-01T02: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
- alarm
Suppression StringId - alarm
Suppression List<Property Map>Targets - The target of the alarm suppression.
- compartment
Id String - The OCID of the compartment containing the alarm suppression.
- Map<Any>
- 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.
- dimensions Map<Any>
- Configured dimension filter for suppressing alarm state entries that include the set of specified dimension key-value pairs. Example:
{"resourceId": "instance.region1.phx.exampleuniqueID"}
- 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<Any>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"Department": "Finance"}
- id String
- The OCID of the alarm suppression.
- 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
Suppress StringFrom - The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2018-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:
2018-02-01T02: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
Supporting Types
GetAlarmSuppressionAlarmSuppressionTarget
- Alarm
Id string - The OCID of the alarm that is the target of the alarm suppression.
- 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.
- 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.
- 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.
- target
Type string - The type of the alarm suppression target.
- alarm_
id str - The OCID of the alarm that is the target of the alarm suppression.
- target_
type str - The type of the alarm suppression target.
- alarm
Id String - The OCID of the alarm that is the target of the alarm suppression.
- target
Type String - The type of the alarm suppression target.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.