@Deprecated public final class PerformanceCounterTelemetry extends BaseTelemetry<PerformanceCounterData>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BASE_TYPE
Deprecated.
Base Type for this telemetry.
|
static java.lang.String |
ENVELOPE_NAME
Deprecated.
Envelope Name for this telemetry.
|
TELEMETRY_NAME_PREFIX
Constructor and Description |
---|
PerformanceCounterTelemetry()
Deprecated.
|
PerformanceCounterTelemetry(java.lang.String categoryName,
java.lang.String counterName,
java.lang.String instanceName,
double value)
Deprecated.
Initializes the instance with all the needed data.
|
Modifier and Type | Method and Description |
---|---|
protected void |
additionalSanitize()
Deprecated.
|
java.lang.String |
getBaseTypeName()
Deprecated.
|
java.lang.String |
getCategoryName()
Deprecated.
Gets the category name of the performance counter.
|
java.lang.String |
getCounterName()
Deprecated.
Gets the counter name of the performance counter.
|
protected PerformanceCounterData |
getData()
Deprecated.
Concrete classes should implement this method which supplies the
data structure that this instance works with, which needs to implement
JsonSerializable |
java.lang.String |
getEnvelopName()
Deprecated.
|
java.lang.String |
getInstanceName()
Deprecated.
Gets the instance name of the performance counter.
|
double |
getValue()
Deprecated.
Gets the value of the performance counter.
|
int |
getVer()
Deprecated.
|
void |
setCategoryName(java.lang.String categoryName)
Deprecated.
Sets the category name of the performance counter.
|
void |
setCounterName(java.lang.String counterName)
Deprecated.
Sets the counter name of the performance counter.
|
void |
setInstanceName(java.lang.String instanceName)
Deprecated.
Sets the instance name of the performance counter.
|
void |
setValue(double value)
Deprecated.
Sets the value of the performance counter.
|
getContext, getProperties, getSequence, getTelemetryName, getTimestamp, initialize, normalizeInstrumentationKey, reset, sanitize, serialize, setSampleRate, setSequence, setTimestamp, toString
public static final java.lang.String ENVELOPE_NAME
public static final java.lang.String BASE_TYPE
public 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 int getVer()
getVer
in class BaseTelemetry<PerformanceCounterData>
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()
@Deprecated protected void additionalSanitize()
BaseTelemetry
additionalSanitize
in class BaseTelemetry<PerformanceCounterData>
protected PerformanceCounterData getData()
BaseTelemetry
JsonSerializable
getData
in class BaseTelemetry<PerformanceCounterData>
public java.lang.String getEnvelopName()
getEnvelopName
in class BaseTelemetry<PerformanceCounterData>
public java.lang.String getBaseTypeName()
getBaseTypeName
in class BaseTelemetry<PerformanceCounterData>