blob: 20ed00e395d369d1c08440e55a121da454e9bca8 [file] [log] [blame]
chengfan2fff70f2015-08-24 18:20:19 -05001/*
2 *
3 * * Copyright 2015 Open Networking Laboratory
4 * *
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
8 * *
9 * * http://www.apache.org/licenses/LICENSE-2.0
10 * *
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.
16 *
17 */
18
19package org.onosproject.pcep.api;
20
21import java.time.Duration;
22import java.util.List;
23
24/**
25 * Statistics of a PCEP tunnel.
26 */
27public interface PcepTunnelStatistics {
28
29
30 /**
31 * Returns the id of PCEP tunnel.
32 *
33 * @return PCEP tunnel id
34 */
35 long id();
36
37
38 /**
39 * Returns the bandwidth utilization of a PCEP tunnel.
40 *
41 * @return PCEP bandwidth utilization
42 */
43 double bandwidthUtilization();
44
45 /**
46 * Returns the flow loss rate of a tunnel.
47 *
48 * @return tunnel flow loss rate
49 */
50 double packetLossRate();
51
52 /**
53 * Returns the end-to-end traffic flow delay of a tunnel.
54 *
55 * @return tunnel traffic flow delay
56 */
57 Duration flowDelay();
58
59 /**
60 * Returns the alarms on a tunnel.
61 *
62 * @return tunnel alarms
63 */
64 List<String> alarms();
65}