Class EndpointConfiguration
-
- All Implemented Interfaces:
public final class EndpointConfigurationType-safe config DSL that controls the HTTP endpoint for telemetry exports.
-
-
Field Summary
Fields Modifier and Type Field Description private Stringurlprivate StringfullUrlprivate Map<String, String>headersprivate Compressioncompression
-
Method Summary
Modifier and Type Method Description final StringgetUrl()Base URL for HTTP export requests. final UnitsetUrl(String url)Base URL for HTTP export requests. final StringgetFullUrl()Full URL for HTTP export requests. final UnitsetFullUrl(String fullUrl)Full URL for HTTP export requests. final Map<String, String>getHeaders()Headers that should be attached to HTTP export requests. final UnitsetHeaders(Map<String, String> headers)Headers that should be attached to HTTP export requests. final CompressiongetCompression()Compression algorithm. final UnitsetCompression(Compression compression)Compression algorithm. -
-
Method Detail
-
getUrl
final String getUrl()
Base URL for HTTP export requests. The signal-specific path (e.g. /v1/logs) will be appended automatically.
-
setUrl
final Unit setUrl(String url)
Base URL for HTTP export requests. The signal-specific path (e.g. /v1/logs) will be appended automatically.
-
getFullUrl
final String getFullUrl()
Full URL for HTTP export requests. When set, this URL is used as-is without appending any signal-specific path. Use this to specify a completely custom endpoint path, for example "https://example.com/v2/logs". Note: when set, this overrides the baseUrl from the surrounding httpExport block entirely.
-
setFullUrl
final Unit setFullUrl(String fullUrl)
Full URL for HTTP export requests. When set, this URL is used as-is without appending any signal-specific path. Use this to specify a completely custom endpoint path, for example "https://example.com/v2/logs". Note: when set, this overrides the baseUrl from the surrounding httpExport block entirely.
-
getHeaders
final Map<String, String> getHeaders()
Headers that should be attached to HTTP export requests.
-
setHeaders
final Unit setHeaders(Map<String, String> headers)
Headers that should be attached to HTTP export requests.
-
getCompression
final Compression getCompression()
Compression algorithm.
-
setCompression
final Unit setCompression(Compression compression)
Compression algorithm.
-
-
-
-