blob: fc1640f25cd85efd7d16736b9470ebc6d5459294 [file] [log] [blame]
Jian Li0967cd72015-11-25 17:38:48 -08001/*
2 * Copyright 2015 Open Networking Laboratory
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 */
16package org.onosproject.cpman;
17
18/**
19 * Include various control plane metrics.
20 */
Jian Li60804322015-12-02 14:46:31 -080021public class ControlMetric {
Jian Li0967cd72015-11-25 17:38:48 -080022
Jian Li60804322015-12-02 14:46:31 -080023 private final ControlMetricType metricType;
24 private final MetricValue metricValue;
25
Jian Lic132c112016-01-28 20:27:34 -080026 public ControlMetric(ControlMetricType metricType, MetricValue metricValue) {
Jian Li60804322015-12-02 14:46:31 -080027 this.metricType = metricType;
28 this.metricValue = metricValue;
29 }
Jian Li0967cd72015-11-25 17:38:48 -080030
31 ControlMetricType metricType() {
32 return metricType;
33 }
34
Jian Li60804322015-12-02 14:46:31 -080035 MetricValue metricValue() {
Jian Li0967cd72015-11-25 17:38:48 -080036 return metricValue;
37 }
Jian Li0967cd72015-11-25 17:38:48 -080038}