Class FeatureTelemetry

java.lang.Object
com.azure.spring.cloud.feature.management.models.FeatureTelemetry

public class FeatureTelemetry extends Object
Represents telemetry configuration for feature management. This class controls whether telemetry is enabled and provides additional metadata for customizing telemetry information.
  • 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:
      true if telemetry is enabled, false otherwise
    • setEnabled

      public FeatureTelemetry setEnabled(boolean enabled)
      Sets whether telemetry is enabled.
      Parameters:
      enabled - true to enable telemetry, false to disable it
      Returns:
      The updated Telemetry instance for method chaining
    • 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:
      A map of metadata key-value pairs
    • setMetadata

      public FeatureTelemetry setMetadata(Map<String,String> metadata)
      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