FeatureTelemetry Class
- java.
lang. Object - com.
azure. spring. cloud. feature. management. models. FeatureTelemetry
- com.
public class FeatureTelemetry
Represents telemetry configuration for feature management. This class controls whether telemetry is enabled and provides additional metadata for customizing telemetry information.
Constructor Summary
| Constructor | Description |
|---|---|
| FeatureTelemetry() |
Creates a new instance of the Telemetry class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Map<String,String> |
getMetadata()
Gets the metadata associated with telemetry. |
| boolean |
isEnabled()
Gets whether telemetry is enabled. |
|
Feature |
setEnabled(boolean enabled)
Sets whether telemetry is enabled. |
|
Feature |
setMetadata(Map<String,String> metadata)
Sets the metadata associated with telemetry. |
Methods inherited from java.lang.Object
Constructor Details
FeatureTelemetry
public FeatureTelemetry()
Creates a new instance of the Telemetry class. By default, telemetry is enabled and no metadata is set.
Method Details
getMetadata
public Map<String,String> getMetadata()
Gets the metadata associated with telemetry. The metadata contains key-value pairs that provide additional context for telemetry events.
Returns:
isEnabled
public boolean isEnabled()
Gets whether telemetry is enabled.
Returns:
true if telemetry is enabled, false otherwisesetEnabled
public FeatureTelemetry setEnabled(boolean enabled)
Sets whether telemetry is enabled.
Parameters:
true to enable telemetry, false to disable it
Returns:
setMetadata
public FeatureTelemetry setMetadata(Map<String,String> metadata)
Sets the metadata associated with telemetry.
Parameters:
Returns: