Client for the runs, execution and TEA EEG analysis routes
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
import { Execution } from '../models/execution';
|
||||
import { Scope } from '../models/scope';
|
||||
export interface AnalyzeRequest {
|
||||
execution?: (Execution | null);
|
||||
scope?: Scope;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
import { Execution } from '../models/execution';
|
||||
export interface Analyze {
|
||||
execution?: (Execution | null);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
export interface Cancel {
|
||||
id: string;
|
||||
state: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelling' | 'cancelled';
|
||||
status: string;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
|
||||
/**
|
||||
* What a request or a job config carries: None means the deployment's default.
|
||||
*/
|
||||
export interface Execution {
|
||||
mode?: ('sync' | 'local' | 'remote' | null);
|
||||
scheduler?: (string | null);
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
export interface Health {
|
||||
dashboard_ok?: (boolean | null);
|
||||
dashboard_url?: (string | null);
|
||||
error?: (string | null);
|
||||
expected_workers?: (number | null);
|
||||
latency_ms?: (number | null);
|
||||
mode: 'sync' | 'local' | 'remote';
|
||||
reachable: boolean;
|
||||
reference?: ({
|
||||
[key: string]: any;
|
||||
} | null);
|
||||
scheduler: (string | null);
|
||||
threads?: (number | null);
|
||||
version_error?: (string | null);
|
||||
versions_ok?: (boolean | null);
|
||||
workers?: (number | null);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
export interface Options {
|
||||
default_mode: 'sync' | 'local' | 'remote';
|
||||
schedulers: Array<string>;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
import { Tasks } from '../models/tasks';
|
||||
import { Worker } from '../models/worker';
|
||||
|
||||
/**
|
||||
* The run tag's JSON; the API returns it as it is.
|
||||
*/
|
||||
export interface Progress {
|
||||
done: number;
|
||||
elapsed_s: number;
|
||||
eta_s: (number | null);
|
||||
mode: 'sync' | 'local' | 'remote';
|
||||
phase: string;
|
||||
scheduler: (string | null);
|
||||
tasks?: (Tasks | null);
|
||||
total: number;
|
||||
updated_at: string;
|
||||
workers?: Array<Worker>;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
export interface RunSummary {
|
||||
domain: (string | null);
|
||||
ended: (number | null);
|
||||
id: string;
|
||||
job: string;
|
||||
started: (number | null);
|
||||
state: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelling' | 'cancelled';
|
||||
status: string;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
import { Progress } from '../models/progress';
|
||||
import { Step } from '../models/step';
|
||||
export interface Run {
|
||||
domain: (string | null);
|
||||
ended: (number | null);
|
||||
error: (string | null);
|
||||
id: string;
|
||||
info: Array<string>;
|
||||
job: string;
|
||||
progress: (Progress | null);
|
||||
started: (number | null);
|
||||
state: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelling' | 'cancelled';
|
||||
status: string;
|
||||
steps: Array<Step>;
|
||||
warnings: Array<string>;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
|
||||
/**
|
||||
* Which EEGs an analysis takes: the pending ones, the first `n` of them, or the named
|
||||
* ones (re-analysis), each named by the `id` that `/tea/eegs` shows.
|
||||
*/
|
||||
export interface Scope {
|
||||
ids?: Array<string>;
|
||||
mode?: 'pending' | 'first_n' | 'ids';
|
||||
n?: (number | null);
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
export interface Step {
|
||||
ended: (number | null);
|
||||
key: string;
|
||||
started: (number | null);
|
||||
status: string;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
export interface Tasks {
|
||||
erred?: number;
|
||||
memory?: number;
|
||||
processing?: number;
|
||||
queued?: number;
|
||||
waiting?: number;
|
||||
}
|
||||
@@ -1,7 +1,9 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
import { Execution } from '../models/execution';
|
||||
export interface Training {
|
||||
as_of?: (string | null);
|
||||
execution?: (Execution | null);
|
||||
models?: Array<string>;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
export interface Worker {
|
||||
cpu_pct: number;
|
||||
executing: number;
|
||||
memory_bytes: number;
|
||||
memory_limit: (number | null);
|
||||
name: string;
|
||||
threads: number;
|
||||
}
|
||||
Reference in New Issue
Block a user