Class FeatureTelemetry
java.lang.Object
com.azure.spring.cloud.feature.management.models.FeatureTelemetry
Represents telemetry configuration for feature management.
This class controls whether telemetry is enabled and provides additional
metadata for customizing telemetry information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the metadata associated with telemetry.booleanGets whether telemetry is enabled.setEnabled(boolean enabled) Sets whether telemetry is enabled.setMetadata(Map<String, String> metadata) Sets the metadata associated with telemetry.
-
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
-
isEnabled
public boolean isEnabled()Gets whether telemetry is enabled.- Returns:
trueif telemetry is enabled,falseotherwise
-
setEnabled
Sets whether telemetry is enabled.- Parameters:
enabled-trueto enable telemetry,falseto disable it- Returns:
- The updated Telemetry instance for method chaining
-
getMetadata
-
setMetadata
Sets the metadata associated with telemetry.- Parameters:
metadata- A map of key-value pairs to provide additional context for telemetry events- Returns:
- The updated Telemetry instance for method chaining
-