Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
This data source provides details about a specific Monitoring Template Alarm Condition resource in Oracle Cloud Infrastructure Stack Monitoring service.
Gets a Alarm Condition by identifier.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testMonitoringTemplateAlarmCondition = oci.StackMonitoring.getMonitoringTemplateAlarmCondition({
alarmConditionId: testAlarmCondition.id,
monitoringTemplateId: testMonitoringTemplate.id,
});
import pulumi
import pulumi_oci as oci
test_monitoring_template_alarm_condition = oci.StackMonitoring.get_monitoring_template_alarm_condition(alarm_condition_id=test_alarm_condition["id"],
monitoring_template_id=test_monitoring_template["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/stackmonitoring"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := stackmonitoring.GetMonitoringTemplateAlarmCondition(ctx, &stackmonitoring.GetMonitoringTemplateAlarmConditionArgs{
AlarmConditionId: testAlarmCondition.Id,
MonitoringTemplateId: testMonitoringTemplate.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 testMonitoringTemplateAlarmCondition = Oci.StackMonitoring.GetMonitoringTemplateAlarmCondition.Invoke(new()
{
AlarmConditionId = testAlarmCondition.Id,
MonitoringTemplateId = testMonitoringTemplate.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.StackMonitoring.StackMonitoringFunctions;
import com.pulumi.oci.StackMonitoring.inputs.GetMonitoringTemplateAlarmConditionArgs;
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 testMonitoringTemplateAlarmCondition = StackMonitoringFunctions.getMonitoringTemplateAlarmCondition(GetMonitoringTemplateAlarmConditionArgs.builder()
.alarmConditionId(testAlarmCondition.id())
.monitoringTemplateId(testMonitoringTemplate.id())
.build());
}
}
variables:
testMonitoringTemplateAlarmCondition:
fn::invoke:
function: oci:StackMonitoring:getMonitoringTemplateAlarmCondition
arguments:
alarmConditionId: ${testAlarmCondition.id}
monitoringTemplateId: ${testMonitoringTemplate.id}
Using getMonitoringTemplateAlarmCondition
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 getMonitoringTemplateAlarmCondition(args: GetMonitoringTemplateAlarmConditionArgs, opts?: InvokeOptions): Promise<GetMonitoringTemplateAlarmConditionResult>
function getMonitoringTemplateAlarmConditionOutput(args: GetMonitoringTemplateAlarmConditionOutputArgs, opts?: InvokeOptions): Output<GetMonitoringTemplateAlarmConditionResult>def get_monitoring_template_alarm_condition(alarm_condition_id: Optional[str] = None,
monitoring_template_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMonitoringTemplateAlarmConditionResult
def get_monitoring_template_alarm_condition_output(alarm_condition_id: Optional[pulumi.Input[str]] = None,
monitoring_template_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMonitoringTemplateAlarmConditionResult]func LookupMonitoringTemplateAlarmCondition(ctx *Context, args *LookupMonitoringTemplateAlarmConditionArgs, opts ...InvokeOption) (*LookupMonitoringTemplateAlarmConditionResult, error)
func LookupMonitoringTemplateAlarmConditionOutput(ctx *Context, args *LookupMonitoringTemplateAlarmConditionOutputArgs, opts ...InvokeOption) LookupMonitoringTemplateAlarmConditionResultOutput> Note: This function is named LookupMonitoringTemplateAlarmCondition in the Go SDK.
public static class GetMonitoringTemplateAlarmCondition
{
public static Task<GetMonitoringTemplateAlarmConditionResult> InvokeAsync(GetMonitoringTemplateAlarmConditionArgs args, InvokeOptions? opts = null)
public static Output<GetMonitoringTemplateAlarmConditionResult> Invoke(GetMonitoringTemplateAlarmConditionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMonitoringTemplateAlarmConditionResult> getMonitoringTemplateAlarmCondition(GetMonitoringTemplateAlarmConditionArgs args, InvokeOptions options)
public static Output<GetMonitoringTemplateAlarmConditionResult> getMonitoringTemplateAlarmCondition(GetMonitoringTemplateAlarmConditionArgs args, InvokeOptions options)
fn::invoke:
function: oci:StackMonitoring/getMonitoringTemplateAlarmCondition:getMonitoringTemplateAlarmCondition
arguments:
# arguments dictionaryThe following arguments are supported:
- Alarm
Condition stringId - The OCID of the alarm condition.
- Monitoring
Template stringId - The OCID of the monitoring template.
- Alarm
Condition stringId - The OCID of the alarm condition.
- Monitoring
Template stringId - The OCID of the monitoring template.
- alarm
Condition StringId - The OCID of the alarm condition.
- monitoring
Template StringId - The OCID of the monitoring template.
- alarm
Condition stringId - The OCID of the alarm condition.
- monitoring
Template stringId - The OCID of the monitoring template.
- alarm_
condition_ strid - The OCID of the alarm condition.
- monitoring_
template_ strid - The OCID of the monitoring template.
- alarm
Condition StringId - The OCID of the alarm condition.
- monitoring
Template StringId - The OCID of the monitoring template.
getMonitoringTemplateAlarmCondition Result
The following output properties are available:
- Alarm
Condition stringId - Composite
Type string - The OCID of the composite resource type like EBS/PEOPLE_SOFT.
- Condition
Type string - Type of defined monitoring template.
- Conditions
List<Get
Monitoring Template Alarm Condition Condition> - Monitoring template conditions
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - Id string
- The OCID of the Alarm Condition.
- Metric
Name string - The metric name.
- Monitoring
Template stringId - The OCID of the monitoring template.
- Namespace string
- The stack monitoring service or application emitting the metric that is evaluated by the alarm.
- Resource
Type string - The resource type OCID.
- State string
- The current lifecycle state of the monitoring template
- Status string
- The current status of the monitoring template i.e. whether it is Published or Unpublished
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time the alarm condition was created. Format defined by RFC3339.
- Time
Updated string - The date and time the alarm condition was updated. Format defined by RFC3339.
- Alarm
Condition stringId - Composite
Type string - The OCID of the composite resource type like EBS/PEOPLE_SOFT.
- Condition
Type string - Type of defined monitoring template.
- Conditions
[]Get
Monitoring Template Alarm Condition Condition - Monitoring template conditions
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - Id string
- The OCID of the Alarm Condition.
- Metric
Name string - The metric name.
- Monitoring
Template stringId - The OCID of the monitoring template.
- Namespace string
- The stack monitoring service or application emitting the metric that is evaluated by the alarm.
- Resource
Type string - The resource type OCID.
- State string
- The current lifecycle state of the monitoring template
- Status string
- The current status of the monitoring template i.e. whether it is Published or Unpublished
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time the alarm condition was created. Format defined by RFC3339.
- Time
Updated string - The date and time the alarm condition was updated. Format defined by RFC3339.
- alarm
Condition StringId - composite
Type String - The OCID of the composite resource type like EBS/PEOPLE_SOFT.
- condition
Type String - Type of defined monitoring template.
- conditions
List<Get
Monitoring Template Alarm Condition Condition> - Monitoring template conditions
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id String
- The OCID of the Alarm Condition.
- metric
Name String - The metric name.
- monitoring
Template StringId - The OCID of the monitoring template.
- namespace String
- The stack monitoring service or application emitting the metric that is evaluated by the alarm.
- resource
Type String - The resource type OCID.
- state String
- The current lifecycle state of the monitoring template
- status String
- The current status of the monitoring template i.e. whether it is Published or Unpublished
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time the alarm condition was created. Format defined by RFC3339.
- time
Updated String - The date and time the alarm condition was updated. Format defined by RFC3339.
- alarm
Condition stringId - composite
Type string - The OCID of the composite resource type like EBS/PEOPLE_SOFT.
- condition
Type string - Type of defined monitoring template.
- conditions
Get
Monitoring Template Alarm Condition Condition[] - Monitoring template conditions
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id string
- The OCID of the Alarm Condition.
- metric
Name string - The metric name.
- monitoring
Template stringId - The OCID of the monitoring template.
- namespace string
- The stack monitoring service or application emitting the metric that is evaluated by the alarm.
- resource
Type string - The resource type OCID.
- state string
- The current lifecycle state of the monitoring template
- status string
- The current status of the monitoring template i.e. whether it is Published or Unpublished
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - The date and time the alarm condition was created. Format defined by RFC3339.
- time
Updated string - The date and time the alarm condition was updated. Format defined by RFC3339.
- alarm_
condition_ strid - composite_
type str - The OCID of the composite resource type like EBS/PEOPLE_SOFT.
- condition_
type str - Type of defined monitoring template.
- conditions
Sequence[Get
Monitoring Template Alarm Condition Condition] - Monitoring template conditions
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id str
- The OCID of the Alarm Condition.
- metric_
name str - The metric name.
- monitoring_
template_ strid - The OCID of the monitoring template.
- namespace str
- The stack monitoring service or application emitting the metric that is evaluated by the alarm.
- resource_
type str - The resource type OCID.
- state str
- The current lifecycle state of the monitoring template
- status str
- The current status of the monitoring template i.e. whether it is Published or Unpublished
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time_
created str - The date and time the alarm condition was created. Format defined by RFC3339.
- time_
updated str - The date and time the alarm condition was updated. Format defined by RFC3339.
- alarm
Condition StringId - composite
Type String - The OCID of the composite resource type like EBS/PEOPLE_SOFT.
- condition
Type String - Type of defined monitoring template.
- conditions List<Property Map>
- Monitoring template conditions
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id String
- The OCID of the Alarm Condition.
- metric
Name String - The metric name.
- monitoring
Template StringId - The OCID of the monitoring template.
- namespace String
- The stack monitoring service or application emitting the metric that is evaluated by the alarm.
- resource
Type String - The resource type OCID.
- state String
- The current lifecycle state of the monitoring template
- status String
- The current status of the monitoring template i.e. whether it is Published or Unpublished
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time the alarm condition was created. Format defined by RFC3339.
- time
Updated String - The date and time the alarm condition was updated. Format defined by RFC3339.
Supporting Types
GetMonitoringTemplateAlarmConditionCondition
- Body string
- The human-readable content of the delivered alarm notification. Oracle recommends providing guidance to operators for resolving the alarm condition. Consider adding links to standard runbook practices. Avoid entering confidential information.
- Query string
- The Monitoring Query Language (MQL) expression to evaluate for the alarm.
- Severity string
- Severity - Critical/Warning
- Should
Append boolNote - Whether the note need to add into bottom of the body for mapping the alarms information with template or not.
- Should
Append boolUrl - Whether the URL need to add into bottom of the body for mapping the alarms information with template or not.
- Trigger
Delay string - The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING".
- Body string
- The human-readable content of the delivered alarm notification. Oracle recommends providing guidance to operators for resolving the alarm condition. Consider adding links to standard runbook practices. Avoid entering confidential information.
- Query string
- The Monitoring Query Language (MQL) expression to evaluate for the alarm.
- Severity string
- Severity - Critical/Warning
- Should
Append boolNote - Whether the note need to add into bottom of the body for mapping the alarms information with template or not.
- Should
Append boolUrl - Whether the URL need to add into bottom of the body for mapping the alarms information with template or not.
- Trigger
Delay string - The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING".
- body String
- The human-readable content of the delivered alarm notification. Oracle recommends providing guidance to operators for resolving the alarm condition. Consider adding links to standard runbook practices. Avoid entering confidential information.
- query String
- The Monitoring Query Language (MQL) expression to evaluate for the alarm.
- severity String
- Severity - Critical/Warning
- should
Append BooleanNote - Whether the note need to add into bottom of the body for mapping the alarms information with template or not.
- should
Append BooleanUrl - Whether the URL need to add into bottom of the body for mapping the alarms information with template or not.
- trigger
Delay String - The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING".
- body string
- The human-readable content of the delivered alarm notification. Oracle recommends providing guidance to operators for resolving the alarm condition. Consider adding links to standard runbook practices. Avoid entering confidential information.
- query string
- The Monitoring Query Language (MQL) expression to evaluate for the alarm.
- severity string
- Severity - Critical/Warning
- should
Append booleanNote - Whether the note need to add into bottom of the body for mapping the alarms information with template or not.
- should
Append booleanUrl - Whether the URL need to add into bottom of the body for mapping the alarms information with template or not.
- trigger
Delay string - The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING".
- body str
- The human-readable content of the delivered alarm notification. Oracle recommends providing guidance to operators for resolving the alarm condition. Consider adding links to standard runbook practices. Avoid entering confidential information.
- query str
- The Monitoring Query Language (MQL) expression to evaluate for the alarm.
- severity str
- Severity - Critical/Warning
- should_
append_ boolnote - Whether the note need to add into bottom of the body for mapping the alarms information with template or not.
- should_
append_ boolurl - Whether the URL need to add into bottom of the body for mapping the alarms information with template or not.
- trigger_
delay str - The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING".
- body String
- The human-readable content of the delivered alarm notification. Oracle recommends providing guidance to operators for resolving the alarm condition. Consider adding links to standard runbook practices. Avoid entering confidential information.
- query String
- The Monitoring Query Language (MQL) expression to evaluate for the alarm.
- severity String
- Severity - Critical/Warning
- should
Append BooleanNote - Whether the note need to add into bottom of the body for mapping the alarms information with template or not.
- should
Append BooleanUrl - Whether the URL need to add into bottom of the body for mapping the alarms information with template or not.
- trigger
Delay String - The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING".
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
