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

com.github.dikhan.pagerduty.client.events.domain.EventAction 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 type of event used for incidents.
 */
public enum EventAction {

    TRIGGER("trigger"),
    ACKNOWLEDGE("acknowledge"),
    RESOLVE("resolve");

    private final String eventAction;

    EventAction(String eventAction) {
        this.eventAction = eventAction;
    }

    @JsonValue
    public String getEventType() {
        return eventAction;
    }

    @Override
    public String toString() {
        return getEventType();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy