POST
/
events
/
backfills

Authorizations

Authorization
string
header
required

API Keys can be issued in the Orb's web application.

Body

application/json
timeframe_end
string
required

The (exclusive) end of the usage timeframe affected by this backfill.

timeframe_start
string
required

The (inclusive) start of the usage timeframe affected by this backfill.

close_time
string | null

The time at which no more events will be accepted for this backfill. The backfill will automatically begin reflecting throughout Orb at the close time. If not specified, it will default to 1 day after the creation of the backfill.

customer_id
string | null

The Orb-generated ID of the customer to which this backfill is scoped. Omitting this field will scope the backfill to all customers.

deprecation_filter
string | null

A boolean computed property used to filter the set of events to deprecate

external_customer_id
string | null

The external customer ID of the customer to which this backfill is scoped. Omitting this field will scope the backfill to all customers.

replace_existing_events
boolean
default:
true

If true, replaces all existing events in the timeframe with the newly ingested events. If false, adds the newly ingested events to the existing events.

Response

200 - application/json

A backfill represents an update to historical usage data, adding or replacing events in a timeframe.

close_time
string | null
required

If in the future, the time at which the backfill will automatically close. If in the past, the time at which the backfill was closed.

created_at
string
required
customer_id
string | null
required

The Orb-generated ID of the customer to which this backfill is scoped. If null, this backfill is scoped to all customers.

events_ingested
integer
required

The number of events ingested in this backfill.

id
string
required
reverted_at
string | null
required

The time at which this backfill was reverted.

status
enum<string>
required

The status of the backfill.

Available options:
pending,
reflected,
pending_revert,
reverted
timeframe_end
string
required
timeframe_start
string
required
deprecation_filter
string | null

A boolean computed property used to filter the set of events to deprecate