Skip to content
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] List application status messages in a list #256

Open
lachieh opened this issue Apr 9, 2024 · 0 comments
Open

[FEAT] List application status messages in a list #256

lachieh opened this issue Apr 9, 2024 · 0 comments

Comments

@lachieh
Copy link

lachieh commented Apr 9, 2024

At the moment, all the status messages are listed in a big ol' string. This makes scanning the information difficult both in the cli and in other interfaces that consume this data (i.e. wash ui).

I'd like to see the addition of a status_message_array property on the application status either as an array of strings, or an array of hashmaps with some extra info like time and priority.

Existing

{
  "apps": [
    {
      "deployed_version": "v0.0.1",
      "description": "...",
      "name": "kvcounter-rust",
      "status": "deployed",
      "status_message": "Could not satisfy spread default for file:///Users/lheywood/Projects/wasmCloud/wasmCloud/examples/rust/actors/http-hello-world/build/http_hello_world_s.wasm, 0/1 eligible hosts found., Putting link definition between kvcounter_rust-file____users_lheywood_projects_wasmcloud_wasmcloud_examples_rust_actors_http_hello_world_build_http_hello_world_s_wasm and kvcounter_rust-ghcr_io_wasmcloud_keyvalue_redis_0_23_0, Putting link definition between kvcounter_rust-ghcr_io_wasmcloud_http_server_0_20_0 and kvcounter_rust-file____users_lheywood_projects_wasmcloud_wasmcloud_examples_rust_actors_http_hello_world_build_http_hello_world_s_wasm, Could not satisfy spread default for ghcr.io/wasmcloud/http-server:0.20.0, 0/1 eligible hosts found., Could not satisfy spread default for ghcr.io/wasmcloud/keyvalue-redis:0.23.0, 0/1 eligible hosts found.",
      "version": "v0.0.1"
    }
  ],
  "success": true
}

Proposed

{
  "apps": [
    {
      "deployed_version": "v0.0.1",
      "description": "...",
      "name": "kvcounter-rust",
      "status": "deployed",
      "status_message": "Could not satisfy spread default for file:///Users/lheywood/Projects/wasmCloud/wasmCloud/examples/rust/actors/http-hello-world/build/http_hello_world_s.wasm, 0/1 eligible hosts found., Putting link definition between kvcounter_rust-file____users_lheywood_projects_wasmcloud_wasmcloud_examples_rust_actors_http_hello_world_build_http_hello_world_s_wasm and kvcounter_rust-ghcr_io_wasmcloud_keyvalue_redis_0_23_0, Putting link definition between kvcounter_rust-ghcr_io_wasmcloud_http_server_0_20_0 and kvcounter_rust-file____users_lheywood_projects_wasmcloud_wasmcloud_examples_rust_actors_http_hello_world_build_http_hello_world_s_wasm, Could not satisfy spread default for ghcr.io/wasmcloud/http-server:0.20.0, 0/1 eligible hosts found., Could not satisfy spread default for ghcr.io/wasmcloud/keyvalue-redis:0.23.0, 0/1 eligible hosts found.",
      "status_message_array": [
        {
          "message": "Could not satisfy spread default for file:///Users/lheywood/Projects/wasmCloud/wasmCloud/examples/rust/actors/http-hello-world/build/http_hello_world_s.wasm, 0/1 eligible hosts found.",
          "time": "2021-09-01T12:00:00Z",
          "level": "critical"
        },
        {
          "message": "Putting link definition between kvcounter_rust-file____users_lheywood_projects_wasmcloud_wasmcloud_examples_rust_actors_http_hello_world_build_http_hello_world_s_wasm and kvcounter_rust-ghcr_io_wasmcloud_keyvalue_redis_0_23_0",
          "time": "2021-09-01T12:00:00Z",
          "level": "info"
        },
        {
          "message": "Putting link definition between kvcounter_rust-ghcr_io_wasmcloud_http_server_0_20_0 and kvcounter_rust-file____users_lheywood_projects_wasmcloud_wasmcloud_examples_rust_actors_http_hello_world_build_http_hello_world_s_wasm",
          "time": "2021-09-01T12:00:00Z",
          "level": "info"
        },
        {
          "message": "Could not satisfy spread default for ghcr.io/wasmcloud/http-server:0.20.0, 0/1 eligible hosts found.",
          "time": "2021-09-01T12:00:00Z",
          "level": "critical"
        },
        {
          "message": "Could not satisfy spread default for ghcr.io/wasmcloud/keyvalue-redis:0.23.0, 0/1 eligible hosts found.",
          "time": "2021-09-01T12:00:00Z",
          "level": "critical"
        }
      ]
      "version": "v0.0.1"
    }
  ],
  "success": true
}
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

No branches or pull requests

1 participant