Skip to content

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

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

odyszews wants to merge 2 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
@zliang-akamai
zliang-akamai requested a balanced review from Copilot August 18, 2026 20:49

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
@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
@odyszews
odyszews force-pushed the feat/DPS-44447-Add-endpoint-to-expose-streams-limit-per-account- branch from 998af61 to 688ef5d Compare September 10, 2026 10:26

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.

🟢 Approval recommended

The endpoint, public model export, response mapping, and unit coverage are consistent and complete.

Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 0 new
  • Review effort level: Balanced

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