3 * * Copyright 2015 Open Networking Laboratory
5 * * Licensed under the Apache License, Version 2.0 (the "License");
6 * * you may not use this file except in compliance with the License.
7 * * You may obtain a copy of the License at
9 * * http://www.apache.org/licenses/LICENSE-2.0
11 * * Unless required by applicable law or agreed to in writing, software
12 * * distributed under the License is distributed on an "AS IS" BASIS,
13 * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * * See the License for the specific language governing permissions and
15 * * limitations under the License.
19 package org.onosproject.incubator.net.tunnel;
21 import java.time.Duration;
22 import java.util.List;
25 * Statistics of a tunnel.
27 public interface TunnelStatistics {
30 * Returns the tunnel id.
32 * @return tunnelId id of tunnel
37 * Returns the bandwidth utilization of a tunnel.
39 * @return bandwidth utilization
41 double bandwidthUtilization();
44 * Returns the packet loss ratio of a tunnel.
46 * @return tunnel packet loss ratio
48 double packetLossRate();
51 * Returns the end-to-end traffic flow delay of a tunnel.
53 * @return tunnel flow delay
58 * Returns the alarms on a tunnel.
60 * @return tunnel alarms
62 List<String> alarms();