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: DIA-1122: Add FailedPredictions CRUD #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions fern/openapi/resources/failed_predictions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
paths:
/api/predictions/failed:
get:
summary: List failed predictions
description: >

Get a list of failed predictions for a specific project.
parameters:
- name: project
in: query
description: Project ID
schema:
type: integer
- name: task
in: query
description: Task ID
schema:
type: integer
responses:
"200":
description: ""
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/FailedPrediction"

components:
schemas:
FailedPrediction:
type: object
required:
- id
- message
- error_type
- created_at
properties:
id:
title: ID
type: integer
message:
title: Message
description: The message explaining why generating this prediction failed
type: string
error_type:
title: Error Type
description: The type of error that caused prediction to fail
type: string
created_at:
title: Created At
description: The date and time when the failed prediction was created.
type: string
format: date-time
model_version:
title: Model Version
description: A string value that for model version that produced the failed prediction.
type: string
model_run:
title: ModelRun ID
description: A run of a ModelVersion that created the failed prediction.
type: integer
task:
title: Task ID
description: The ID of the task that the failed prediction was generated for.
type: integer
project:
title: Project ID
description: The ID of the project that the failed prediction was generated for.
type: integer