oci.Monitoring.getAlarmStatuses
Explore with Pulumi AI
This data source provides the list of Alarm Statuses in Oracle Cloud Infrastructure Monitoring service.
List the status of each alarm in the specified compartment. Status is collective, across all metric streams in the alarm. To list alarm status for each metric stream, use RetrieveDimensionStates. Optionally filter by resource or status value.
For more information, see Listing Alarm Statuses. 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 testAlarmStatuses = oci.Monitoring.getAlarmStatuses({
compartmentId: compartmentId,
compartmentIdInSubtree: alarmStatusCompartmentIdInSubtree,
displayName: alarmStatusDisplayName,
entityId: testEntity.id,
resourceId: testResource.id,
serviceName: testService.name,
status: alarmStatusStatus,
});
import pulumi
import pulumi_oci as oci
test_alarm_statuses = oci.Monitoring.get_alarm_statuses(compartment_id=compartment_id,
compartment_id_in_subtree=alarm_status_compartment_id_in_subtree,
display_name=alarm_status_display_name,
entity_id=test_entity["id"],
resource_id=test_resource["id"],
service_name=test_service["name"],
status=alarm_status_status)
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.GetAlarmStatuses(ctx, &monitoring.GetAlarmStatusesArgs{
CompartmentId: compartmentId,
CompartmentIdInSubtree: pulumi.BoolRef(alarmStatusCompartmentIdInSubtree),
DisplayName: pulumi.StringRef(alarmStatusDisplayName),
EntityId: pulumi.StringRef(testEntity.Id),
ResourceId: pulumi.StringRef(testResource.Id),
ServiceName: pulumi.StringRef(testService.Name),
Status: pulumi.StringRef(alarmStatusStatus),
}, 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 testAlarmStatuses = Oci.Monitoring.GetAlarmStatuses.Invoke(new()
{
CompartmentId = compartmentId,
CompartmentIdInSubtree = alarmStatusCompartmentIdInSubtree,
DisplayName = alarmStatusDisplayName,
EntityId = testEntity.Id,
ResourceId = testResource.Id,
ServiceName = testService.Name,
Status = alarmStatusStatus,
});
});
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.GetAlarmStatusesArgs;
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 testAlarmStatuses = MonitoringFunctions.getAlarmStatuses(GetAlarmStatusesArgs.builder()
.compartmentId(compartmentId)
.compartmentIdInSubtree(alarmStatusCompartmentIdInSubtree)
.displayName(alarmStatusDisplayName)
.entityId(testEntity.id())
.resourceId(testResource.id())
.serviceName(testService.name())
.status(alarmStatusStatus)
.build());
}
}
variables:
testAlarmStatuses:
fn::invoke:
Function: oci:Monitoring:getAlarmStatuses
Arguments:
compartmentId: ${compartmentId}
compartmentIdInSubtree: ${alarmStatusCompartmentIdInSubtree}
displayName: ${alarmStatusDisplayName}
entityId: ${testEntity.id}
resourceId: ${testResource.id}
serviceName: ${testService.name}
status: ${alarmStatusStatus}
Using getAlarmStatuses
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 getAlarmStatuses(args: GetAlarmStatusesArgs, opts?: InvokeOptions): Promise<GetAlarmStatusesResult>
function getAlarmStatusesOutput(args: GetAlarmStatusesOutputArgs, opts?: InvokeOptions): Output<GetAlarmStatusesResult>
def get_alarm_statuses(compartment_id: Optional[str] = None,
compartment_id_in_subtree: Optional[bool] = None,
display_name: Optional[str] = None,
entity_id: Optional[str] = None,
filters: Optional[Sequence[_monitoring.GetAlarmStatusesFilter]] = None,
resource_id: Optional[str] = None,
service_name: Optional[str] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAlarmStatusesResult
def get_alarm_statuses_output(compartment_id: Optional[pulumi.Input[str]] = None,
compartment_id_in_subtree: Optional[pulumi.Input[bool]] = None,
display_name: Optional[pulumi.Input[str]] = None,
entity_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_monitoring.GetAlarmStatusesFilterArgs]]]] = None,
resource_id: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAlarmStatusesResult]
func GetAlarmStatuses(ctx *Context, args *GetAlarmStatusesArgs, opts ...InvokeOption) (*GetAlarmStatusesResult, error)
func GetAlarmStatusesOutput(ctx *Context, args *GetAlarmStatusesOutputArgs, opts ...InvokeOption) GetAlarmStatusesResultOutput
> Note: This function is named GetAlarmStatuses
in the Go SDK.
public static class GetAlarmStatuses
{
public static Task<GetAlarmStatusesResult> InvokeAsync(GetAlarmStatusesArgs args, InvokeOptions? opts = null)
public static Output<GetAlarmStatusesResult> Invoke(GetAlarmStatusesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAlarmStatusesResult> getAlarmStatuses(GetAlarmStatusesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Monitoring/getAlarmStatuses:getAlarmStatuses
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The OCID of the compartment containing the resources monitored by the metric that you are searching for. Use tenancyId to search in the root compartment. Example:
ocid1.compartment.oc1..exampleuniqueID
- Compartment
Id boolIn Subtree - When true, returns resources from all compartments and subcompartments. The parameter can only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). A true value requires the user to have tenancy-level permissions. If this requirement is not met, then the call is rejected. When false, returns resources from only the compartment specified in compartmentId. Default is false.
- Display
Name string - A filter to return only resources that match the given display name exactly. Use this filter to list an alarm by name. Alternatively, when you know the alarm OCID, use the GetAlarm operation.
- Entity
Id string - The OCID of the entity monitored by the metric that you are searching for. Example:
ocid1.instance.oc1.phx.exampleuniqueID
- Filters
List<Get
Alarm Statuses Filter> - Resource
Id string - The OCID of a resource that is monitored by the metric that you are searching for. Example:
ocid1.instance.oc1.phx.exampleuniqueID
- Service
Name string - A filter to return only resources that match the given service name exactly. Use this filter to list all alarms containing metric streams that match the exact service-name dimension. Example:
logging-analytics
- Status string
- The status of the metric stream to use for alarm filtering. For example, set
StatusQueryParam
to "FIRING" to filter results to metric streams of the alarm with that status. Default behaviour is to return alarms irrespective of metric streams' status. Example:FIRING
- Compartment
Id string - The OCID of the compartment containing the resources monitored by the metric that you are searching for. Use tenancyId to search in the root compartment. Example:
ocid1.compartment.oc1..exampleuniqueID
- Compartment
Id boolIn Subtree - When true, returns resources from all compartments and subcompartments. The parameter can only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). A true value requires the user to have tenancy-level permissions. If this requirement is not met, then the call is rejected. When false, returns resources from only the compartment specified in compartmentId. Default is false.
- Display
Name string - A filter to return only resources that match the given display name exactly. Use this filter to list an alarm by name. Alternatively, when you know the alarm OCID, use the GetAlarm operation.
- Entity
Id string - The OCID of the entity monitored by the metric that you are searching for. Example:
ocid1.instance.oc1.phx.exampleuniqueID
- Filters
[]Get
Alarm Statuses Filter - Resource
Id string - The OCID of a resource that is monitored by the metric that you are searching for. Example:
ocid1.instance.oc1.phx.exampleuniqueID
- Service
Name string - A filter to return only resources that match the given service name exactly. Use this filter to list all alarms containing metric streams that match the exact service-name dimension. Example:
logging-analytics
- Status string
- The status of the metric stream to use for alarm filtering. For example, set
StatusQueryParam
to "FIRING" to filter results to metric streams of the alarm with that status. Default behaviour is to return alarms irrespective of metric streams' status. Example:FIRING
- compartment
Id String - The OCID of the compartment containing the resources monitored by the metric that you are searching for. Use tenancyId to search in the root compartment. Example:
ocid1.compartment.oc1..exampleuniqueID
- compartment
Id BooleanIn Subtree - When true, returns resources from all compartments and subcompartments. The parameter can only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). A true value requires the user to have tenancy-level permissions. If this requirement is not met, then the call is rejected. When false, returns resources from only the compartment specified in compartmentId. Default is false.
- display
Name String - A filter to return only resources that match the given display name exactly. Use this filter to list an alarm by name. Alternatively, when you know the alarm OCID, use the GetAlarm operation.
- entity
Id String - The OCID of the entity monitored by the metric that you are searching for. Example:
ocid1.instance.oc1.phx.exampleuniqueID
- filters
List<Get
Alarm Statuses Filter> - resource
Id String - The OCID of a resource that is monitored by the metric that you are searching for. Example:
ocid1.instance.oc1.phx.exampleuniqueID
- service
Name String - A filter to return only resources that match the given service name exactly. Use this filter to list all alarms containing metric streams that match the exact service-name dimension. Example:
logging-analytics
- status String
- The status of the metric stream to use for alarm filtering. For example, set
StatusQueryParam
to "FIRING" to filter results to metric streams of the alarm with that status. Default behaviour is to return alarms irrespective of metric streams' status. Example:FIRING
- compartment
Id string - The OCID of the compartment containing the resources monitored by the metric that you are searching for. Use tenancyId to search in the root compartment. Example:
ocid1.compartment.oc1..exampleuniqueID
- compartment
Id booleanIn Subtree - When true, returns resources from all compartments and subcompartments. The parameter can only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). A true value requires the user to have tenancy-level permissions. If this requirement is not met, then the call is rejected. When false, returns resources from only the compartment specified in compartmentId. Default is false.
- display
Name string - A filter to return only resources that match the given display name exactly. Use this filter to list an alarm by name. Alternatively, when you know the alarm OCID, use the GetAlarm operation.
- entity
Id string - The OCID of the entity monitored by the metric that you are searching for. Example:
ocid1.instance.oc1.phx.exampleuniqueID
- filters
Get
Alarm Statuses Filter[] - resource
Id string - The OCID of a resource that is monitored by the metric that you are searching for. Example:
ocid1.instance.oc1.phx.exampleuniqueID
- service
Name string - A filter to return only resources that match the given service name exactly. Use this filter to list all alarms containing metric streams that match the exact service-name dimension. Example:
logging-analytics
- status string
- The status of the metric stream to use for alarm filtering. For example, set
StatusQueryParam
to "FIRING" to filter results to metric streams of the alarm with that status. Default behaviour is to return alarms irrespective of metric streams' status. Example:FIRING
- compartment_
id str - The OCID of the compartment containing the resources monitored by the metric that you are searching for. Use tenancyId to search in the root compartment. Example:
ocid1.compartment.oc1..exampleuniqueID
- compartment_
id_ boolin_ subtree - When true, returns resources from all compartments and subcompartments. The parameter can only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). A true value requires the user to have tenancy-level permissions. If this requirement is not met, then the call is rejected. When false, returns resources from only the compartment specified in compartmentId. Default is false.
- display_
name str - A filter to return only resources that match the given display name exactly. Use this filter to list an alarm by name. Alternatively, when you know the alarm OCID, use the GetAlarm operation.
- entity_
id str - The OCID of the entity monitored by the metric that you are searching for. Example:
ocid1.instance.oc1.phx.exampleuniqueID
- filters
Sequence[monitoring.
Get Alarm Statuses Filter] - resource_
id str - The OCID of a resource that is monitored by the metric that you are searching for. Example:
ocid1.instance.oc1.phx.exampleuniqueID
- service_
name str - A filter to return only resources that match the given service name exactly. Use this filter to list all alarms containing metric streams that match the exact service-name dimension. Example:
logging-analytics
- status str
- The status of the metric stream to use for alarm filtering. For example, set
StatusQueryParam
to "FIRING" to filter results to metric streams of the alarm with that status. Default behaviour is to return alarms irrespective of metric streams' status. Example:FIRING
- compartment
Id String - The OCID of the compartment containing the resources monitored by the metric that you are searching for. Use tenancyId to search in the root compartment. Example:
ocid1.compartment.oc1..exampleuniqueID
- compartment
Id BooleanIn Subtree - When true, returns resources from all compartments and subcompartments. The parameter can only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). A true value requires the user to have tenancy-level permissions. If this requirement is not met, then the call is rejected. When false, returns resources from only the compartment specified in compartmentId. Default is false.
- display
Name String - A filter to return only resources that match the given display name exactly. Use this filter to list an alarm by name. Alternatively, when you know the alarm OCID, use the GetAlarm operation.
- entity
Id String - The OCID of the entity monitored by the metric that you are searching for. Example:
ocid1.instance.oc1.phx.exampleuniqueID
- filters List<Property Map>
- resource
Id String - The OCID of a resource that is monitored by the metric that you are searching for. Example:
ocid1.instance.oc1.phx.exampleuniqueID
- service
Name String - A filter to return only resources that match the given service name exactly. Use this filter to list all alarms containing metric streams that match the exact service-name dimension. Example:
logging-analytics
- status String
- The status of the metric stream to use for alarm filtering. For example, set
StatusQueryParam
to "FIRING" to filter results to metric streams of the alarm with that status. Default behaviour is to return alarms irrespective of metric streams' status. Example:FIRING
getAlarmStatuses Result
The following output properties are available:
- Alarm
Statuses List<GetAlarm Statuses Alarm Status> - The list of alarm_statuses.
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Compartment
Id boolIn Subtree - Display
Name string - The configured name of the alarm. Example:
High CPU Utilization
- Entity
Id string - Filters
List<Get
Alarm Statuses Filter> - Resource
Id string - Service
Name string - Status string
- The status of this alarm. Status is collective, across all metric streams in the alarm. To list alarm status for each metric stream, use RetrieveDimensionStates. Example:
FIRING
- Alarm
Statuses []GetAlarm Statuses Alarm Status - The list of alarm_statuses.
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Compartment
Id boolIn Subtree - Display
Name string - The configured name of the alarm. Example:
High CPU Utilization
- Entity
Id string - Filters
[]Get
Alarm Statuses Filter - Resource
Id string - Service
Name string - Status string
- The status of this alarm. Status is collective, across all metric streams in the alarm. To list alarm status for each metric stream, use RetrieveDimensionStates. Example:
FIRING
- alarm
Statuses List<GetAlarm Statuses Alarm Status> - The list of alarm_statuses.
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- compartment
Id BooleanIn Subtree - display
Name String - The configured name of the alarm. Example:
High CPU Utilization
- entity
Id String - filters
List<Get
Alarm Statuses Filter> - resource
Id String - service
Name String - status String
- The status of this alarm. Status is collective, across all metric streams in the alarm. To list alarm status for each metric stream, use RetrieveDimensionStates. Example:
FIRING
- alarm
Statuses GetAlarm Statuses Alarm Status[] - The list of alarm_statuses.
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- compartment
Id booleanIn Subtree - display
Name string - The configured name of the alarm. Example:
High CPU Utilization
- entity
Id string - filters
Get
Alarm Statuses Filter[] - resource
Id string - service
Name string - status string
- The status of this alarm. Status is collective, across all metric streams in the alarm. To list alarm status for each metric stream, use RetrieveDimensionStates. Example:
FIRING
- alarm_
statuses Sequence[monitoring.Get Alarm Statuses Alarm Status] - The list of alarm_statuses.
- compartment_
id str - id str
- The provider-assigned unique ID for this managed resource.
- compartment_
id_ boolin_ subtree - display_
name str - The configured name of the alarm. Example:
High CPU Utilization
- entity_
id str - filters
Sequence[monitoring.
Get Alarm Statuses Filter] - resource_
id str - service_
name str - status str
- The status of this alarm. Status is collective, across all metric streams in the alarm. To list alarm status for each metric stream, use RetrieveDimensionStates. Example:
FIRING
- alarm
Statuses List<Property Map> - The list of alarm_statuses.
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- compartment
Id BooleanIn Subtree - display
Name String - The configured name of the alarm. Example:
High CPU Utilization
- entity
Id String - filters List<Property Map>
- resource
Id String - service
Name String - status String
- The status of this alarm. Status is collective, across all metric streams in the alarm. To list alarm status for each metric stream, use RetrieveDimensionStates. Example:
FIRING
Supporting Types
GetAlarmStatusesAlarmStatus
- Alarm
Summary string - Customizable alarm summary (
alarmSummary
alarm message parameter). Optionally include dynamic variables. The alarm summary appears within the body of the alarm message and in responses to ListAlarmStatus GetAlarmHistory and RetrieveDimensionStates. - Display
Name string - A filter to return only resources that match the given display name exactly. Use this filter to list an alarm by name. Alternatively, when you know the alarm OCID, use the GetAlarm operation.
- Id string
- The OCID of the alarm.
- Rule
Name string - Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. Default value is
BASE
. For information about alarm overrides, see AlarmOverride. - Severity string
- The perceived type of response required when the alarm is in the "FIRING" state. Example:
CRITICAL
- Status string
- The status of the metric stream to use for alarm filtering. For example, set
StatusQueryParam
to "FIRING" to filter results to metric streams of the alarm with that status. Default behaviour is to return alarms irrespective of metric streams' status. Example:FIRING
- Suppressions
List<Get
Alarm Statuses Alarm Status Suppression> - The configuration details for suppressing an alarm.
- Timestamp
Triggered string - Timestamp for the transition of the alarm state. For example, the time when the alarm transitioned from OK to Firing. Note: A three-minute lag for this value accounts for any late-arriving metrics. Example:
2023-02-01T01:02:29.600Z
- Alarm
Summary string - Customizable alarm summary (
alarmSummary
alarm message parameter). Optionally include dynamic variables. The alarm summary appears within the body of the alarm message and in responses to ListAlarmStatus GetAlarmHistory and RetrieveDimensionStates. - Display
Name string - A filter to return only resources that match the given display name exactly. Use this filter to list an alarm by name. Alternatively, when you know the alarm OCID, use the GetAlarm operation.
- Id string
- The OCID of the alarm.
- Rule
Name string - Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. Default value is
BASE
. For information about alarm overrides, see AlarmOverride. - Severity string
- The perceived type of response required when the alarm is in the "FIRING" state. Example:
CRITICAL
- Status string
- The status of the metric stream to use for alarm filtering. For example, set
StatusQueryParam
to "FIRING" to filter results to metric streams of the alarm with that status. Default behaviour is to return alarms irrespective of metric streams' status. Example:FIRING
- Suppressions
[]Get
Alarm Statuses Alarm Status Suppression - The configuration details for suppressing an alarm.
- Timestamp
Triggered string - Timestamp for the transition of the alarm state. For example, the time when the alarm transitioned from OK to Firing. Note: A three-minute lag for this value accounts for any late-arriving metrics. Example:
2023-02-01T01:02:29.600Z
- alarm
Summary String - Customizable alarm summary (
alarmSummary
alarm message parameter). Optionally include dynamic variables. The alarm summary appears within the body of the alarm message and in responses to ListAlarmStatus GetAlarmHistory and RetrieveDimensionStates. - display
Name String - A filter to return only resources that match the given display name exactly. Use this filter to list an alarm by name. Alternatively, when you know the alarm OCID, use the GetAlarm operation.
- id String
- The OCID of the alarm.
- rule
Name String - Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. Default value is
BASE
. For information about alarm overrides, see AlarmOverride. - severity String
- The perceived type of response required when the alarm is in the "FIRING" state. Example:
CRITICAL
- status String
- The status of the metric stream to use for alarm filtering. For example, set
StatusQueryParam
to "FIRING" to filter results to metric streams of the alarm with that status. Default behaviour is to return alarms irrespective of metric streams' status. Example:FIRING
- suppressions
List<Get
Alarm Statuses Alarm Status Suppression> - The configuration details for suppressing an alarm.
- timestamp
Triggered String - Timestamp for the transition of the alarm state. For example, the time when the alarm transitioned from OK to Firing. Note: A three-minute lag for this value accounts for any late-arriving metrics. Example:
2023-02-01T01:02:29.600Z
- alarm
Summary string - Customizable alarm summary (
alarmSummary
alarm message parameter). Optionally include dynamic variables. The alarm summary appears within the body of the alarm message and in responses to ListAlarmStatus GetAlarmHistory and RetrieveDimensionStates. - display
Name string - A filter to return only resources that match the given display name exactly. Use this filter to list an alarm by name. Alternatively, when you know the alarm OCID, use the GetAlarm operation.
- id string
- The OCID of the alarm.
- rule
Name string - Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. Default value is
BASE
. For information about alarm overrides, see AlarmOverride. - severity string
- The perceived type of response required when the alarm is in the "FIRING" state. Example:
CRITICAL
- status string
- The status of the metric stream to use for alarm filtering. For example, set
StatusQueryParam
to "FIRING" to filter results to metric streams of the alarm with that status. Default behaviour is to return alarms irrespective of metric streams' status. Example:FIRING
- suppressions
Get
Alarm Statuses Alarm Status Suppression[] - The configuration details for suppressing an alarm.
- timestamp
Triggered string - Timestamp for the transition of the alarm state. For example, the time when the alarm transitioned from OK to Firing. Note: A three-minute lag for this value accounts for any late-arriving metrics. Example:
2023-02-01T01:02:29.600Z
- alarm_
summary str - Customizable alarm summary (
alarmSummary
alarm message parameter). Optionally include dynamic variables. The alarm summary appears within the body of the alarm message and in responses to ListAlarmStatus GetAlarmHistory and RetrieveDimensionStates. - display_
name str - A filter to return only resources that match the given display name exactly. Use this filter to list an alarm by name. Alternatively, when you know the alarm OCID, use the GetAlarm operation.
- id str
- The OCID of the alarm.
- rule_
name str - Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. Default value is
BASE
. For information about alarm overrides, see AlarmOverride. - severity str
- The perceived type of response required when the alarm is in the "FIRING" state. Example:
CRITICAL
- status str
- The status of the metric stream to use for alarm filtering. For example, set
StatusQueryParam
to "FIRING" to filter results to metric streams of the alarm with that status. Default behaviour is to return alarms irrespective of metric streams' status. Example:FIRING
- suppressions
Sequence[monitoring.
Get Alarm Statuses Alarm Status Suppression] - The configuration details for suppressing an alarm.
- timestamp_
triggered str - Timestamp for the transition of the alarm state. For example, the time when the alarm transitioned from OK to Firing. Note: A three-minute lag for this value accounts for any late-arriving metrics. Example:
2023-02-01T01:02:29.600Z
- alarm
Summary String - Customizable alarm summary (
alarmSummary
alarm message parameter). Optionally include dynamic variables. The alarm summary appears within the body of the alarm message and in responses to ListAlarmStatus GetAlarmHistory and RetrieveDimensionStates. - display
Name String - A filter to return only resources that match the given display name exactly. Use this filter to list an alarm by name. Alternatively, when you know the alarm OCID, use the GetAlarm operation.
- id String
- The OCID of the alarm.
- rule
Name String - Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. Default value is
BASE
. For information about alarm overrides, see AlarmOverride. - severity String
- The perceived type of response required when the alarm is in the "FIRING" state. Example:
CRITICAL
- status String
- The status of the metric stream to use for alarm filtering. For example, set
StatusQueryParam
to "FIRING" to filter results to metric streams of the alarm with that status. Default behaviour is to return alarms irrespective of metric streams' status. Example:FIRING
- suppressions List<Property Map>
- The configuration details for suppressing an alarm.
- timestamp
Triggered String - Timestamp for the transition of the alarm state. For example, the time when the alarm transitioned from OK to Firing. Note: A three-minute lag for this value accounts for any late-arriving metrics. Example:
2023-02-01T01:02:29.600Z
GetAlarmStatusesAlarmStatusSuppression
- Description string
- Human-readable reason for suppressing alarm notifications. 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
- Description string
- Human-readable reason for suppressing alarm notifications. 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
- description String
- Human-readable reason for suppressing alarm notifications. 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
- description string
- Human-readable reason for suppressing alarm notifications. 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
- description str
- Human-readable reason for suppressing alarm notifications. 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
- description String
- Human-readable reason for suppressing alarm notifications. 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
GetAlarmStatusesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.