@Override public void execute(Context context) { BMap bStruct = (BMap) context.getRefArgument(0); Gauge gauge = (Gauge) bStruct.getNativeData(ObserveNativeImplConstants.METRIC_NATIVE_INSTANCE_KEY); context.setReturnValues(new BFloat(gauge.getValue())); } }
} else if (metric instanceof Gauge) { Gauge gauge = (Gauge) metric; metricValue = new BFloat(gauge.getValue()); metricType = MetricConstants.GAUGE; summary = Utils.createBSnapshots(gauge.getSnapshots(), context);