Udostępnij przez


FeatureTelemetry Class

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

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.

FeatureTelemetry setEnabled(boolean enabled)

Sets whether telemetry is enabled.

FeatureTelemetry 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:

A map of metadata key-value pairs

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

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

Applies to