com.microsoft.azure.management.monitor.implementation.IncidentInner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-monitor Show documentation
Show all versions of azure-mgmt-monitor Show documentation
This package contains Microsoft Azure Monitor SDK. This package has been deprecated. A replacement package com.azure.resourcemanager:azure-resourcemanager-monitor is available as of 31-March-2022. We strongly encourage you to upgrade to continue receiving updates. See Migration Guide https://aka.ms/java-track2-migration-guide for guidance on upgrading. Refer to our deprecation policy https://azure.github.io/azure-sdk/policies_support.html for more details.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.monitor.implementation;
import org.joda.time.DateTime;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* An alert incident indicates the activation status of an alert rule.
*/
public class IncidentInner {
/**
* Incident name.
*/
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private String name;
/**
* Rule name that is associated with the incident.
*/
@JsonProperty(value = "ruleName", access = JsonProperty.Access.WRITE_ONLY)
private String ruleName;
/**
* A boolean to indicate whether the incident is active or resolved.
*/
@JsonProperty(value = "isActive", access = JsonProperty.Access.WRITE_ONLY)
private Boolean isActive;
/**
* The time at which the incident was activated in ISO8601 format.
*/
@JsonProperty(value = "activatedTime", access = JsonProperty.Access.WRITE_ONLY)
private DateTime activatedTime;
/**
* The time at which the incident was resolved in ISO8601 format. If null,
* it means the incident is still active.
*/
@JsonProperty(value = "resolvedTime", access = JsonProperty.Access.WRITE_ONLY)
private DateTime resolvedTime;
/**
* Get incident name.
*
* @return the name value
*/
public String name() {
return this.name;
}
/**
* Get rule name that is associated with the incident.
*
* @return the ruleName value
*/
public String ruleName() {
return this.ruleName;
}
/**
* Get a boolean to indicate whether the incident is active or resolved.
*
* @return the isActive value
*/
public Boolean isActive() {
return this.isActive;
}
/**
* Get the time at which the incident was activated in ISO8601 format.
*
* @return the activatedTime value
*/
public DateTime activatedTime() {
return this.activatedTime;
}
/**
* Get the time at which the incident was resolved in ISO8601 format. If null, it means the incident is still active.
*
* @return the resolvedTime value
*/
public DateTime resolvedTime() {
return this.resolvedTime;
}
}