// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.AliCloud.Arms.Outputs
{

    [OutputType]
    public sealed class GetPrometheusAlertRulesRuleResult
    {
        /// <summary>
        /// The annotations of the alert rule.
        /// </summary>
        public readonly ImmutableArray<Outputs.GetPrometheusAlertRulesRuleAnnotationResult> Annotations;
        /// <summary>
        /// The ID of the cluster.
        /// </summary>
        public readonly string ClusterId;
        /// <summary>
        /// The ID of the notification policy. This parameter is required when the `notify_type` parameter is set to `DISPATCH_RULE`.
        /// </summary>
        public readonly string DispatchRuleId;
        /// <summary>
        /// -The duration of the alert.
        /// </summary>
        public readonly string Duration;
        /// <summary>
        /// The alert rule expression that follows the PromQL syntax..
        /// </summary>
        public readonly string Expression;
        /// <summary>
        /// The ID of the Prometheus Alert Rule.
        /// </summary>
        public readonly string Id;
        /// <summary>
        /// -The labels of the resource.
        /// </summary>
        public readonly ImmutableArray<Outputs.GetPrometheusAlertRulesRuleLabelResult> Labels;
        /// <summary>
        /// The message of the alert notification.
        /// </summary>
        public readonly string Message;
        /// <summary>
        /// The method of sending the alert notification. Valid values: `ALERT_MANAGER`, `DISPATCH_RULE`.
        /// </summary>
        public readonly string NotifyType;
        /// <summary>
        /// The first ID of the resource.
        /// </summary>
        public readonly string PrometheusAlertRuleId;
        /// <summary>
        /// The name of the resource.
        /// </summary>
        public readonly string PrometheusAlertRuleName;
        /// <summary>
        /// The status of the resource. Valid values: `0`, `1`.
        /// * `1`: open.
        /// * `0`: off.
        /// </summary>
        public readonly int Status;
        /// <summary>
        /// The type of the alert rule.
        /// </summary>
        public readonly string Type;

        [OutputConstructor]
        private GetPrometheusAlertRulesRuleResult(
            ImmutableArray<Outputs.GetPrometheusAlertRulesRuleAnnotationResult> annotations,

            string clusterId,

            string dispatchRuleId,

            string duration,

            string expression,

            string id,

            ImmutableArray<Outputs.GetPrometheusAlertRulesRuleLabelResult> labels,

            string message,

            string notifyType,

            string prometheusAlertRuleId,

            string prometheusAlertRuleName,

            int status,

            string type)
        {
            Annotations = annotations;
            ClusterId = clusterId;
            DispatchRuleId = dispatchRuleId;
            Duration = duration;
            Expression = expression;
            Id = id;
            Labels = labels;
            Message = message;
            NotifyType = notifyType;
            PrometheusAlertRuleId = prometheusAlertRuleId;
            PrometheusAlertRuleName = prometheusAlertRuleName;
            Status = status;
            Type = type;
        }
    }
}
