-
Notifications
You must be signed in to change notification settings - Fork 348
Emit events from the kernels service and gateway client #1252
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
Merged
Zsailer
merged 6 commits into
jupyter-server:main
from
rajmusuku:raj/events-gateway-client
Apr 17, 2023
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
8f8f41e
Emit events from the kernels service and gateway client
b669c81
clean-up after code review
Zsailer 4f0050a
Make GatewayKernelManager a compatible subclass to ServerKernelManager
kevin-bates fb6575f
Merge remote-tracking branch 'upstream' into rajmusuku-raj/events-gat…
kevin-bates 56af18e
Add events to gateway lifecycle test
kevin-bates 28bc3ab
Access event_logger trait from ServerApp
kevin-bates File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
"$id": https://events.jupyter.org/jupyter_server/gateway_client/v1 | ||
version: 1 | ||
title: Gateway Client activities. | ||
personal-data: true | ||
description: | | ||
Record events of a gateway client. | ||
type: object | ||
required: | ||
- status | ||
- msg | ||
properties: | ||
status: | ||
enum: | ||
- error | ||
- success | ||
description: | | ||
Status received by Gateway client based on the rest api operation to gateway kernel. | ||
|
||
This is a required field. | ||
|
||
Possible values: | ||
|
||
1. error | ||
Error response from a rest api operation to gateway kernel. | ||
|
||
2. success | ||
Success response from a rest api operation to gateway kernel. | ||
status_code: | ||
type: number | ||
description: | | ||
Http response codes from a rest api operation to gateway kernel. | ||
Examples: 200, 400, 502, 503, 599 etc. | ||
msg: | ||
type: string | ||
description: | | ||
Description of the event being emitted. | ||
gateway_url: | ||
type: string | ||
description: | | ||
Gateway url where the remote server exist. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
"$id": https://events.jupyter.org/jupyter_server/kernel_actions/v1 | ||
version: 1 | ||
title: Kernel Manager activities | ||
personal-data: true | ||
description: | | ||
Record events of a kernel manager. | ||
type: object | ||
required: | ||
- action | ||
- kernel_id | ||
- msg | ||
properties: | ||
action: | ||
enum: | ||
- start | ||
- interrupt | ||
- shutdown | ||
- restart | ||
description: | | ||
Action performed by the Kernel Manager. | ||
|
||
This is a required field. | ||
|
||
Possible values: | ||
|
||
1. start | ||
A kernel has been started with the given kernel id. | ||
|
||
2. interrupt | ||
A kernel has been interrupted for the given kernel id. | ||
|
||
3. shutdown | ||
A kernel has been shut down for the given kernel id. | ||
|
||
4. restart | ||
A kernel has been restarted for the given kernel id. | ||
kernel_id: | ||
type: string | ||
description: | | ||
Kernel id. | ||
|
||
This is a required field. | ||
kernel_name: | ||
type: string | ||
description: | | ||
Name of the kernel. | ||
status: | ||
enum: | ||
- error | ||
- success | ||
description: | | ||
Status received from a rest api operation to kernel server. | ||
|
||
This is a required field. | ||
|
||
Possible values: | ||
|
||
1. error | ||
Error response from a rest api operation to kernel server. | ||
|
||
2. success | ||
Success response from a rest api operation to kernel server. | ||
status_code: | ||
type: number | ||
description: | | ||
Http response codes from a rest api operation to kernel server. | ||
Examples: 200, 400, 502, 503, 599 etc | ||
msg: | ||
type: string | ||
description: | | ||
Description of the event specified in action. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.