Skip to content

feat(api): api update #584

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 103
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-04f02fa57c3ab8d15ecf0a16a41a83814c21cdc2a830fae4d65f1b7b2196d819.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-979330185e8fda7b2bc2440075fe81c66132fc87ff3c548e93dd05db35ba3172.yml
16 changes: 12 additions & 4 deletions src/orb/resources/events/backfills.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,13 @@ def create(
based on both a period of time and specific property values.

Args:
timeframe_end: The (exclusive) end of the usage timeframe affected by this backfill.
timeframe_end: The (exclusive) end of the usage timeframe affected by this backfill. By
default, Orb allows backfills up to 10 days in duration at a time. Reach out to
discuss extending this limit and your use case.

timeframe_start: The (inclusive) start of the usage timeframe affected by this backfill.
timeframe_start: The (inclusive) start of the usage timeframe affected by this backfill. By
default, Orb allows backfills up to 10 days in duration at a time. Reach out to
discuss extending this limit and your use case.

close_time: 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.
Expand Down Expand Up @@ -418,9 +422,13 @@ async def create(
based on both a period of time and specific property values.

Args:
timeframe_end: The (exclusive) end of the usage timeframe affected by this backfill.
timeframe_end: The (exclusive) end of the usage timeframe affected by this backfill. By
default, Orb allows backfills up to 10 days in duration at a time. Reach out to
discuss extending this limit and your use case.

timeframe_start: The (inclusive) start of the usage timeframe affected by this backfill.
timeframe_start: The (inclusive) start of the usage timeframe affected by this backfill. By
default, Orb allows backfills up to 10 days in duration at a time. Reach out to
discuss extending this limit and your use case.

close_time: 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.
Expand Down
12 changes: 10 additions & 2 deletions src/orb/types/events/backfill_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,18 @@

class BackfillCreateParams(TypedDict, total=False):
timeframe_end: Required[Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]]
"""The (exclusive) end of the usage timeframe affected by this backfill."""
"""The (exclusive) end of the usage timeframe affected by this backfill.

By default, Orb allows backfills up to 10 days in duration at a time. Reach out
to discuss extending this limit and your use case.
"""

timeframe_start: Required[Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]]
"""The (inclusive) start of the usage timeframe affected by this backfill."""
"""The (inclusive) start of the usage timeframe affected by this backfill.

By default, Orb allows backfills up to 10 days in duration at a time. Reach out
to discuss extending this limit and your use case.
"""

close_time: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")]
"""The time at which no more events will be accepted for this backfill.
Expand Down