-
Notifications
You must be signed in to change notification settings - Fork 311
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Emit events from the kernels service and gateway client
Co-authored-by: Zach Sailer <zsailer@apple.com>
- Loading branch information
Showing
9 changed files
with
472 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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.