
com.ocadotechnology.newrelic.apiclient.model.channels.AlertsChannelConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of newrelic-api-client Show documentation
Show all versions of newrelic-api-client Show documentation
NewRelic Alerts Configurator can be used to configure NewRelic alerts for your application. Instead of defining alerts through UI you can define them in code. It allows you to automatize alerts configuration, easily recover them in case of wipe out and have full history of changes in your version control system.
package com.ocadotechnology.newrelic.apiclient.model.channels;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Value;
import java.util.Map;
@Value
@EqualsAndHashCode(exclude = {"url"})
@Builder
@AllArgsConstructor
public class AlertsChannelConfiguration {
@JsonProperty("user_id")
Integer userId;
@JsonProperty
String channel;
@JsonProperty
String url;
@JsonProperty("include_json_attachment")
Boolean includeJsonAttachment;
@JsonProperty
String recipients;
@JsonProperty("payload_type")
String payloadType;
/**
* Payload object can be a String
or a Map<String, String>
.
*/
@JsonProperty
Object payload;
@JsonProperty
Map headers;
@JsonProperty("base_url")
String baseUrl;
@JsonProperty("auth_username")
String authUsername;
@JsonProperty("auth_password")
String authPassword;
@JsonProperty("service_key")
String serviceKey;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy