[
https://issues.apache.org/jira/browse/CAMEL-25394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18127652#comment-18127652
]
Claus Ibsen commented on CAMEL-25394:
-------------------------------------
PR: https://github.com/apache/camel/pull/27926
camel get, top and ps find the integrations with one helper: a name that
matches nothing exits 3, an unreadable status file skips that integration with
a warning, and the JSON of the listings has numbers as numbers, split values,
millis for durations, and routeId and status as the names. Also fixes get
activity SINCE, camel dirty pid matching, and --limit before sorting.
_Claude Code on behalf of davsclaus (Claus Ibsen)_
> camel-jbang - camel get/top/ps: robust listing and consistent JSON schema
> -------------------------------------------------------------------------
>
> Key: CAMEL-25394
> URL: https://issues.apache.org/jira/browse/CAMEL-25394
> Project: Camel
> Issue Type: Sub-task
> Components: camel-jbang
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 4.24.0
>
>
> * Null-safe shared status reader: a missing key or older status file must not
> NPE the whole listing (~22 classes unbox missing keys).
> * Explicit name with no match -> exit 3; default (all) with nothing running
> -> exit 0, {{[]}} in JSON, "No running Camel integrations" on stderr.
> * JSON schema cleanup (breaking, upgrade guide): numbers as numbers, split
> composite strings ({{"3/4"}}, {{"12/40/512 MB"}}, {{"1s/2s/-"}}), durations
> as millis plus human string, {{status}}/{{routeId}} naming. Update in-repo
> consumers (TUI, MCP).
> * Fix {{get activity}} SINCE (subtracts now twice), {{camel dirty}} pid
> prefix match, {{get processor --limit}}, {{--limit}} applied before sort in
> endpoint/consumer/producer, {{get health}} has no name parameter.
> _Claude Code on behalf of davsclaus (Claus Ibsen)_
--
This message was sent by Atlassian Jira
(v8.20.10#820010)