All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.ai.metricsadvisor.implementation.models.Granularity Maven / Gradle / Ivy

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

package com.azure.ai.metricsadvisor.implementation.models;

import com.azure.core.util.ExpandableStringEnum;
import java.util.Collection;

/**
 * granularity of the time series.
 */
public final class Granularity extends ExpandableStringEnum {
    /**
     * Static value Yearly for Granularity.
     */
    public static final Granularity YEARLY = fromString("Yearly");

    /**
     * Static value Monthly for Granularity.
     */
    public static final Granularity MONTHLY = fromString("Monthly");

    /**
     * Static value Weekly for Granularity.
     */
    public static final Granularity WEEKLY = fromString("Weekly");

    /**
     * Static value Daily for Granularity.
     */
    public static final Granularity DAILY = fromString("Daily");

    /**
     * Static value Hourly for Granularity.
     */
    public static final Granularity HOURLY = fromString("Hourly");

    /**
     * Static value Minutely for Granularity.
     */
    public static final Granularity MINUTELY = fromString("Minutely");

    /**
     * Static value Custom for Granularity.
     */
    public static final Granularity CUSTOM = fromString("Custom");

    /**
     * Creates a new instance of Granularity value.
     * 
     * @deprecated Use the {@link #fromString(String)} factory method.
     */
    @Deprecated
    public Granularity() {
    }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy