Pavlin Radoslavov | 295b296 | 2014-10-23 01:12:41 -0700 | [diff] [blame] | 1 | package org.onlab.onos.metrics.intent; |
| 2 | |
| 3 | import java.util.List; |
Pavlin Radoslavov | ccc2e33 | 2014-10-23 13:46:28 -0700 | [diff] [blame] | 4 | import org.onlab.metrics.EventMetric; |
Pavlin Radoslavov | 295b296 | 2014-10-23 01:12:41 -0700 | [diff] [blame] | 5 | import org.onlab.onos.net.intent.IntentEvent; |
| 6 | |
| 7 | /** |
| 8 | * Service interface exported by IntentMetrics. |
| 9 | */ |
| 10 | public interface IntentMetricsService { |
| 11 | /** |
| 12 | * Gets the last saved intent events. |
| 13 | * |
| 14 | * @return the last saved intent events. |
| 15 | */ |
| 16 | public List<IntentEvent> getEvents(); |
| 17 | |
| 18 | /** |
Pavlin Radoslavov | ccc2e33 | 2014-10-23 13:46:28 -0700 | [diff] [blame] | 19 | * Gets the Event Metric for the intent SUBMITTED events. |
Pavlin Radoslavov | 295b296 | 2014-10-23 01:12:41 -0700 | [diff] [blame] | 20 | * |
Pavlin Radoslavov | ccc2e33 | 2014-10-23 13:46:28 -0700 | [diff] [blame] | 21 | * @return the Event Metric for the intent SUBMITTED events. |
Pavlin Radoslavov | 295b296 | 2014-10-23 01:12:41 -0700 | [diff] [blame] | 22 | */ |
Pavlin Radoslavov | ccc2e33 | 2014-10-23 13:46:28 -0700 | [diff] [blame] | 23 | public EventMetric intentSubmittedEventMetric(); |
Pavlin Radoslavov | 295b296 | 2014-10-23 01:12:41 -0700 | [diff] [blame] | 24 | |
| 25 | /** |
Pavlin Radoslavov | ccc2e33 | 2014-10-23 13:46:28 -0700 | [diff] [blame] | 26 | * Gets the Event Metric for the intent INSTALLED events. |
Pavlin Radoslavov | 295b296 | 2014-10-23 01:12:41 -0700 | [diff] [blame] | 27 | * |
Pavlin Radoslavov | ccc2e33 | 2014-10-23 13:46:28 -0700 | [diff] [blame] | 28 | * @return the Event Metric for the intent INSTALLED events. |
Pavlin Radoslavov | 295b296 | 2014-10-23 01:12:41 -0700 | [diff] [blame] | 29 | */ |
Pavlin Radoslavov | ccc2e33 | 2014-10-23 13:46:28 -0700 | [diff] [blame] | 30 | public EventMetric intentInstalledEventMetric(); |
Pavlin Radoslavov | 295b296 | 2014-10-23 01:12:41 -0700 | [diff] [blame] | 31 | |
| 32 | /** |
Pavlin Radoslavov | ccc2e33 | 2014-10-23 13:46:28 -0700 | [diff] [blame] | 33 | * Gets the Event Metric for the intent WITHDRAW_REQUESTED events. |
Pavlin Radoslavov | 295b296 | 2014-10-23 01:12:41 -0700 | [diff] [blame] | 34 | * |
| 35 | * TODO: This intent event is not implemented yet. |
| 36 | * |
Pavlin Radoslavov | ccc2e33 | 2014-10-23 13:46:28 -0700 | [diff] [blame] | 37 | * @return the Event Metric for the intent WITHDRAW_REQUESTED events. |
Pavlin Radoslavov | 295b296 | 2014-10-23 01:12:41 -0700 | [diff] [blame] | 38 | */ |
Pavlin Radoslavov | ccc2e33 | 2014-10-23 13:46:28 -0700 | [diff] [blame] | 39 | public EventMetric intentWithdrawRequestedEventMetric(); |
Pavlin Radoslavov | 295b296 | 2014-10-23 01:12:41 -0700 | [diff] [blame] | 40 | |
| 41 | /** |
Pavlin Radoslavov | ccc2e33 | 2014-10-23 13:46:28 -0700 | [diff] [blame] | 42 | * Gets the Event Metric for the intent WITHDRAWN events. |
Pavlin Radoslavov | 295b296 | 2014-10-23 01:12:41 -0700 | [diff] [blame] | 43 | * |
Pavlin Radoslavov | ccc2e33 | 2014-10-23 13:46:28 -0700 | [diff] [blame] | 44 | * @return the Event Metric for the intent WITHDRAWN events. |
Pavlin Radoslavov | 295b296 | 2014-10-23 01:12:41 -0700 | [diff] [blame] | 45 | */ |
Pavlin Radoslavov | ccc2e33 | 2014-10-23 13:46:28 -0700 | [diff] [blame] | 46 | public EventMetric intentWithdrawnEventMetric(); |
Pavlin Radoslavov | 295b296 | 2014-10-23 01:12:41 -0700 | [diff] [blame] | 47 | } |