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

package com.azure.resourcemanager.sql.models;

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

/** Defines values for MetricType. */
public final class MetricType extends ExpandableStringEnum<MetricType> {
    /** Static value cpu for MetricType. */
    public static final MetricType CPU = fromString("cpu");

    /** Static value io for MetricType. */
    public static final MetricType IO = fromString("io");

    /** Static value logIo for MetricType. */
    public static final MetricType LOG_IO = fromString("logIo");

    /** Static value duration for MetricType. */
    public static final MetricType DURATION = fromString("duration");

    /** Static value dtu for MetricType. */
    public static final MetricType DTU = fromString("dtu");

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

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