|
1 |
| -import { createNormalizer } from '../protocol/serialization'; |
2 |
| -import { Configuration } from './configuration'; |
3 |
| -import { OutputCapabilities } from './output-capabilities'; |
| 1 | +import { createNormalizer } from "../protocol/serialization"; |
| 2 | +import { Configuration } from "./configuration"; |
| 3 | +import { OutputCapabilities } from "./output-capabilities"; |
4 | 4 |
|
5 | 5 | export const OutputDescriptor = createNormalizer<OutputDescriptor>({
|
6 | 6 | end: BigInt,
|
7 | 7 | queryParameters: undefined,
|
8 | 8 | start: BigInt,
|
9 |
| - configuration: Configuration |
| 9 | + configuration: Configuration, |
10 | 10 | });
|
11 | 11 |
|
12 | 12 | /**
|
13 |
| - * Provider type |
| 13 | + * Provider type |
14 | 14 | */
|
15 | 15 | export enum ProviderType {
|
16 | 16 | /**
|
17 | 17 | * A provider for a table data structure implemented as virtual table.
|
18 | 18 | */
|
19 |
| - TABLE = 'TABLE', |
| 19 | + TABLE = "TABLE", |
20 | 20 | /**
|
21 | 21 | * A provider for a tree, whose entries have XY series. The x-series is time.
|
22 | 22 | */
|
23 |
| - TREE_TIME_XY = 'TREE_TIME_XY', |
| 23 | + TREE_TIME_XY = "TREE_TIME_XY", |
24 | 24 | /**
|
25 | 25 | * A provider for a Time Graph model, which has entries with a start and end
|
26 | 26 | * time, each entry has a series of states, arrows link from one series to
|
27 | 27 | * another
|
28 | 28 | */
|
29 |
| - TIME_GRAPH = 'TIME_GRAPH', |
| 29 | + TIME_GRAPH = "TIME_GRAPH", |
30 | 30 | /**
|
31 | 31 | * A provider for a data tree, which has entries (rows) and columns.
|
32 | 32 | */
|
33 |
| - DATA_TREE = 'DATA_TREE', |
| 33 | + DATA_TREE = "DATA_TREE", |
34 | 34 | /**
|
35 | 35 | * A provider with no data. Can be used for grouping purposes and/or as data provider configurator.
|
36 | 36 | */
|
37 |
| - NONE = 'NONE' |
| 37 | + NONE = "NONE", |
| 38 | + /** |
| 39 | + * A provider for a gantt chart (abitrary x-axis). E.g. flame graph. |
| 40 | + */ |
| 41 | + GANTT_CHART = "GANTT_CHART", |
38 | 42 | }
|
39 | 43 |
|
40 | 44 | /**
|
@@ -64,7 +68,7 @@ export interface OutputDescriptor {
|
64 | 68 | /**
|
65 | 69 | * Type of data returned by this output.
|
66 | 70 | * Serve as a hint to determine what kind of view should be use for this output (ex. XY, Time Graph, Table, etc..)
|
67 |
| - * |
| 71 | + * |
68 | 72 | * See {@link ProviderType} for supported strings.
|
69 | 73 | */
|
70 | 74 | type: string;
|
|
0 commit comments