-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(graphql): add aggregate information for active recordings in the GraphQL API #1066
Conversation
I think this will depend on a -web PR to be created as well: cryostatio/cryostat-web#473 (comment) |
Sure, no problem. |
b71c6cc
to
35893fa
Compare
The PR doesn't included the new 'size' aggregate info, do you want me to include it here? |
Also, a query like this: $ http :8181/api/v2.2/graphql Authorization:"Basic $(echo user:pass | base64)" query="query { targetNodes { name recordings { active { aggregate { count } } }
} }" results in
if a target is unreachable (in my case 9095 with no SSL cert), but this is fixed in the archive endpoint PR #1047, by the try catch in the This is a query on reachable targets using smoketest (for me who doesn't know how to validate the SSL for 9095). $ http :8181/api/v2.2/graphql Authorization:"Basic $(echo user:pass | base64)" query="query { environmentNodes(filter: { name: \"quarkus-test\" }) { name nodeType descendantTargets { recordings { active { data { name state metadata { labels } } } archived { data { name metadata { labels } } } } } } }" |
I'm not sure if we can easily do that right now - the JDK Recording class has an accessor for this, but the JMC IRecordingDescriptor does not. The information is available over JMX with an accessor like the Recording one, but to use this we would need to update In theory this would be a nice addition but in practice I don't think we should go for it, not right now. |
src/main/java/io/cryostat/net/web/http/api/v2/graph/ActiveRecordingsFetcher.java
Outdated
Show resolved
Hide resolved
cryostatio/cryostatio.github.io#70 + |
43980f7
to
1ce8b79
Compare
src/main/java/io/cryostat/net/web/http/api/v2/graph/ActiveRecordingsFetcher.java
Outdated
Show resolved
Hide resolved
src/main/java/io/cryostat/net/web/http/api/v2/graph/ActiveRecordingsFetcher.java
Outdated
Show resolved
Hide resolved
29507bd
to
c9bc8e5
Compare
c9bc8e5
to
fcd9735
Compare
Fixes #1030