blob: e02bf03b6790e49134b4d2902d3859c4dbe87881 [file] [log] [blame]
chengfan2fff70f2015-08-24 18:20:19 -05001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2015-present Open Networking Foundation
chengfan2fff70f2015-08-24 18:20:19 -05003 *
Ray Milkey85267002016-11-16 11:06:35 -08004 * 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
chengfan2fff70f2015-08-24 18:20:19 -05007 *
Ray Milkey85267002016-11-16 11:06:35 -08008 * 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.
chengfan2fff70f2015-08-24 18:20:19 -050015 */
16
17package org.onosproject.pcep.api;
18
19import java.time.Duration;
20import java.util.List;
21
22/**
23 * Statistics of a PCEP tunnel.
24 */
25public interface PcepTunnelStatistics {
26
27
28 /**
29 * Returns the id of PCEP tunnel.
30 *
31 * @return PCEP tunnel id
32 */
33 long id();
34
35
36 /**
37 * Returns the bandwidth utilization of a PCEP tunnel.
38 *
39 * @return PCEP bandwidth utilization
40 */
41 double bandwidthUtilization();
42
43 /**
44 * Returns the flow loss rate of a tunnel.
45 *
46 * @return tunnel flow loss rate
47 */
48 double packetLossRate();
49
50 /**
51 * Returns the end-to-end traffic flow delay of a tunnel.
52 *
53 * @return tunnel traffic flow delay
54 */
55 Duration flowDelay();
56
57 /**
58 * Returns the alarms on a tunnel.
59 *
60 * @return tunnel alarms
61 */
62 List<String> alarms();
63}