public final class PerformanceCounterTelemetry extends BaseTelemetry<PerformanceCounterData>
| Constructor and Description |
|---|
PerformanceCounterTelemetry() |
PerformanceCounterTelemetry(java.lang.String categoryName,
java.lang.String counterName,
java.lang.String instanceName,
double value)
Initializes the instance with all the needed data.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
additionalSanitize()
Concrete classes should implement this method
|
java.lang.String |
getCategoryName()
Gets the category name of the performance counter.
|
java.lang.String |
getCounterName()
Gets the counter name of the performance counter.
|
protected PerformanceCounterData |
getData()
Concrete classes should implement this method which supplies the
data structure that this instance works with, which needs to implement
SendableData |
java.lang.String |
getInstanceName()
Gets the instance name of the performance counter.
|
double |
getValue()
Gets the value of the performance counter.
|
void |
setCategoryName(java.lang.String categoryName)
Sets the category name of the performance counter.
|
void |
setCounterName(java.lang.String counterName)
Sets the counter name of the performance counter.
|
void |
setInstanceName(java.lang.String instanceName)
Sets the instance name of the performance counter.
|
void |
setValue(double value)
Sets the value of the performance counter.
|
getContext, getProperties, getSequence, getTimestamp, initialize, sanitize, serialize, setSequence, setTimestamppublic PerformanceCounterTelemetry()
public PerformanceCounterTelemetry(java.lang.String categoryName,
java.lang.String counterName,
java.lang.String instanceName,
double value)
categoryName - Must be non null, non empty value.counterName - Must be non null, non empty value.instanceName - The instance name.value - The value of the performance counter.public void setCategoryName(java.lang.String categoryName)
categoryName - The category name.public java.lang.String getCategoryName()
public void setCounterName(java.lang.String counterName)
counterName - The counter name.public java.lang.String getCounterName()
public void setInstanceName(java.lang.String instanceName)
instanceName - The instance name.public java.lang.String getInstanceName()
public void setValue(double value)
value - The value.public double getValue()
protected void additionalSanitize()
BaseTelemetryadditionalSanitize in class BaseTelemetry<PerformanceCounterData>protected PerformanceCounterData getData()
BaseTelemetrySendableDatagetData in class BaseTelemetry<PerformanceCounterData>