001/* 002 * Copyright 2012-2018 the original author or authors. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 017package org.springframework.boot.actuate.autoconfigure.metrics.export.newrelic; 018 019import org.springframework.boot.actuate.autoconfigure.metrics.export.properties.StepRegistryProperties; 020import org.springframework.boot.context.properties.ConfigurationProperties; 021 022/** 023 * {@link ConfigurationProperties} for configuring New Relic metrics export. 024 * 025 * @author Jon Schneider 026 * @author Andy Wilkinson 027 * @author Stephane Nicoll 028 * @since 2.0.0 029 */ 030@ConfigurationProperties(prefix = "management.metrics.export.newrelic") 031public class NewRelicProperties extends StepRegistryProperties { 032 033 /** 034 * New Relic API key. 035 */ 036 private String apiKey; 037 038 /** 039 * New Relic account ID. 040 */ 041 private String accountId; 042 043 /** 044 * URI to ship metrics to. 045 */ 046 private String uri = "https://insights-collector.newrelic.com"; 047 048 public String getApiKey() { 049 return this.apiKey; 050 } 051 052 public void setApiKey(String apiKey) { 053 this.apiKey = apiKey; 054 } 055 056 public String getAccountId() { 057 return this.accountId; 058 } 059 060 public void setAccountId(String accountId) { 061 this.accountId = accountId; 062 } 063 064 public String getUri() { 065 return this.uri; 066 } 067 068 public void setUri(String uri) { 069 this.uri = uri; 070 } 071 072}