"use strict";
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getAlarmStatusesOutput = exports.getAlarmStatuses = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("../utilities"));
/**
 * 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](https://docs.cloud.oracle.com/iaas/api/#/en/monitoring/latest/AlarmDimensionStatesCollection/RetrieveDimensionStates).
 * Optionally filter by resource or status value.
 *
 * For more information, see
 * [Listing Alarm Statuses](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/list-alarm-status.htm).
 * For important limits information, see
 * [Limits on Monitoring](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits).
 *
 * 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
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as oci from "@pulumi/oci";
 *
 * const testAlarmStatuses = oci.monitoring.getAlarmStatuses({
 *     compartmentId: compartmentId,
 *     compartmentIdInSubtree: alarmStatusCompartmentIdInSubtree === "true",
 *     displayName: alarmStatusDisplayName,
 *     entityId: testEntity.id,
 *     resourceId: testResource.id,
 *     serviceName: testService.name,
 *     status: alarmStatusStatus,
 * });
 * ```
 */
function getAlarmStatuses(args, opts) {
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("oci:Monitoring/getAlarmStatuses:getAlarmStatuses", {
        "compartmentId": args.compartmentId,
        "compartmentIdInSubtree": args.compartmentIdInSubtree,
        "displayName": args.displayName,
        "entityId": args.entityId,
        "filters": args.filters,
        "resourceId": args.resourceId,
        "serviceName": args.serviceName,
        "status": args.status,
    }, opts);
}
exports.getAlarmStatuses = getAlarmStatuses;
/**
 * 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](https://docs.cloud.oracle.com/iaas/api/#/en/monitoring/latest/AlarmDimensionStatesCollection/RetrieveDimensionStates).
 * Optionally filter by resource or status value.
 *
 * For more information, see
 * [Listing Alarm Statuses](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/list-alarm-status.htm).
 * For important limits information, see
 * [Limits on Monitoring](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits).
 *
 * 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
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as oci from "@pulumi/oci";
 *
 * const testAlarmStatuses = oci.monitoring.getAlarmStatuses({
 *     compartmentId: compartmentId,
 *     compartmentIdInSubtree: alarmStatusCompartmentIdInSubtree === "true",
 *     displayName: alarmStatusDisplayName,
 *     entityId: testEntity.id,
 *     resourceId: testResource.id,
 *     serviceName: testService.name,
 *     status: alarmStatusStatus,
 * });
 * ```
 */
function getAlarmStatusesOutput(args, opts) {
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invokeOutput("oci:Monitoring/getAlarmStatuses:getAlarmStatuses", {
        "compartmentId": args.compartmentId,
        "compartmentIdInSubtree": args.compartmentIdInSubtree,
        "displayName": args.displayName,
        "entityId": args.entityId,
        "filters": args.filters,
        "resourceId": args.resourceId,
        "serviceName": args.serviceName,
        "status": args.status,
    }, opts);
}
exports.getAlarmStatusesOutput = getAlarmStatusesOutput;
//# sourceMappingURL=getAlarmStatuses.js.map