Skip to content

feat: [DPS-44447] Add endpoint to expose streams limit per account - #731

Open
odyszews wants to merge 4 commits into
linode:devfrom
odyszews:feat/DPS-44447-Add-endpoint-to-expose-streams-limit-per-account-
Open

feat: [DPS-44447] Add endpoint to expose streams limit per account#731
odyszews wants to merge 4 commits into
linode:devfrom
odyszews:feat/DPS-44447-Add-endpoint-to-expose-streams-limit-per-account-

Conversation

@odyszews

@odyszews odyszews commented Aug 10, 2026

Copy link
Copy Markdown

📝 Description

Adds support for the GET /monitor/streams/quotas endpoint, which exposes stream quota definitions for the authenticated account.

✔️ How to Test

make test-unit

@odyszews
odyszews requested review from a team as code owners August 10, 2026 08:56
@odyszews
odyszews requested review from mawilk90 and zliang-akamai and removed request for a team August 10, 2026 08:56
@odyszews
odyszews force-pushed the feat/DPS-44447-Add-endpoint-to-expose-streams-limit-per-account- branch from 63ae8d3 to 87e5601 Compare August 11, 2026 08:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds SDK support for retrieving authenticated-account stream quotas.

Changes:

  • Adds the LogsStreamQuota model and quota retrieval method.
  • Adds fixture-backed unit coverage for quota parsing.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
linode_api4/groups/monitor.py Adds the stream quotas endpoint method.
linode_api4/objects/monitor.py Defines and exports the quota model.
test/unit/objects/monitor_test.py Tests endpoint and model behavior.
test/fixtures/monitor_streams_quotas.json Provides quota response data.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread linode_api4/groups/monitor.py Outdated
Comment on lines +630 to +641
def streams_quotas(self) -> PaginatedList:
"""
Retrieve quota definitions available for the authenticated account's streams.

This reads from ``/monitor/streams/quotas`` on the API v4 endpoint.

:returns: A paginated list of stream quota definitions.
:rtype: PaginatedList[LogsStreamQuota]
"""
return self.client._get_objects(
"/monitor/streams/quotas", LogsStreamQuota
)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If pagination and filtering is supported on this endpoint, this may be the way to go

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This endpoint does not currently support filtering, so I'd avoid exposing filters here.

@zliang-akamai zliang-akamai added the community-contribution contributions from the community. label Aug 18, 2026
Comment on lines +631 to +638
"""
Retrieve quota definitions available for the authenticated account's streams.

This reads from ``/monitor/streams/quotas`` on the API v4 endpoint.

:returns: A paginated list of stream quota definitions.
:rtype: PaginatedList[LogsStreamQuota]
"""

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a placeholder for techdoc link in the docstring?

Comment thread linode_api4/groups/monitor.py Outdated

return LogsStream(self.client, result["id"], result)

def streams_quotas(self) -> PaginatedList:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def streams_quotas(self) -> PaginatedList:
def stream_quotas(self) -> PaginatedList:

Maybe this is a better naming?

@odyszews
odyszews force-pushed the feat/DPS-44447-Add-endpoint-to-expose-streams-limit-per-account- branch from eb3bc59 to 998af61 Compare August 19, 2026 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution contributions from the community.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants