Helpers for connecting to the Daytona analytics API.
Analytics endpoints (ExDaytona.Api.Usage, ExDaytona.Api.Telemetry)
are served from their own base URL, not the main platform one.
analytics = ExDaytona.Analytics.connection(bearer_token: token)
{:ok, usage} =
ExDaytona.Api.Usage.get_organization_usage_aggregated(
analytics,
org_id,
from,
to
)The default base URL is https://analytics.app.daytona.io; override it with:
config :ex_daytona, analytics_base_url: "https://..."
Summary
Functions
Build a ExDaytona.Connection for the analytics API.
Functions
@spec connection(ExDaytona.Connection.options()) :: Tesla.Env.client()
Build a ExDaytona.Connection for the analytics API.
Accepts the same options as ExDaytona.Connection.new/1 (e.g.
bearer_token). The base URL comes from the
:analytics_base_url application env, falling back to
"https://analytics.app.daytona.io".