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.kairos;
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 KairosDB metrics export.
024 *
025 * @author Stephane Nicoll
026 * @since 2.1.0
027 */
028@ConfigurationProperties(prefix = "management.metrics.export.kairos")
029public class KairosProperties extends StepRegistryProperties {
030
031        /**
032         * URI of the KairosDB server.
033         */
034        private String uri = "http://localhost:8080/api/v1/datapoints";
035
036        /**
037         * Login user of the KairosDB server.
038         */
039        private String userName;
040
041        /**
042         * Login password of the KairosDB server.
043         */
044        private String password;
045
046        public String getUri() {
047                return this.uri;
048        }
049
050        public void setUri(String uri) {
051                this.uri = uri;
052        }
053
054        public String getUserName() {
055                return this.userName;
056        }
057
058        public void setUserName(String userName) {
059                this.userName = userName;
060        }
061
062        public String getPassword() {
063                return this.password;
064        }
065
066        public void setPassword(String password) {
067                this.password = password;
068        }
069
070}