Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.StackMonitoring.getMonitoringTemplateAlarmCondition
Explore with Pulumi AI
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/v2/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:
- AlarmCondition stringId 
- The OCID of the alarm condition.
- MonitoringTemplate stringId 
- The OCID of the monitoring template.
- AlarmCondition stringId 
- The OCID of the alarm condition.
- MonitoringTemplate stringId 
- The OCID of the monitoring template.
- alarmCondition StringId 
- The OCID of the alarm condition.
- monitoringTemplate StringId 
- The OCID of the monitoring template.
- alarmCondition stringId 
- The OCID of the alarm condition.
- monitoringTemplate 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.
- alarmCondition StringId 
- The OCID of the alarm condition.
- monitoringTemplate StringId 
- The OCID of the monitoring template.
getMonitoringTemplateAlarmCondition Result
The following output properties are available:
- AlarmCondition stringId 
- CompositeType string
- The OCID of the composite resource type like EBS/PEOPLE_SOFT.
- ConditionType string
- Type of defined monitoring template.
- Conditions
List<GetMonitoring 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.
- MetricName string
- The metric name.
- MonitoringTemplate stringId 
- The OCID of the monitoring template.
- Namespace string
- The stack monitoring service or application emitting the metric that is evaluated by the alarm.
- ResourceType 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"}
- TimeCreated string
- The date and time the alarm condition was created. Format defined by RFC3339.
- TimeUpdated string
- The date and time the alarm condition was updated. Format defined by RFC3339.
- AlarmCondition stringId 
- CompositeType string
- The OCID of the composite resource type like EBS/PEOPLE_SOFT.
- ConditionType string
- Type of defined monitoring template.
- Conditions
[]GetMonitoring 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.
- MetricName string
- The metric name.
- MonitoringTemplate stringId 
- The OCID of the monitoring template.
- Namespace string
- The stack monitoring service or application emitting the metric that is evaluated by the alarm.
- ResourceType 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"}
- TimeCreated string
- The date and time the alarm condition was created. Format defined by RFC3339.
- TimeUpdated string
- The date and time the alarm condition was updated. Format defined by RFC3339.
- alarmCondition StringId 
- compositeType String
- The OCID of the composite resource type like EBS/PEOPLE_SOFT.
- conditionType String
- Type of defined monitoring template.
- conditions
List<GetMonitoring 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.
- metricName String
- The metric name.
- monitoringTemplate StringId 
- The OCID of the monitoring template.
- namespace String
- The stack monitoring service or application emitting the metric that is evaluated by the alarm.
- resourceType 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"}
- timeCreated String
- The date and time the alarm condition was created. Format defined by RFC3339.
- timeUpdated String
- The date and time the alarm condition was updated. Format defined by RFC3339.
- alarmCondition stringId 
- compositeType string
- The OCID of the composite resource type like EBS/PEOPLE_SOFT.
- conditionType string
- Type of defined monitoring template.
- conditions
GetMonitoring 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.
- metricName string
- The metric name.
- monitoringTemplate stringId 
- The OCID of the monitoring template.
- namespace string
- The stack monitoring service or application emitting the metric that is evaluated by the alarm.
- resourceType 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"}
- timeCreated string
- The date and time the alarm condition was created. Format defined by RFC3339.
- timeUpdated 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[GetMonitoring 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.
- alarmCondition StringId 
- compositeType String
- The OCID of the composite resource type like EBS/PEOPLE_SOFT.
- conditionType 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.
- metricName String
- The metric name.
- monitoringTemplate StringId 
- The OCID of the monitoring template.
- namespace String
- The stack monitoring service or application emitting the metric that is evaluated by the alarm.
- resourceType 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"}
- timeCreated String
- The date and time the alarm condition was created. Format defined by RFC3339.
- timeUpdated 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
- ShouldAppend boolNote 
- Whether the note need to add into bottom of the body for mapping the alarms information with template or not.
- ShouldAppend boolUrl 
- Whether the URL need to add into bottom of the body for mapping the alarms information with template or not.
- TriggerDelay 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
- ShouldAppend boolNote 
- Whether the note need to add into bottom of the body for mapping the alarms information with template or not.
- ShouldAppend boolUrl 
- Whether the URL need to add into bottom of the body for mapping the alarms information with template or not.
- TriggerDelay 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
- shouldAppend BooleanNote 
- Whether the note need to add into bottom of the body for mapping the alarms information with template or not.
- shouldAppend BooleanUrl 
- Whether the URL need to add into bottom of the body for mapping the alarms information with template or not.
- triggerDelay 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
- shouldAppend booleanNote 
- Whether the note need to add into bottom of the body for mapping the alarms information with template or not.
- shouldAppend booleanUrl 
- Whether the URL need to add into bottom of the body for mapping the alarms information with template or not.
- triggerDelay 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
- shouldAppend BooleanNote 
- Whether the note need to add into bottom of the body for mapping the alarms information with template or not.
- shouldAppend BooleanUrl 
- Whether the URL need to add into bottom of the body for mapping the alarms information with template or not.
- triggerDelay 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.