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

com.github.dikhan.pagerduty.client.events.domain.Severity Maven / Gradle / Ivy

There is a newer version: 3.1.2
Show newest version
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