Skip to content

Commit

Permalink
Updates the cpu_utlization metric name and add constant
Browse files Browse the repository at this point in the history
Signed-off-by: Gagan Juneja <[email protected]>
  • Loading branch information
Gagan Juneja committed Jul 19, 2024
1 parent 589f044 commit 5016c34
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,8 @@ public enum MetricUnits {
MEGABYTE_PER_SEC(Constants.MEGABYTE_PER_SEC_VALUE),
SEGMENT_PER_FLOW(Constants.SEGMENT_PER_FLOW_VALUE),
BYTE_PER_FLOW(Constants.BYTE_PER_FLOW_VALUE),
PACKET_PER_SEC(Constants.PACKET_PER_SEC_VALUE);
PACKET_PER_SEC(Constants.PACKET_PER_SEC_VALUE),
RATE(Constants.RATE);

private final String value;

Expand Down Expand Up @@ -334,6 +335,7 @@ public static class Constants {
public static final String SEGMENT_PER_FLOW_VALUE = "segments/flow";
public static final String BYTE_PER_FLOW_VALUE = "B/flow";
public static final String PACKET_PER_SEC_VALUE = "packets/s";
public static final String RATE = "rate";
}
}

Expand All @@ -352,7 +354,7 @@ public String toString() {
}

public static class Constants {
public static final String CPU_VALUE = "CPU_Utilization";
public static final String CPU_VALUE = "cpu_utilization";
}
}
}

0 comments on commit 5016c34

Please sign in to comment.