blob: d1301b726ddb30341c9b9e7fb1be5d29c694cb30 [file] [log] [blame]
chengfana3c3f752015-08-27 15:22:45 -05001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2015-present Open Networking Foundation
chengfana3c3f752015-08-27 15:22:45 -05003 *
Thomas Vachuska58de4162015-09-10 16:15:33 -07004 * 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
chengfana3c3f752015-08-27 15:22:45 -05007 *
Thomas Vachuska58de4162015-09-10 16:15:33 -07008 * 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.
chengfana3c3f752015-08-27 15:22:45 -050015 */
16
17package org.onosproject.incubator.net.tunnel;
18
Thomas Vachuska4c571ae2015-09-10 16:31:59 -070019import com.google.common.annotations.Beta;
20
chengfana3c3f752015-08-27 15:22:45 -050021import java.time.Duration;
22import java.util.List;
23
24/**
25 * Statistics of a tunnel.
26 */
Thomas Vachuska4c571ae2015-09-10 16:31:59 -070027@Beta
chengfana3c3f752015-08-27 15:22:45 -050028public interface TunnelStatistics {
29
30 /**
31 * Returns the tunnel id.
32 *
33 * @return tunnelId id of tunnel
34 */
35 TunnelId id();
36
37 /**
38 * Returns the bandwidth utilization of a tunnel.
39 *
40 * @return bandwidth utilization
41 */
42 double bandwidthUtilization();
43
44 /**
chengfan2fff70f2015-08-24 18:20:19 -050045 * Returns the packet loss ratio of a tunnel.
chengfana3c3f752015-08-27 15:22:45 -050046 *
47 * @return tunnel packet loss ratio
48 */
49 double packetLossRate();
50
51 /**
52 * Returns the end-to-end traffic flow delay of a tunnel.
53 *
54 * @return tunnel flow delay
55 */
56 Duration flowDelay();
57
58 /**
59 * Returns the alarms on a tunnel.
60 *
61 * @return tunnel alarms
62 */
63 List<String> alarms();
64}