-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// Payload Type Interfaces | ||
export interface Payload_interface { | ||
parameters: any[]; | ||
Check failure on line 3 in src/schema/interfaces.ts GitHub Actions / build (18.x)
|
||
queries: Query[]; | ||
} | ||
|
||
export interface Query { | ||
query: QueryDetails; | ||
timerange: Timerange; | ||
filters: any[]; | ||
Check failure on line 10 in src/schema/interfaces.ts GitHub Actions / build (18.x)
|
||
search_types: Search_Type[]; | ||
} | ||
|
||
export interface QueryDetails { | ||
type: string; | ||
query_string: string; | ||
} | ||
|
||
export interface Timerange { | ||
from: number; | ||
type: string; | ||
} | ||
|
||
export interface Search_Type { | ||
limit: number; | ||
offset: number; | ||
sort: Sort[]; | ||
fields: any[]; | ||
Check failure on line 28 in src/schema/interfaces.ts GitHub Actions / build (18.x)
|
||
decorators: any[]; | ||
Check failure on line 29 in src/schema/interfaces.ts GitHub Actions / build (18.x)
|
||
type: string; | ||
filter: any; | ||
Check failure on line 31 in src/schema/interfaces.ts GitHub Actions / build (18.x)
|
||
filters: any[]; | ||
Check failure on line 32 in src/schema/interfaces.ts GitHub Actions / build (18.x)
|
||
} | ||
|
||
export interface Sort { | ||
field: string; | ||
order: string; | ||
} | ||
|
||
export interface action_type { | ||
type: string; | ||
log_level?: number | 7; | ||
query_condition?: string | ""; | ||
} | ||
|
||
export interface Query_String { | ||
app_name?: string | "*"; | ||
beamline?: string | "*"; | ||
filter?: string | "*"; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { Payload_interface } from "./interfaces"; | ||
export let payload: Payload_interface = { | ||
Check failure on line 2 in src/schema/payload.ts GitHub Actions / build (18.x)
|
||
parameters: [], | ||
queries: [ | ||
{ | ||
query: { | ||
type: "elasticsearch", | ||
query_string: "", | ||
}, | ||
timerange: { | ||
from: 300, | ||
type: "relative", | ||
}, | ||
filters: [], | ||
search_types: [ | ||
{ | ||
limit: 100, | ||
offset: 0, | ||
sort: [ | ||
{ | ||
field: "timestamp", | ||
order: "DESC", | ||
}, | ||
], | ||
fields: [], | ||
decorators: [], | ||
type: "messages", | ||
filter: null, | ||
filters: [], | ||
}, | ||
], | ||
}, | ||
], | ||
}; |