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

com.nutanix.dp1.aio.common.v1.stats.DownSamplingOperator Maven / Gradle / Ivy

Go to download

Manage infrastructure on-premises and in the cloud seamlessly through AIOps features such as Analysis, Reporting, Capacity Planning, What if Analysis, VM Rightsizing, Troubleshooting, App Discovery, Broad Observability, and Ops Automation through Playbooks.

The newest version!
/*
 * Generated file ..
 *
 * Product version: 4.0.3-alpha-2
 *
 * Part of the Nutanix Aiops Versioned APIs
 *
 * (c) 2023 Nutanix Inc.  All rights reserved
 *
 */

package com.nutanix.dp1.aio.common.v1.stats;


import javax.validation.constraints.*;


import static com.nutanix.dp1.aio.deserializers.AioDeserializerUtils.*;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Arrays;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.stream.Collectors;

/**
 * The operator to use while performing down-sampling on stats data. Allowed values are SUM, MIN, MAX, AVG, COUNT and LAST.
 */

public enum DownSamplingOperator {

  
  $UNKNOWN,
    
  $REDACTED,
    
  SUM,
    
  MIN,
    
  MAX,
    
  AVG,
    
  COUNT,
    
  LAST  ;

  private static final Map lookup = new LinkedHashMap();

  static {
    lookup.put("$UNKNOWN", $UNKNOWN);
    lookup.put("$REDACTED", $REDACTED);
    lookup.put("SUM", SUM);
    lookup.put("MIN", MIN);
    lookup.put("MAX", MAX);
    lookup.put("AVG", AVG);
    lookup.put("COUNT", COUNT);
    lookup.put("LAST", LAST);
  }

  @JsonCreator
  public static DownSamplingOperator fromString(String enumTypeVar) {
    return lookup.getOrDefault(enumTypeVar, DownSamplingOperator.$UNKNOWN);
  }

  @JsonValue
  public String fromEnum() {
    for (Map.Entry entry : lookup.entrySet()) {
      if (entry.getValue() == this) {
        return entry.getKey();
      }
    }
    return "$UNKNOWN";
  }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy