Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* 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 Alert extends com.nutanix.dp1.pri.common.v1.response.ExternalizableAbstractModel implements java.io.Serializable, PriObjectTypeTypedObject {
public Alert() {
super();
}
@lombok.Builder(builderMethodName = "AlertBuilder")
public Alert(String tenantId, String extId, java.util.List links, Boolean isAcknowledged, String acknowledgedByUsername, java.time.OffsetDateTime acknowledgedTime, Boolean isAutoResolved, Boolean isResolved, String resolvedByUsername, java.time.OffsetDateTime resolvedTime, com.nutanix.dp1.pri.prism.v4.common.AlertEntityReference sourceEntity, java.util.List affectedEntities, java.util.List severityTrails, java.util.List metricDetails, String title, String alertType, java.util.List classifications, String clusterUUID, java.time.OffsetDateTime creationTime, java.util.List impactTypes, java.time.OffsetDateTime lastUpdatedTime, String message, String originatingClusterUUID, com.nutanix.dp1.pri.prism.v4.common.Severity severity, Boolean isUserDefined, java.util.List parameters, String serviceName, java.util.List rootCauseAnalysis) {
super(tenantId, extId, links);
this.setIsAcknowledged(isAcknowledged);
this.setAcknowledgedByUsername(acknowledgedByUsername);
this.setAcknowledgedTime(acknowledgedTime);
this.setIsAutoResolved(isAutoResolved);
this.setIsResolved(isResolved);
this.setResolvedByUsername(resolvedByUsername);
this.setResolvedTime(resolvedTime);
this.setSourceEntity(sourceEntity);
this.setAffectedEntities(affectedEntities);
this.setSeverityTrails(severityTrails);
this.setMetricDetails(metricDetails);
this.setTitle(title);
this.setAlertType(alertType);
this.setClassifications(classifications);
this.setClusterUUID(clusterUUID);
this.setCreationTime(creationTime);
this.setImpactTypes(impactTypes);
this.setLastUpdatedTime(lastUpdatedTime);
this.setMessage(message);
this.setOriginatingClusterUUID(originatingClusterUUID);
this.setSeverity(severity);
this.setIsUserDefined(isUserDefined);
this.setParameters(parameters);
this.setServiceName(serviceName);
this.setRootCauseAnalysis(rootCauseAnalysis);
}
@Override
protected String initialize$objectType() {
return "prism.v4.serviceability.Alert";
}
@Override
protected String initialize$fqObjectType() {
return "prism.v4.r0.a2.serviceability.Alert";
}
/**
* Field specifies if the alert is acknowledged or not.
*/
@JsonProperty("isAcknowledged")
public Boolean isAcknowledged = false;
/**
* Name of the user who acknowledged this alert.
*/
@JsonProperty("acknowledgedByUsername")
public String acknowledgedByUsername = null;
/**
* The time in ISO 8601 format when the alert was acknowledged.
*/
@JsonProperty("acknowledgedTime")
public OffsetDateTime acknowledgedTime = null;
/**
* Field specifies if the alert is auto resolved or not.
*/
@JsonProperty("isAutoResolved")
public Boolean isAutoResolved = false;
/**
* Field specifies if the alert is resolved or not.
*/
@JsonProperty("isResolved")
public Boolean isResolved = false;
/**
* Name of the user who resolved this alert.
*/
@JsonProperty("resolvedByUsername")
public String resolvedByUsername = null;
/**
* The time in ISO 8601 format when the alert was resolved.
*/
@JsonProperty("resolvedTime")
public OffsetDateTime resolvedTime = null;
/**
*
*/
@JsonProperty("sourceEntity")
public com.nutanix.dp1.pri.prism.v4.common.AlertEntityReference sourceEntity = null;
/**
* List of all entities that are affected by the alert.
*/
@javax.validation.constraints.Size(min = 0, max = 50)
@JsonProperty("affectedEntities")
public List affectedEntities = null;
/**
* Contains information on the severity change history for alerts. If an alert was de-duplicated without change in severity, then no trail will be present.
*/
@javax.validation.constraints.Size(min = 0, max = 3)
@JsonProperty("severityTrails")
public List severityTrails = null;
/**
* Details of the metric for a metric-based event.
*/
@javax.validation.constraints.Size(min = 0, max = 50)
@JsonProperty("metricDetails")
public List metricDetails = null;
/**
* Title of the alert.
*/
@JsonProperty("title")
public String title = null;
/**
* A preconfigured or dynamically generated unique value for each alert type. For example, A1128 for storage pool space exceeded alerts.
*/
@JsonProperty("alertType")
public String alertType = null;
/**
* Various categories into which this alert type can be classified into. 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 alert.
*/
@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;
/**
* Time in ISO 8601 format when the alert was created.
*/
@JsonProperty("creationTime")
public OffsetDateTime creationTime = null;
/**
* The impact this alert/event will have on the system. For example, availability, performance, capacity and so on.
*/
@javax.validation.constraints.Size(min = 0, max = 8)
@JsonProperty("impactTypes")
public List impactTypes = null;
/**
* Time in ISO 8601 format when the alert was last updated.
*/
@JsonProperty("lastUpdatedTime")
public OffsetDateTime lastUpdatedTime = null;
/**
* Additional message associated with the alert.
*/
@JsonProperty("message")
public String message = null;
/**
* Cluster UUID associated with the cluster where the alert 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("originatingClusterUUID")
public String originatingClusterUUID = null;
/**
*
*/
@JsonProperty("severity")
public com.nutanix.dp1.pri.prism.v4.common.Severity severity = null;
/**
* Flag to indicate if the alert was generated from a user defined alert policy.
*/
@JsonProperty("isUserDefined")
public Boolean isUserDefined = false;
/**
* Additional parameters associated with the alert. These parameters can be used to indicate custom key-value pairs for a given alert instance. For example, Service down in Prism Central alert can have the service name as a parameter.
*/
@javax.validation.constraints.Size(min = 0, max = 50)
@JsonProperty("parameters")
public List parameters = null;
/**
* The service that raised the alert. For internal Nutanix services, this value is set to "Nutanix".
*/
@JsonProperty("serviceName")
public String serviceName = null;
/**
* Possible causes, resolutions and additional details to troubleshoot this alert.
*/
@javax.validation.constraints.Size(min = 0, max = 15)
@JsonProperty("rootCauseAnalysis")
public List rootCauseAnalysis = null;
}