Jian Li | b97f6fb | 2016-03-21 11:33:28 -0700 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2016-present Open Networking Foundation |
Jian Li | b97f6fb | 2016-03-21 11:33:28 -0700 | [diff] [blame] | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | package org.onosproject.influxdbmetrics; |
| 17 | |
Jian Li | 55cbd5c | 2016-04-06 09:50:20 -0700 | [diff] [blame] | 18 | import org.onlab.metrics.MetricsReporter; |
| 19 | |
Jian Li | b97f6fb | 2016-03-21 11:33:28 -0700 | [diff] [blame] | 20 | /** |
Jian Li | e1d97c9 | 2016-03-22 10:21:44 -0700 | [diff] [blame] | 21 | * A Metric reporter interface for reporting all metrics to influxDB server. |
Jian Li | b97f6fb | 2016-03-21 11:33:28 -0700 | [diff] [blame] | 22 | */ |
Jian Li | 55cbd5c | 2016-04-06 09:50:20 -0700 | [diff] [blame] | 23 | public interface InfluxDbMetricsReporter extends MetricsReporter { |
Jian Li | b97f6fb | 2016-03-21 11:33:28 -0700 | [diff] [blame] | 24 | |
| 25 | /** |
Jian Li | e1d97c9 | 2016-03-22 10:21:44 -0700 | [diff] [blame] | 26 | * Configures default parameters for influx database metrics reporter. |
Jian Li | b97f6fb | 2016-03-21 11:33:28 -0700 | [diff] [blame] | 27 | * |
Jian Li | e1d97c9 | 2016-03-22 10:21:44 -0700 | [diff] [blame] | 28 | * @param address IP address of influxDB server |
| 29 | * @param port Port number of influxDB server |
| 30 | * @param database Database name of influxDB server |
| 31 | * @param username Username of influxDB server |
| 32 | * @param password Password of influxDB server |
Jian Li | b97f6fb | 2016-03-21 11:33:28 -0700 | [diff] [blame] | 33 | */ |
Jian Li | e1d97c9 | 2016-03-22 10:21:44 -0700 | [diff] [blame] | 34 | void config(String address, int port, String database, String username, String password); |
Jian Li | b97f6fb | 2016-03-21 11:33:28 -0700 | [diff] [blame] | 35 | } |