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

com.nutanix.dp1.pri.prism.v4.serviceability.Event Maven / Gradle / Ivy

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

package com.nutanix.dp1.pri.prism.v4.serviceability;

import com.fasterxml.jackson.annotation.JsonAnySetter;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.AccessLevel;
import com.nutanix.devplatform.models.PrettyModeViews.*;
import com.fasterxml.jackson.annotation.JsonView;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.nutanix.dp1.pri.deserializers.PriObjectTypeTypedObject;

import javax.validation.constraints.*;

import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;

import static com.nutanix.dp1.pri.deserializers.PriDeserializerUtils.*;





@EqualsAndHashCode(callSuper=true)
@Data
@lombok.extern.slf4j.Slf4j
public class Event extends com.nutanix.dp1.pri.common.v1.response.ExternalizableAbstractModel implements java.io.Serializable, PriObjectTypeTypedObject {

  

  public Event() {
    super();
    
  }

  @lombok.Builder(builderMethodName = "EventBuilder")
  public Event(String tenantId, String extId, java.util.List links, com.nutanix.dp1.pri.prism.v4.common.EntityReference sourceEntity, java.util.List affectedEntities, java.util.List metricDetails, String eventType, java.util.List classifications, String sourceClusterUUID, java.time.OffsetDateTime creationTime, String message, String clusterUUID, java.util.List parameters, String serviceName) {
    super(tenantId, extId, links);

    this.setSourceEntity(sourceEntity);

    this.setAffectedEntities(affectedEntities);

    this.setMetricDetails(metricDetails);

    this.setEventType(eventType);

    this.setClassifications(classifications);

    this.setSourceClusterUUID(sourceClusterUUID);

    this.setCreationTime(creationTime);

    this.setMessage(message);

    this.setClusterUUID(clusterUUID);

    this.setParameters(parameters);

    this.setServiceName(serviceName);
  }

  @Override 
  protected String initialize$objectType() {
    return "prism.v4.serviceability.Event";
  }

  @Override 
  protected String initialize$fqObjectType() {
    return "prism.v4.r0.a2.serviceability.Event";
  }


  
  

  
    /**
    * 
    */
    
    @JsonProperty("sourceEntity")
    public com.nutanix.dp1.pri.prism.v4.common.EntityReference sourceEntity = null;
  
  

  
    /**
    * List of all entities that are affected by the event/audit.
    */
    @javax.validation.constraints.Size(min = 0, max = 50)
    
    @JsonProperty("affectedEntities")
    public List affectedEntities = null;
  
  

  
    /**
    * Details of the metric for a metric-based event.
    */
    @javax.validation.constraints.Size(min = 0, max = 100)
    
    @JsonProperty("metricDetails")
    public List metricDetails = null;
  
  

  
    /**
    * A preconfigured or dynamically generated unique value for each event type.
    */
    
    @JsonProperty("eventType")
    public String eventType = null;
  
  

  
    /**
    * Various categories into which this event type can be classified. For example, Hardware, Storage, License and so on.
    */
    @javax.validation.constraints.Size(min = 0, max = 15)
    
    @JsonProperty("classifications")
    public List classifications = null;
  
  

  
    /**
    * Cluster UUID associated with the source entity of the event.
    */
    @javax.validation.constraints.Pattern(regexp="^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$")
    
    @JsonProperty("sourceClusterUUID")
    public String sourceClusterUUID = null;
  
  

  
    /**
    * The time in ISO 8601 format when the event was created.
    */
    
    @JsonProperty("creationTime")
    public OffsetDateTime creationTime = null;
  
  

  
    /**
    * Additional message associated with the event.
    */
    @javax.validation.constraints.Size(max = 1024)
    
    @JsonProperty("message")
    public String message = null;
  
  

  
    /**
    * Cluster UUID associated with the cluster where the event was first raised.
    */
    @javax.validation.constraints.Pattern(regexp="^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$")
    
    @JsonProperty("clusterUUID")
    public String clusterUUID = null;
  
  

  
    /**
    * Additional parameters associated with the event. These parameters can be used to indicate custom key-value pairs for a given event instance. For example, a service down event in Prism Central can have the service name as a parameter.
    */
    @javax.validation.constraints.Size(min = 0, max = 100)
    
    @JsonProperty("parameters")
    public List parameters = null;
  
  

  
    /**
    * The service which raised the event/audit. For internal Nutanix services, this value is set to "Nutanix".
    */
    
    @JsonProperty("serviceName")
    public String serviceName = null;
  
  

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy