Skip to content

feat: [DPS-45435] Add endpoint to expose streams limit per account - #874

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

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

Conversation

@odyszews

@odyszews odyszews commented Sep 16, 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

This PR depends on the changes from linode/linode_api4-python#731.

Run unit test make test-unit

Run integration test `RUN_ACLP_LOGS_STREAM_TESTS=true make integration-test TEST_SUITE=monitor_logs_stream_quota_list

@odyszews
odyszews requested review from a team as code owners September 16, 2026 06:58
@zliang-akamai
zliang-akamai requested review from a team, mawilk90 and yec-akamai and a balanced review from Copilot and removed request for a team October 14, 2026 04:37
Comment thread Makefile Resolved
@yec-akamai
yec-akamai requested a balanced review from Copilot and removed request for Copilot November 2, 2026 15:25

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.

🟡 Changes recommended

The generated return-value documentation contains a TODO link that resolves to a nonexistent local page instead of the API response schema.

1 open issue
What changed in this PR

Adds monitor_logs_stream_quota_list to the linode.cloud Ansible collection, exposing stream quota definitions for the authenticated account through GET /monitor/streams/quotas.

Changes:

  • Uses the shared ListModule helper to return stream_quotas with filtering disabled.
  • Adds usage documentation, sample responses, and a README entry.
  • Adds unit tests and a feature-gated integration test.
File Description
tests/​unit/​modules/​test_monitor_logs_stream_quota_list.py Tests module configuration and quota response handling.
tests/​integration/​targets/​monitor_logs_stream_quota_list/​tasks/​main.yaml Adds guarded checks for returned quota fields.
README.md Lists the new quota module.
plugins/​modules/​monitor_logs_stream_quota_list.py Defines the quota-listing module.
plugins/​module_utils/​doc_fragments/​monitor_logs_stream_quota_list.py Supplies usage examples and sample quotas.
docs/​modules/​monitor_logs_stream_quota_list.md Documents parameters, usage, and return values.

Review effort: Balanced

result_display_name="Monitor Logs Stream Quotas",
result_field_name="stream_quotas",
endpoint_template="/monitor/streams/quotas",
result_docs_url="TODO",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants