Documentation
Sign inGet started

bird sms stats by-tag

Usage

Przykład kodu
bird sms stats by-tag [flags]

Description

SMS delivery and latency stats grouped by tag (name:value), ranked by the sort metric (default accepted) and capped by limit (default 50, maximum 200). Only tagged messages appear, and one carrying several tags counts once under each, so rows do not sum to the period total.

Examples

Przykład kodu
bird sms stats by-tag

Options

NameDescription
--fromStart date (inclusive) in YYYY-MM-DD, interpreted as a calendar day in timezone (a UTC day when timezone is omitted). Defaults to 30 days before to when omitted; with include_trend=true and trend_grain=hourly the default tightens to keep the window within the 720-hour trend cap.
--include-trendWhen true, each row also carries a trend array: a short per-bucket lifecycle-count series for that row over the window. Returned only when limit is 50 or fewer and the window is at most 90 days (trend_grain=daily) or 720 hours (trend_grain=hourly); a larger request returns 422.
--limit <n>Maximum number of tag rows to return, ranked by the sort field descending.
--response-schemaPrint the fields this command returns, then exit
--sortMetric to rank rows by, applied descending. Any lifecycle count or derived rate in the response may be used; rows whose rate is undefined (zero denominator) sort last. Defaults to accepted. Possible values: accepted, sent, delivered, undelivered, failed, rejected, expired, delivery_rate, failure_rate.
--timezoneIANA timezone identifier used to group statistics, for example Asia/Kathmandu. The default is UTC. Day and hour boundaries, including the default window when from and to are omitted, follow this timezone. When this parameter is set, pass from and to as calendar days or Z instants instead of timestamps with explicit UTC offsets.
--toEnd date (inclusive) in YYYY-MM-DD, interpreted as a calendar day in timezone (a UTC day when timezone is omitted). Defaults to today in that timezone when omitted. Window may not exceed 365 days.
--trend-grainBucket grain for the trend series. Has no effect unless include_trend=true. Possible values: daily, hourly.
NameDescription
bird sms stats by-carrierGet outbound SMS statistics by carrier
bird sms stats by-categoryGet outbound SMS statistics by category
bird sms stats by-countryGet outbound SMS statistics by country
bird sms stats by-error-codeGet outbound SMS statistics by error code
bird sms stats by-originatorGet outbound SMS statistics by originator
bird sms stats by-statusGet outbound SMS statistics by status
bird sms stats dailyGet daily outbound SMS statistics
bird sms stats hourlyGet hourly outbound SMS statistics
bird sms stats summaryGet aggregate outbound SMS statistics