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

org.graylog.integrations.pagerduty.dto.PagerDutyMessage Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
/*
 * Copyright (C) 2020 Graylog, Inc.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the Server Side Public License, version 1,
 * as published by MongoDB, Inc.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * Server Side Public License for more details.
 *
 * You should have received a copy of the Server Side Public License
 * along with this program. If not, see
 * .
 */
package org.graylog.integrations.pagerduty.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;

/**
 * @author Edgar Molina
 *
 */
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class PagerDutyMessage {
    @JsonProperty("routing_key")
    private final String routingKey;
    @JsonProperty("event_action")
    private final String eventAction;
    @JsonProperty("dedup_key")
    private final String dedupKey;
    @JsonProperty("client")
    private final String client;
    @JsonProperty("client_url")
    private final String clientUrl;
    @JsonProperty("links")
    private final List links;
    @JsonProperty("payload")
    private final Map payload;

    public PagerDutyMessage(
            String routingKey,
            String eventAction,
            String dedupKey,
            String client,
            String clientUrl,
            List links,
            Map payload) {
        this.routingKey = routingKey;
        this.eventAction = eventAction;
        this.dedupKey = dedupKey;
        this.client = client;
        this.clientUrl = clientUrl;
        this.links = links;
        this.payload = payload;
    }

    public String getRoutingKey() {
        return routingKey;
    }

    public String getEventAction() {
        return eventAction;
    }

    public String getDedupKey() {
        return dedupKey;
    }

    public String getClient() {
        return client;
    }

    public String getClientUrl() {
        return clientUrl;
    }

    public List getLinks() {
        return links;
    }

    public Map getPayload() {
        return payload;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy