blob: 204f5626428e4642fd094dab9c0cdc3e7051e764 [file] [log] [blame]
pankaj390abbc2014-10-01 17:01:05 -07001package org.onlab.metrics;
2
3/**
4 * Features to tag metrics.
5 */
6public class MetricsFeature {
7 private final String name;
8
9 /**
10 * Constructs a Feature from a name.
11 *
12 * @param newName name of the Feature
13 */
pankaj0d237832014-10-02 18:08:16 -070014 public MetricsFeature(final String newName) {
pankaj390abbc2014-10-01 17:01:05 -070015 name = newName;
16 }
17
Pavlin Radoslavovdf042bd2014-10-21 21:46:46 -070018 /**
19 * Fetches the name of the Feature.
20 *
21 * @return name of the Feature
22 */
pankaj390abbc2014-10-01 17:01:05 -070023 public String getName() {
24 return name;
25 }
26}