Skip to content

Conversation

@Josh-Matsuoka
Copy link
Contributor

Welcome to Cryostat! 👋

Before contributing, make sure you have:

  • Read the contributing guidelines
  • Linked a relevant issue which this PR resolves
  • Linked any other relevant issues, PR's, or documentation, if any
  • Resolved all conflicts, if any
  • Rebased your branch PR on top of the latest upstream main branch
  • Attached at least one of the following labels to the PR: [chore, ci, docs, feat, fix, test]
  • Signed all commits using a GPG signature

To recreate commits with GPG signature git fetch upstream && git rebase --force --gpg-sign upstream/main


Fixes: cryostatio/cryostat-agent#226

Depends on: cryostatio/cryostat-core#625 cryostatio/cryostat-agent#780

Description of the change:

Adds the same 3 api methods as the agent PR (get, post, delete) for controlling smart triggers in agent targets. Adds the necessary support to the AgentConnection, AgentClient, AgentRestClient classes.

TODO: Tests

Opening as Draft for the moment pending any changes needed as the frontend gets developed.

How to manually test:

  1. Run CRYOSTAT_IMAGE=quay.io... bash smoketest.bash...
  2. ...

…mart triggers to AgentConnection and associated classes
@Josh-Matsuoka Josh-Matsuoka added feat New feature or request safe-to-test labels Jan 16, 2026
@Josh-Matsuoka Josh-Matsuoka marked this pull request as ready for review January 27, 2026 15:42
@RolesAllowed("write")
@Transactional
@POST
public void addSmartTriggers(@RestPath long targetId, @RestForm String definition) {
Copy link
Member

Choose a reason for hiding this comment

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

I think some extra OpenAPI annotations would be helpful. The Operation annotation to give a summary/description of these endpoints:

and maybe the Parameter annotation to document what these Strings should look like:

https://download.eclipse.org/microprofile/microprofile-open-api-2.0-RC3/apidocs/org/eclipse/microprofile/openapi/annotations/parameters/Parameter.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat New feature or request safe-to-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Story] Smart Triggers API

2 participants