com.github.dikhan.pagerduty.client.events.domain.Severity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pagerduty-client Show documentation
Show all versions of pagerduty-client Show documentation
Simple Java PagerDuty client with full integration with PagerDuty Events APIs
package com.github.dikhan.pagerduty.client.events.domain;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* The perceived severity of the status the event is describing with respect to the affected system.
*/
public enum Severity {
CRITICAL("critical"),
ERROR("error"),
WARNING("warning"),
INFO("info");
private final String severity;
Severity(String severity) {
this.severity = severity;
}
@JsonValue
public String getSeverity() {
return severity;
}
@Override
public String toString() {
return getSeverity();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy