blob: 9203d9b56de69663456f308f159069f9bcb6e352 [file] [log] [blame]
Pavlin Radoslavov64d9e472014-10-21 22:01:08 -07001package org.onlab.onos.metrics.topology;
2
3import java.util.List;
Pavlin Radoslavovccc2e332014-10-23 13:46:28 -07004import org.onlab.metrics.EventMetric;
Pavlin Radoslavov5ba8b282014-10-23 01:03:10 -07005import org.onlab.onos.event.Event;
Pavlin Radoslavov64d9e472014-10-21 22:01:08 -07006
7/**
8 * Service interface exported by TopologyMetrics.
9 */
10public interface TopologyMetricsService {
11 /**
12 * Gets the last saved topology events.
13 *
14 * @return the last saved topology events.
15 */
Pavlin Radoslavov5ba8b282014-10-23 01:03:10 -070016 public List<Event> getEvents();
Pavlin Radoslavov64d9e472014-10-21 22:01:08 -070017
18 /**
Pavlin Radoslavovccc2e332014-10-23 13:46:28 -070019 * Gets the Event Metric for the Device Events.
Pavlin Radoslavov64d9e472014-10-21 22:01:08 -070020 *
Pavlin Radoslavovccc2e332014-10-23 13:46:28 -070021 * @return the Event Metric for the Device Events.
Pavlin Radoslavov64d9e472014-10-21 22:01:08 -070022 */
Pavlin Radoslavovccc2e332014-10-23 13:46:28 -070023 public EventMetric topologyDeviceEventMetric();
Pavlin Radoslavov64d9e472014-10-21 22:01:08 -070024
25 /**
Pavlin Radoslavovccc2e332014-10-23 13:46:28 -070026 * Gets the Event Metric for the Host Events.
Pavlin Radoslavov64d9e472014-10-21 22:01:08 -070027 *
Pavlin Radoslavovccc2e332014-10-23 13:46:28 -070028 * @return the Event Metric for the Host Events.
Pavlin Radoslavov64d9e472014-10-21 22:01:08 -070029 */
Pavlin Radoslavovccc2e332014-10-23 13:46:28 -070030 public EventMetric topologyHostEventMetric();
31
32 /**
33 * Gets the Event Metric for the Link Events.
34 *
35 * @return the Event Metric for the Link Events.
36 */
37 public EventMetric topologyLinkEventMetric();
38
39 /**
40 * Gets the Event Metric for the Topology Graph Events.
41 *
42 * @return the Event Metric for the Topology Graph Events.
43 */
44 public EventMetric topologyGraphEventMetric();
Pavlin Radoslavov64d9e472014-10-21 22:01:08 -070045}