@Test public void testSetName() { MetricTelemetry telemetry = new MetricTelemetry("MockName", 120.1); telemetry.setName("MockName1"); assertEquals("MockName1", telemetry.getName()); assertEquals(120.1, telemetry.getValue(), Math.ulp(120.1)); }
public void setName(String name) { if (Strings.isNullOrEmpty(name)) { throw new IllegalArgumentException("The metric name cannot be null or empty"); } metric.setName(name); }
MetricTelemetry extends BaseTelemetry<MetricData> { public void setName(String name) { if (Strings.isNullOrEmpty(name)) { throw new IllegalArgumentException("The metric name cannot be null or empty"); } metric.setName(name); } }
MetricTelemetry extends BaseTelemetry<MetricData> { public void setName(String name) { if (Strings.isNullOrEmpty(name)) { throw new IllegalArgumentException("The metric name cannot be null or empty"); } metric.setName(name); } MetricTelemetry();  MetricTelemetry(String name, double value); }
MetricTelemetry extends BaseTelemetry<MetricData> { public void setName(String name) { if (Strings.isNullOrEmpty(name)) { throw new IllegalArgumentException("The metric name cannot be null or empty"); } metric.setName(name); } MetricTelemetry();  MetricTelemetry(String name, double value); @Override int getVer(); void markAsCustomPerfCounter(); String getName(); void setName(String name); double getValue(); void setValue(double value); Integer getCount(); void setCount(Integer count); Double getMin(); void setMin(Double value); Double getMax(); void setMax(Double value); Double getStandardDeviation(); void setStandardDeviation(Double value); @Override String getEnvelopName(); @Override String getBaseTypeName(); DataPointType getKind(); }
MetricTelemetry extends BaseTelemetry<MetricData> { public void setName(String name) { if (Strings.isNullOrEmpty(name)) { throw new IllegalArgumentException("The metric name cannot be null or empty"); } metric.setName(name); } MetricTelemetry();  MetricTelemetry(String name, double value); @Override int getVer(); void markAsCustomPerfCounter(); String getName(); void setName(String name); double getValue(); void setValue(double value); Integer getCount(); void setCount(Integer count); Double getMin(); void setMin(Double value); Double getMax(); void setMax(Double value); Double getStandardDeviation(); void setStandardDeviation(Double value); @Override String getEnvelopName(); @Override String getBaseTypeName(); DataPointType getKind(); static final String ENVELOPE_NAME; static final String BASE_TYPE; }