// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.alertsmanagement.models;

import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** The type of signal the alert is based on, which could be metrics, logs or activity logs. */
public final class SignalType extends ExpandableStringEnum<SignalType> {
    /** Static value Metric for SignalType. */
    public static final SignalType METRIC = fromString("Metric");

    /** Static value Log for SignalType. */
    public static final SignalType LOG = fromString("Log");

    /** Static value Unknown for SignalType. */
    public static final SignalType UNKNOWN = fromString("Unknown");

    /**
     * Creates or finds a SignalType from its string representation.
     *
     * @param name a name to look for.
     * @return the corresponding SignalType.
     */
    @JsonCreator
    public static SignalType fromString(String name) {
        return fromString(name, SignalType.class);
    }

    /**
     * Gets known SignalType values.
     *
     * @return known SignalType values.
     */
    public static Collection<SignalType> values() {
        return values(SignalType.class);
    }
}
