-
Notifications
You must be signed in to change notification settings - Fork 0
Add status change topic #155
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
Open
kevinwallimann
wants to merge
6
commits into
master
Choose a base branch
from
feature/151-add-status-change-topic
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
717fddb
First version
kevinwallimann f607b58
Add status_change schema
kevinwallimann 2093de9
wip
kevinwallimann a6dc8b4
newline
kevinwallimann 0c8deb2
Update conf/topic_schemas/status_change.json
kevinwallimann c6e6750
Make source_app mandatory
kevinwallimann 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
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,229 @@ | ||
| { | ||
| "type": "object", | ||
| "properties": { | ||
| "event_type": { | ||
| "type": "string", | ||
| "enum": [ | ||
| "JobCreatedEvent", | ||
| "JobCreatedAndStartedEvent", | ||
| "JobStartedEvent", | ||
| "JobUpdatedEvent", | ||
| "JobFinishedEvent" | ||
| ], | ||
| "description": "Lifecycle event type for job status changes." | ||
| }, | ||
| "event_id": { | ||
| "type": "string", | ||
| "format": "uuid", | ||
| "description": "Unique identifier for the event (UUID)" | ||
| }, | ||
| "job_ref": { | ||
| "type": [ | ||
| "string", | ||
| "null" | ||
| ], | ||
| "description": "Identifier of the job in it's respective system (e.g. Spark Application Id, Glue Job Id, EMR Step Id, etc)." | ||
| }, | ||
| "tenant_id": { | ||
| "type": [ | ||
| "string", | ||
| "null" | ||
| ], | ||
| "description": "Application ID or ServiceNow identifier" | ||
| }, | ||
| "source_app": { | ||
| "type": "string", | ||
| "description": " Standardized source application name (aqueduct, unify, lum, etc)" | ||
| }, | ||
| "source_app_version": { | ||
| "type": "string", | ||
| "description": "Source application version (SemVer preferred)" | ||
| }, | ||
| "environment": { | ||
| "type": "string", | ||
| "description": "Environment (dev, uat, pre-prod, prod, test or others)" | ||
| }, | ||
| "timestamp_event": { | ||
| "type": "integer", | ||
| "minimum": 0, | ||
| "description": "Timestamp of the event in epoch milliseconds" | ||
| }, | ||
|
kevinwallimann marked this conversation as resolved.
|
||
| "country": { | ||
| "type": [ | ||
| "string", | ||
| "null" | ||
| ], | ||
| "description": "The country the data is related to, e.g. za, ke, on-mu, nbc-tz, etc." | ||
| }, | ||
| "job_id": { | ||
| "type": "string", | ||
| "format": "uuid", | ||
| "description": "Primary job identifier (UUID)." | ||
| }, | ||
| "parent_job_id": { | ||
| "type": [ | ||
| "string", | ||
| "null" | ||
| ], | ||
| "format": "uuid", | ||
| "description": "Optional parent job identifier (UUID), to represent nested job hierarchies." | ||
| }, | ||
| "initial_job_id": { | ||
| "type": [ | ||
| "string", | ||
| "null" | ||
| ], | ||
| "format": "uuid", | ||
| "description": "Optional initial job identifier (UUID), to represent retried or replayed jobs." | ||
| }, | ||
| "job_group_id": { | ||
| "type": [ | ||
| "string", | ||
| "null" | ||
| ], | ||
| "format": "uuid", | ||
| "description": "Job group identifier (UUID), may or may not reference a job id." | ||
| }, | ||
| "job_name": { | ||
| "type": [ | ||
| "string", | ||
| "null" | ||
| ], | ||
| "description": "Human-readable job name." | ||
| }, | ||
| "attempt_number": { | ||
| "type": [ | ||
| "integer", | ||
| "null" | ||
| ], | ||
| "minimum": 1, | ||
| "description": "Attempt number for this job." | ||
| }, | ||
| "platform": { | ||
| "type": [ | ||
| "string", | ||
| "null" | ||
| ], | ||
| "description": "Platform, e.g. aws.emr, aws.glue, aws.lambda." | ||
| }, | ||
| "platform_metadata": { | ||
| "type": [ | ||
| "object", | ||
| "null" | ||
| ], | ||
| "description": "Platform-specific metadata (e.g. {\"cluster_id\": \"j-...\"})." | ||
| }, | ||
| "input_arguments": { | ||
| "type": [ | ||
| "object", | ||
| "null" | ||
| ], | ||
| "description": "Arguments passed to the job." | ||
| }, | ||
| "definition_id": { | ||
| "type": [ | ||
| "string", | ||
| "null" | ||
| ], | ||
| "description": "Definition (Pipeline, Domain, Process) identifier." | ||
| }, | ||
| "definition_version": { | ||
| "type": [ | ||
| "string", | ||
| "null" | ||
| ], | ||
| "description": "Optional definition version." | ||
| }, | ||
| "status_type": { | ||
| "type": [ | ||
| "string", | ||
| "null" | ||
| ], | ||
| "enum": [ | ||
| "WAITING", | ||
| "RUNNING", | ||
| "SUCCEEDED", | ||
| "FAILED", | ||
| "KILLED", | ||
| null | ||
| ], | ||
| "description": "High-level status type for the current lifecycle event." | ||
| }, | ||
| "status_subtype": { | ||
| "type": [ | ||
| "string", | ||
| "null" | ||
| ], | ||
| "description": "Optional status subtype, e.g. NO_DATA or error code." | ||
| }, | ||
| "status_detail": { | ||
| "type": [ | ||
| "string", | ||
| "null" | ||
| ], | ||
| "description": "Optional human-readable status detail, e.g. short error message." | ||
| }, | ||
| "additional_context": { | ||
| "type": [ | ||
| "object", | ||
| "null" | ||
| ], | ||
| "description": "Additional context payload." | ||
| } | ||
| }, | ||
| "required": [ | ||
| "event_type", | ||
| "event_id", | ||
| "job_id", | ||
| "source_app", | ||
| "source_app_version", | ||
| "timestamp_event", | ||
| "environment" | ||
| ], | ||
| "allOf": [ | ||
| { | ||
| "if": { | ||
| "properties": { | ||
| "event_type": { | ||
| "enum": [ | ||
| "JobCreatedEvent", | ||
| "JobCreatedAndStartedEvent" | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "then": { | ||
| "required": [ | ||
| "source_app", | ||
| "source_app_version", | ||
| "environment", | ||
| "platform", | ||
| "input_arguments" | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "if": { | ||
| "properties": { | ||
| "event_type": { | ||
| "const": "JobFinishedEvent" | ||
| } | ||
| } | ||
| }, | ||
| "then": { | ||
| "required": [ | ||
| "status_type" | ||
| ], | ||
| "properties": { | ||
| "status_type": { | ||
| "enum": [ | ||
| "SUCCEEDED", | ||
| "FAILED", | ||
| "KILLED" | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| } | ||
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
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
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.