/// <summary>
 /// Initializes a new instance of the <see cref="Alert" /> class.
 /// </summary>
 /// <param name="alertCategory">Specifies the category for the Alert such as &#39;kDisk&#39;, &#39;kNode&#39;, &#39;kCluster\&quot;, etc..</param>
 /// <param name="alertCode">Specifies a unique code that categorizes the Alert, for example: CE00200014, where CE stands for Cohesity Error, the next 3 digits is the id of the Alert Category (e.g. 002 for &#39;kNode&#39;) and the last 5 digits is the id of the Alert Type (e.g. 00014 for &#39;kNodeHighCpuUsage&#39;)..</param>
 /// <param name="alertDocument">Specifies documentation about the Alert such as name, description, cause and how to resolve the Alert..</param>
 /// <param name="alertState">Specifies the current state of the Alert: &#39;kOpen&#39; or &#39;kResolved&#39;..</param>
 /// <param name="alertType">Specifies a 5 digit unique digital id for the Alert Type, such as 00014 for &#39;kNodeHighCpuUsage&#39;. This id is used in alertCode..</param>
 /// <param name="dedupCount">Provides the total count of duplicated Alerts even if there are more than 25 occurrences..</param>
 /// <param name="dedupTimestamps">Unix epoch Timestamps (in microseconds) for the last 25 occurrences of duplicated Alerts that are stored with the original/primary Alert. Alerts are grouped into one Alert if the Alerts are the same type, are reporting on the same Object and occur within one hour. &#39;dedupCount&#39; always reports the total count of duplicated Alerts even if there are more than 25 occurrences. For example, if there are 100 occurrences of this Alert, dedupTimestamps stores the timestamps of the last 25 occurrences and dedupCount equals 100..</param>
 /// <param name="firstTimestampUsecs">Creation Unix epoch Timestamp (in microseconds) of the first occurrence of the Alert..</param>
 /// <param name="id">Unique id of this Alert..</param>
 /// <param name="latestTimestampUsecs">Creation Unix epoch Timestamp (in microseconds) of the most recent occurrence of the Alert..</param>
 /// <param name="propertyList">Array of key-value pairs associated with the Alert. The Cohesity Cluster may autogenerate properties depending on the Alert type. This list includes both autogenerated and specified properties..</param>
 /// <param name="resolutionDetails">Specifies information about the Alert Resolution such as a summary, id assigned by the Cohesity Cluster, user who resolved the Alerts, etc..</param>
 /// <param name="severity">Specifies the severity level of an Alert. &#39;kCritical&#39; means immediate action is required because the system detects a serious problem. &#39;kWarning&#39; means action is required but the affected functionality is still working. &#39;kInfo&#39; means no action is required and the Alert provides an informational message..</param>
 /// <param name="suppressionId">Unique id generated when the Alert is suppressed by the admin..</param>
 public Alert(AlertCategoryEnum?alertCategory = default(AlertCategoryEnum?), string alertCode = default(string), AlertDocument alertDocument = default(AlertDocument), AlertStateEnum?alertState = default(AlertStateEnum?), int?alertType = default(int?), int?dedupCount = default(int?), List <long?> dedupTimestamps = default(List <long?>), long?firstTimestampUsecs = default(long?), string id = default(string), long?latestTimestampUsecs = default(long?), List <AlertProperty> propertyList = default(List <AlertProperty>), AlertResolutionDetails resolutionDetails = default(AlertResolutionDetails), SeverityEnum?severity = default(SeverityEnum?), long?suppressionId = default(long?))
 {
     this.AlertCategory       = alertCategory;
     this.AlertCode           = alertCode;
     this.AlertDocument       = alertDocument;
     this.AlertState          = alertState;
     this.AlertType           = alertType;
     this.DedupCount          = dedupCount;
     this.DedupTimestamps     = dedupTimestamps;
     this.FirstTimestampUsecs = firstTimestampUsecs;
     this.Id = id;
     this.LatestTimestampUsecs = latestTimestampUsecs;
     this.PropertyList         = propertyList;
     this.ResolutionDetails    = resolutionDetails;
     this.Severity             = severity;
     this.SuppressionId        = suppressionId;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AlertResolution" /> class.
 /// </summary>
 /// <param name="alertIdList">List of Alerts resolved by a Resolution, which are specified by Alert Ids..</param>
 /// <param name="resolutionDetails">Specifies information about the Alert Resolution such as a summary, id assigned by the Cohesity Cluster, user who resolved the Alerts, etc..</param>
 public AlertResolution(List <string> alertIdList = default(List <string>), AlertResolutionDetails resolutionDetails = default(AlertResolutionDetails))
 {
     this.AlertIdList       = alertIdList;
     this.ResolutionDetails = resolutionDetails;
 }