Package codes.grow.packages.datadoglogs
package codes.grow.packages.datadoglogs
Grow Codes SDK for Datadog Log Management.
Start with DatadogLogsClient.fromEnv().
Shared building blocks live in core (errors, transport, redaction); category APIs in
secrets, logging and tracing; in-memory fakes and the conformance runner
in testing.
-
ClassDescriptionBuilder of
AggregateLogsOptions.One computation ofDatadogLogsQuery.aggregateLogs(java.util.List<codes.grow.packages.datadoglogs.DatadogCompute>, java.util.List<codes.grow.packages.datadoglogs.DatadogGroupBy>, codes.grow.packages.datadoglogs.AggregateLogsOptions); results are keyedc0,c1, … in order.Builder ofDatadogGroupBy.LogClientthat ships records to the Datadog logs intake through aDatadogLogExporterand a backgroundBatchProcessor.Options ofDatadogLogsClient.logClient(Options): batching (capped at the intake limits: 1000 records, 5 000 000 bytes per batch), resource (merged over the configuredservice,version,envandhostname), redaction and intake limits.Builder ofDatadogLogClient.Options.One log event returned by the Datadog search API, flattened (data[]ofPOST /api/v2/logs/events/search).LogExporterforPOST {intake}/api/v2/logs(API.md section 5; DECISIONS 4, 7).One intake request body before compression.Request limits; values above the Datadog limits are capped.One Datadog log index (GET /api/v1/logs/config/indexes).LogRecordto Datadog JSON and back (API.md sections 5.2 and 6.1; DECISIONS 6, 7, 9).One serialized entry.Client for Datadog Log Management: API key checks, the logs intake (DatadogLogsClient.logClient(),DatadogLogsClient.exporter()) and the query API (DatadogLogsClient.query(), needs the application key).Builder that configures and creates a client in one chain.Immutable configuration of aDatadogLogsClient(SPEC section 2.2, API.md section 2).Builder of the configuration.Filter shared by search and aggregate: query (default*), time window (defaultnow-15mtonow), indexes (default["*"]) and storage tier (defaultindexes).DatadogLogsFilter.Builder<B extends DatadogLogsFilter.Builder<B>>Builder of the filter fields.Datadog Logs query client (needs the application key; API.md section 6; DECISIONS 3, 5, 8).Response metadata shared by search and aggregate (meta).Datadog sites and the host resolver (API.md section 1).The two base URLs of a Datadog site.One point of a timeseries compute.A non-fatal warning of a Datadog query; results may be partial (for example codeunknown_index).Sort order ofDatadogLogsQuery.searchLogs(codes.grow.packages.datadoglogs.SearchLogsRequest)(Datadog wire values).Builder ofSearchLogsRequest.Where a Datadog log query runs (filter.storage_tier).