OptionalretryConfig: RetryConfigAccount-level metrics.
Input for account-level metrics.
Optionalend?: number | DateEnd timestamp (Date, or milliseconds since Unix epoch), if applicable for the metric set.
Optionalinterval?: TimeseriesIntervalInterval to aggregate over for timeseries metric sets.
Metric set to return.
estimated-billable-usage returns estimated USD by billing dimension and as a total series.
Supports hour (default) and day intervals, aggregating finalized hours. Daily points may be partial.
Optionalstart?: number | DateStart timestamp (Date, or milliseconds since Unix epoch), if applicable for the metric set.
Optionaloptions: S2RequestOptionsBasin-level metrics.
Input for basin-level metrics.
Basin name.
Optionalend?: number | DateEnd timestamp (Date, or milliseconds since Unix epoch), if applicable for the metric set.
Optionalinterval?: TimeseriesIntervalInterval to aggregate over for timeseries metric sets.
Metric set to return.
Optionalstart?: number | DateStart timestamp (Date, or milliseconds since Unix epoch), if applicable for the metric set.
Optionaloptions: S2RequestOptionsStream-level metrics.
Input for stream-level metrics.
Basin name.
Optionalend?: number | DateEnd timestamp (Date, or milliseconds since Unix epoch), if applicable for the metric set.
Optionalinterval?: TimeseriesIntervalInterval to aggregate over for timeseries metric sets.
Metric set to return.
Optionalstart?: number | DateStart timestamp (Date, or milliseconds since Unix epoch), if applicable for the metric set.
Stream name.
Optionaloptions: S2RequestOptions
Helper for querying account, basin, and stream level metrics.
Access via S2.metrics. Responses are automatically converted to Date-friendly SDK types.