Skip to content

Commit

Permalink
fix(matchexpr): expose 'isAgent' field for evaluation (backport #598) (
Browse files Browse the repository at this point in the history
…#599)

* fix(matchexpr): expose 'isAgent' field for evaluation (#598)

(cherry picked from commit f319134)

* chore(schema): automatic update

---------

Co-authored-by: Andrew Azores <me@andrewazor.es>
Co-authored-by: Cryostat CI <rhjavamonitoring@gmail.com>
  • Loading branch information
3 people committed Aug 9, 2024
1 parent 1fe0d25 commit b67ff99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion schema/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ info:
name: Apache 2.0
url: https://github.com/cryostatio/cryostat3/blob/main/LICENSE
title: Cryostat API
version: 3.0.0-snapshot
version: 3.0.1-snapshot
openapi: 3.0.3
paths:
/api/beta/credentials/{connectUrl}:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ public static class ScriptCreation extends Event {}
* expression-relevant fields exposed, connection URI exposed as a String, etc.
*/
private static record SimplifiedTarget(
boolean isAgent,
String connectUrl,
String alias,
@Nullable String jvmId,
Expand All @@ -241,6 +242,7 @@ private static record SimplifiedTarget(

static SimplifiedTarget from(Target target) {
return new SimplifiedTarget(
target.isAgent(),
target.connectUrl.toString(),
target.alias,
target.jvmId,
Expand Down

0 comments on commit b67ff99

Please sign in to comment.