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.dynatrace;
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 Dynatrace metrics export.
024 *
025 * @author Andy Wilkinson
026 * @since 2.1.0
027 */
028@ConfigurationProperties(prefix = "management.metrics.export.dynatrace")
029public class DynatraceProperties extends StepRegistryProperties {
030
031        /**
032         * Dynatrace authentication token.
033         */
034        private String apiToken;
035
036        /**
037         * ID of the custom device that is exporting metrics to Dynatrace.
038         */
039        private String deviceId;
040
041        /**
042         * Technology type for exported metrics. Used to group metrics under a logical
043         * technology name in the Dynatrace UI.
044         */
045        private String technologyType = "java";
046
047        /**
048         * URI to ship metrics to. Should be used for SaaS, self managed instances or to
049         * en-route through an internal proxy.
050         */
051        private String uri;
052
053        public String getApiToken() {
054                return this.apiToken;
055        }
056
057        public void setApiToken(String apiToken) {
058                this.apiToken = apiToken;
059        }
060
061        public String getDeviceId() {
062                return this.deviceId;
063        }
064
065        public void setDeviceId(String deviceId) {
066                this.deviceId = deviceId;
067        }
068
069        public String getTechnologyType() {
070                return this.technologyType;
071        }
072
073        public void setTechnologyType(String technologyType) {
074                this.technologyType = technologyType;
075        }
076
077        public String getUri() {
078                return this.uri;
079        }
080
081        public void setUri(String uri) {
082                this.uri = uri;
083        }
084
085}