com.algolia.model.monitoring.Metric Maven / Gradle / Ivy
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost
// - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
package com.algolia.model.monitoring;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
/** Gets or Sets Metric */
public enum Metric {
AVG_BUILD_TIME("avg_build_time"),
SSD_USAGE("ssd_usage"),
RAM_SEARCH_USAGE("ram_search_usage"),
RAM_INDEXING_USAGE("ram_indexing_usage"),
CPU_USAGE("cpu_usage"),
ALL("*");
private final String value;
Metric(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static Metric fromValue(String value) {
for (Metric b : Metric.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy