blob: cc370fa36262db9f5bd773c5174628af53da3a2d [file] [log] [blame]
Pavlin Radoslavov64d9e472014-10-21 22:01:08 -07001package org.onlab.onos.metrics.topology;
2
3import java.util.List;
4
5import com.codahale.metrics.Gauge;
6import com.codahale.metrics.Meter;
7import org.onlab.onos.net.topology.TopologyEvent;
8
9/**
10 * Service interface exported by TopologyMetrics.
11 */
12public interface TopologyMetricsService {
13 /**
14 * Gets the last saved topology events.
15 *
16 * @return the last saved topology events.
17 */
18 public List<TopologyEvent> getEvents();
19
20 /**
21 * Gets the Metrics' Gauge for the last topology event timestamp
22 * (ms from the epoch).
23 *
24 * @return the Metrics' Gauge for the last topology event timestamp
25 * (ms from the epoch)
26 */
27 public Gauge<Long> lastEventTimestampEpochMsGauge();
28
29 /**
30 * Gets the Metrics' Meter for the topology events rate.
31 *
32 * @return the Metrics' Meter for the topology events rate
33 */
34 public Meter eventRateMeter();
35}