Skip to content

openapi: add investigation target purpose and optional datasource_id - #1043

Merged
UlricQin merged 1 commit into
mainfrom
docs/investigation-target-purpose
Oct 10, 2026
Merged

UlricQin merged 1 commit into
mainfrom
docs/investigation-target-purpose

Conversation

@UlricQin

Copy link
Copy Markdown
Member

Summary

  • Add optional purpose to InvestigationTarget in the OpenAPI contracts (en/zh, including monitors module specs): one-sentence plain text, max 512 bytes, not a template.
  • Make QueryInvestigationTarget.datasource_id optional (omit or 0 = the alert event's own datasource) so the public contract matches backend behavior.
  • Update go-sdk migration notes accordingly.

Verification

  • python3 scripts/lint_openapi.py — OK, 12 spec files, no violations.

Document the per-entry purpose field (one-sentence plain text, max 512
bytes) and allow QueryInvestigationTarget.datasource_id to be omitted so
the query runs on the alert event's own datasource. Align go-sdk notes
with the same contract.
@UlricQin
UlricQin merged commit f8ba1cf into main Oct 10, 2026
2 checks passed
@UlricQin
UlricQin deleted the docs/investigation-target-purpose branch October 10, 2026 14:21
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.

1 participant