blob: 30e85a962171a173870c12a37029b81a6cb2e86a [file] [log] [blame]
kdarapu97843dc2018-05-10 12:46:32 +05301/*
2 * Copyright 2017-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package org.onosproject.nodemetrics;
18
19public enum Units {
20 /**
21 * Units for Memory and Disk.
22 */
23 BYTES("bytes"), KBYTES("Kbs"), MBYTES("Mbs"), GBYTES("Gbs");
24
25 private final String units;
26
27 Units(String units) {
28 this.units = units;
29 }
30
31 /**
32 * Returns units for Memory and Diskusage.
33 * @return units for Memory and Diskusage
34 */
35 public String units() {
36 return units;
37 }
38}