@sentio/api 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/BUILD.bazel +14 -0
  2. package/README.md +1 -0
  3. package/doc/index.html +11971 -0
  4. package/jest.config.ts +6 -0
  5. package/package.json +30 -0
  6. package/spec.json +2635 -0
  7. package/src/apis/DefaultApi.ts +910 -0
  8. package/src/apis/index.ts +3 -0
  9. package/src/index.ts +5 -0
  10. package/src/models/CommonAggregate.ts +80 -0
  11. package/src/models/CommonAggregateAggregateOps.ts +42 -0
  12. package/src/models/CommonAny.ts +120 -0
  13. package/src/models/CommonArgument.ts +104 -0
  14. package/src/models/CommonDuration.ts +73 -0
  15. package/src/models/CommonErrorRecord.ts +105 -0
  16. package/src/models/CommonFormula.ts +89 -0
  17. package/src/models/CommonFunction.ts +80 -0
  18. package/src/models/CommonJoinOperator.ts +39 -0
  19. package/src/models/CommonLogEntry.ts +153 -0
  20. package/src/models/CommonOrganization.ts +156 -0
  21. package/src/models/CommonOrganizationMember.ts +86 -0
  22. package/src/models/CommonOrganizationRole.ts +39 -0
  23. package/src/models/CommonOwner.ts +100 -0
  24. package/src/models/CommonPermission.ts +40 -0
  25. package/src/models/CommonProject.ts +172 -0
  26. package/src/models/CommonProjectInfo.ts +136 -0
  27. package/src/models/CommonProjectProjectMember.ts +80 -0
  28. package/src/models/CommonProjectVisibility.ts +39 -0
  29. package/src/models/CommonQuery.ts +126 -0
  30. package/src/models/CommonSegmentationQuery.ts +132 -0
  31. package/src/models/CommonSegmentationQueryAggregation.ts +102 -0
  32. package/src/models/CommonSegmentationQueryAggregationAggregateProperties.ts +80 -0
  33. package/src/models/CommonSegmentationQueryAggregationAggregatePropertiesAggregationType.ts +44 -0
  34. package/src/models/CommonSegmentationQueryAggregationCountUnique.ts +72 -0
  35. package/src/models/CommonSegmentationQueryResource.ts +80 -0
  36. package/src/models/CommonSegmentationQueryResourceType.ts +39 -0
  37. package/src/models/CommonSegmentationQuerySelectorExpr.ts +86 -0
  38. package/src/models/CommonSegmentationQuerySelectorExprLogicExpr.ts +86 -0
  39. package/src/models/CommonSelector.ts +94 -0
  40. package/src/models/CommonSelectorOperatorType.ts +50 -0
  41. package/src/models/CommonStringList.ts +65 -0
  42. package/src/models/CommonTier.ts +41 -0
  43. package/src/models/CommonTimeRange.ts +110 -0
  44. package/src/models/CommonTimeRangeLite.ts +89 -0
  45. package/src/models/CommonTimeRangeRelativeTime.ts +73 -0
  46. package/src/models/CommonTimeRangeTimeLike.ts +80 -0
  47. package/src/models/CommonUser.ts +182 -0
  48. package/src/models/CommonUserAccountStatus.ts +41 -0
  49. package/src/models/CommonUserInfo.ts +105 -0
  50. package/src/models/GoogleProtobufNullValue.ts +43 -0
  51. package/src/models/MetricsServiceLogQueryRequestFilter.ts +81 -0
  52. package/src/models/MetricsServiceLogQueryRequestSort.ts +73 -0
  53. package/src/models/MetricsServiceLogQueryResponse.ts +94 -0
  54. package/src/models/MetricsServiceMetricsQueryResponse.ts +72 -0
  55. package/src/models/MetricsServiceMetricsQueryResponseMatrix.ts +80 -0
  56. package/src/models/MetricsServiceMetricsQueryResponseMetric.ts +81 -0
  57. package/src/models/MetricsServiceMetricsQueryResponseResult.ts +96 -0
  58. package/src/models/MetricsServiceMetricsQueryResponseSample.ts +86 -0
  59. package/src/models/MetricsServiceMetricsQueryResponseValue.ts +73 -0
  60. package/src/models/MetricsServiceQueryValueResponse.ts +72 -0
  61. package/src/models/MetricsServiceQueryValueResponseResult.ts +96 -0
  62. package/src/models/ProcessorServiceChainState.ts +168 -0
  63. package/src/models/ProcessorServiceChainStateStatus.ts +86 -0
  64. package/src/models/ProcessorServiceChainStateStatusState.ts +41 -0
  65. package/src/models/ProcessorServiceDownloadProcessorResponse.ts +65 -0
  66. package/src/models/ProcessorServiceGetProcessorResponse.ts +72 -0
  67. package/src/models/ProcessorServiceGetProcessorStatusResponse.ts +72 -0
  68. package/src/models/ProcessorServiceGetProcessorStatusResponseProcessorEx.ts +170 -0
  69. package/src/models/ProcessorServiceGetProcessorStatusResponseProcessorStatus.ts +86 -0
  70. package/src/models/ProcessorServiceGetProcessorStatusResponseProcessorStatusState.ts +41 -0
  71. package/src/models/ProcessorServiceGetProcessorWithProjectResponse.ts +86 -0
  72. package/src/models/ProcessorServiceGetProcessorsResponse.ts +72 -0
  73. package/src/models/ProcessorServiceGetProjectVersionsResponse.ts +72 -0
  74. package/src/models/ProcessorServiceGetProjectVersionsResponseVersion.ts +88 -0
  75. package/src/models/ProcessorServiceProcessor.ts +150 -0
  76. package/src/models/ProcessorServiceProcessorVersionState.ts +41 -0
  77. package/src/models/QueryLogRequest.ts +146 -0
  78. package/src/models/QueryRangeRequest.ts +124 -0
  79. package/src/models/QueryRequest.ts +118 -0
  80. package/src/models/WebServiceChart.ts +156 -0
  81. package/src/models/WebServiceChartChartType.ts +45 -0
  82. package/src/models/WebServiceChartConfig.ts +156 -0
  83. package/src/models/WebServiceChartConfigBarGaugeConfig.ts +100 -0
  84. package/src/models/WebServiceChartConfigCalculation.ts +42 -0
  85. package/src/models/WebServiceChartConfigColorTheme.ts +81 -0
  86. package/src/models/WebServiceChartConfigColumnSort.ts +73 -0
  87. package/src/models/WebServiceChartConfigDirection.ts +39 -0
  88. package/src/models/WebServiceChartConfigMappingRule.ts +96 -0
  89. package/src/models/WebServiceChartConfigPieConfig.ts +102 -0
  90. package/src/models/WebServiceChartConfigPieConfigPieType.ts +39 -0
  91. package/src/models/WebServiceChartConfigQueryValueConfig.ts +94 -0
  92. package/src/models/WebServiceChartConfigSort.ts +80 -0
  93. package/src/models/WebServiceChartConfigSortBy.ts +39 -0
  94. package/src/models/WebServiceChartConfigTableConfig.ts +140 -0
  95. package/src/models/WebServiceChartConfigTimeRangeOverride.ts +80 -0
  96. package/src/models/WebServiceChartConfigValueConfig.ts +148 -0
  97. package/src/models/WebServiceChartConfigValueConfigStyle.ts +42 -0
  98. package/src/models/WebServiceChartConfigValueFormatter.ts +40 -0
  99. package/src/models/WebServiceChartConfigYAxisConfig.ts +89 -0
  100. package/src/models/WebServiceChartDataSourceType.ts +40 -0
  101. package/src/models/WebServiceDashboard.ts +162 -0
  102. package/src/models/WebServiceDashboardExtra.ts +86 -0
  103. package/src/models/WebServiceDashboardExtraTemplateVariable.ts +73 -0
  104. package/src/models/WebServiceDashboardExtraTemplateView.ts +65 -0
  105. package/src/models/WebServiceDashboardLayouts.ts +72 -0
  106. package/src/models/WebServiceDashboardLayoutsLayout.ts +97 -0
  107. package/src/models/WebServiceDashboardResponsiveLayouts.ts +72 -0
  108. package/src/models/WebServiceDashboardSharing.ts +89 -0
  109. package/src/models/WebServiceExportDashboardResponse.ts +65 -0
  110. package/src/models/WebServiceGetDashboardResponse.ts +86 -0
  111. package/src/models/WebServiceGetProjectResponse.ts +86 -0
  112. package/src/models/WebServiceImportDashboardRequest.ts +81 -0
  113. package/src/models/WebServiceImportDashboardResponse.ts +72 -0
  114. package/src/models/WebServiceNote.ts +94 -0
  115. package/src/models/WebServiceNoteAlignment.ts +40 -0
  116. package/src/models/WebServiceNoteFontSize.ts +42 -0
  117. package/src/models/WebServicePanel.ts +96 -0
  118. package/src/models/index.ts +110 -0
  119. package/src/runtime.ts +407 -0
  120. package/test/simple.test.ts +21 -0
  121. package/tsconfig.json +34 -0
package/spec.json ADDED
@@ -0,0 +1,2635 @@
1
+ {
2
+ "swagger": "2.0",
3
+ "info": {
4
+ "title": "Sentio API",
5
+ "description": "Sentio Open API for query data",
6
+ "version": "version not set"
7
+ },
8
+ "host": "app.sentio.xyz",
9
+ "consumes": [
10
+ "application/json"
11
+ ],
12
+ "produces": [
13
+ "application/json"
14
+ ],
15
+ "paths": {
16
+ "/api/v1/dashboards": {
17
+ "get": {
18
+ "summary": "Get default dashboard or get dashboard by id",
19
+ "operationId": "GetDashboard",
20
+ "responses": {
21
+ "200": {
22
+ "description": "A successful response.",
23
+ "schema": {
24
+ "$ref": "#/definitions/web_service.GetDashboardResponse"
25
+ }
26
+ }
27
+ },
28
+ "parameters": [
29
+ {
30
+ "name": "dashboardId",
31
+ "in": "query",
32
+ "required": false,
33
+ "type": "string"
34
+ },
35
+ {
36
+ "name": "projectId",
37
+ "in": "query",
38
+ "required": false,
39
+ "type": "string"
40
+ }
41
+ ]
42
+ }
43
+ },
44
+ "/api/v1/dashboards/json": {
45
+ "post": {
46
+ "summary": "Import dashboard json",
47
+ "operationId": "ImportDashboard",
48
+ "responses": {
49
+ "200": {
50
+ "description": "A successful response.",
51
+ "schema": {
52
+ "$ref": "#/definitions/web_service.ImportDashboardResponse"
53
+ }
54
+ }
55
+ },
56
+ "parameters": [
57
+ {
58
+ "name": "body",
59
+ "in": "body",
60
+ "required": true,
61
+ "schema": {
62
+ "$ref": "#/definitions/web_service.ImportDashboardRequest"
63
+ }
64
+ }
65
+ ]
66
+ }
67
+ },
68
+ "/api/v1/dashboards/{dashboardId}": {
69
+ "get": {
70
+ "summary": "Get default dashboard or get dashboard by id",
71
+ "operationId": "GetDashboard2",
72
+ "responses": {
73
+ "200": {
74
+ "description": "A successful response.",
75
+ "schema": {
76
+ "$ref": "#/definitions/web_service.GetDashboardResponse"
77
+ }
78
+ }
79
+ },
80
+ "parameters": [
81
+ {
82
+ "name": "dashboardId",
83
+ "in": "path",
84
+ "required": true,
85
+ "type": "string"
86
+ },
87
+ {
88
+ "name": "projectId",
89
+ "in": "query",
90
+ "required": false,
91
+ "type": "string"
92
+ }
93
+ ]
94
+ },
95
+ "delete": {
96
+ "summary": "Delete dashboard by id",
97
+ "operationId": "DeleteDashboard",
98
+ "responses": {
99
+ "200": {
100
+ "description": "A successful response.",
101
+ "schema": {
102
+ "$ref": "#/definitions/web_service.Dashboard"
103
+ }
104
+ }
105
+ },
106
+ "parameters": [
107
+ {
108
+ "name": "dashboardId",
109
+ "in": "path",
110
+ "required": true,
111
+ "type": "string"
112
+ },
113
+ {
114
+ "name": "projectId",
115
+ "in": "query",
116
+ "required": false,
117
+ "type": "string"
118
+ }
119
+ ]
120
+ }
121
+ },
122
+ "/api/v1/dashboards/{dashboardId}/json": {
123
+ "get": {
124
+ "summary": "Export dashboard json by id",
125
+ "operationId": "ExportDashboard",
126
+ "responses": {
127
+ "200": {
128
+ "description": "A successful response.",
129
+ "schema": {
130
+ "$ref": "#/definitions/web_service.ExportDashboardResponse"
131
+ }
132
+ }
133
+ },
134
+ "parameters": [
135
+ {
136
+ "name": "dashboardId",
137
+ "in": "path",
138
+ "required": true,
139
+ "type": "string"
140
+ }
141
+ ]
142
+ }
143
+ },
144
+ "/api/v1/logs/{owner}/{slug}": {
145
+ "post": {
146
+ "operationId": "QueryLog",
147
+ "responses": {
148
+ "200": {
149
+ "description": "A successful response.",
150
+ "schema": {
151
+ "$ref": "#/definitions/metrics_service.LogQueryResponse"
152
+ }
153
+ }
154
+ },
155
+ "parameters": [
156
+ {
157
+ "name": "owner",
158
+ "in": "path",
159
+ "required": true,
160
+ "type": "string"
161
+ },
162
+ {
163
+ "name": "slug",
164
+ "in": "path",
165
+ "required": true,
166
+ "type": "string"
167
+ },
168
+ {
169
+ "name": "body",
170
+ "in": "body",
171
+ "required": true,
172
+ "schema": {
173
+ "type": "object",
174
+ "properties": {
175
+ "projectId": {
176
+ "type": "string"
177
+ },
178
+ "query": {
179
+ "type": "string"
180
+ },
181
+ "timeRange": {
182
+ "$ref": "#/definitions/common.TimeRange"
183
+ },
184
+ "sorts": {
185
+ "type": "array",
186
+ "items": {
187
+ "$ref": "#/definitions/metrics_service.LogQueryRequest.Sort"
188
+ }
189
+ },
190
+ "after": {
191
+ "type": "array",
192
+ "items": {
193
+ "$ref": "#/definitions/common.Any"
194
+ },
195
+ "title": "for pagination"
196
+ },
197
+ "limit": {
198
+ "type": "integer",
199
+ "format": "int32"
200
+ },
201
+ "filters": {
202
+ "type": "array",
203
+ "items": {
204
+ "$ref": "#/definitions/metrics_service.LogQueryRequest.Filter"
205
+ }
206
+ },
207
+ "version": {
208
+ "type": "integer",
209
+ "format": "int32"
210
+ }
211
+ }
212
+ }
213
+ }
214
+ ]
215
+ }
216
+ },
217
+ "/api/v1/logs/{owner}/{slug}/metrics": {
218
+ "get": {
219
+ "operationId": "QueryLogMetrics2",
220
+ "responses": {
221
+ "200": {
222
+ "description": "A successful response.",
223
+ "schema": {
224
+ "$ref": "#/definitions/metrics_service.MetricsQueryResponse"
225
+ }
226
+ }
227
+ },
228
+ "parameters": [
229
+ {
230
+ "name": "owner",
231
+ "in": "path",
232
+ "required": true,
233
+ "type": "string"
234
+ },
235
+ {
236
+ "name": "slug",
237
+ "in": "path",
238
+ "required": true,
239
+ "type": "string"
240
+ },
241
+ {
242
+ "name": "projectId",
243
+ "in": "query",
244
+ "required": false,
245
+ "type": "string"
246
+ },
247
+ {
248
+ "name": "query",
249
+ "in": "query",
250
+ "required": false,
251
+ "type": "string"
252
+ },
253
+ {
254
+ "name": "timeRange.start.relativeTime.unit",
255
+ "in": "query",
256
+ "required": false,
257
+ "type": "string"
258
+ },
259
+ {
260
+ "name": "timeRange.start.relativeTime.value",
261
+ "in": "query",
262
+ "required": false,
263
+ "type": "integer",
264
+ "format": "int32"
265
+ },
266
+ {
267
+ "name": "timeRange.start.absoluteTime",
268
+ "in": "query",
269
+ "required": false,
270
+ "type": "string",
271
+ "format": "int64"
272
+ },
273
+ {
274
+ "name": "timeRange.end.relativeTime.unit",
275
+ "in": "query",
276
+ "required": false,
277
+ "type": "string"
278
+ },
279
+ {
280
+ "name": "timeRange.end.relativeTime.value",
281
+ "in": "query",
282
+ "required": false,
283
+ "type": "integer",
284
+ "format": "int32"
285
+ },
286
+ {
287
+ "name": "timeRange.end.absoluteTime",
288
+ "in": "query",
289
+ "required": false,
290
+ "type": "string",
291
+ "format": "int64"
292
+ },
293
+ {
294
+ "name": "timeRange.step",
295
+ "in": "query",
296
+ "required": false,
297
+ "type": "string",
298
+ "format": "int64"
299
+ },
300
+ {
301
+ "name": "timeRange.interval.value",
302
+ "in": "query",
303
+ "required": false,
304
+ "type": "number",
305
+ "format": "double"
306
+ },
307
+ {
308
+ "name": "timeRange.interval.unit",
309
+ "in": "query",
310
+ "required": false,
311
+ "type": "string"
312
+ },
313
+ {
314
+ "name": "timeRange.timezone",
315
+ "in": "query",
316
+ "required": false,
317
+ "type": "string"
318
+ },
319
+ {
320
+ "name": "limit",
321
+ "in": "query",
322
+ "required": false,
323
+ "type": "integer",
324
+ "format": "int32"
325
+ },
326
+ {
327
+ "name": "version",
328
+ "in": "query",
329
+ "required": false,
330
+ "type": "integer",
331
+ "format": "int32"
332
+ }
333
+ ]
334
+ },
335
+ "post": {
336
+ "operationId": "QueryLogMetrics",
337
+ "responses": {
338
+ "200": {
339
+ "description": "A successful response.",
340
+ "schema": {
341
+ "$ref": "#/definitions/metrics_service.MetricsQueryResponse"
342
+ }
343
+ }
344
+ },
345
+ "parameters": [
346
+ {
347
+ "name": "owner",
348
+ "in": "path",
349
+ "required": true,
350
+ "type": "string"
351
+ },
352
+ {
353
+ "name": "slug",
354
+ "in": "path",
355
+ "required": true,
356
+ "type": "string"
357
+ },
358
+ {
359
+ "name": "body",
360
+ "in": "body",
361
+ "required": true,
362
+ "schema": {
363
+ "type": "object",
364
+ "properties": {
365
+ "projectId": {
366
+ "type": "string"
367
+ },
368
+ "query": {
369
+ "type": "string"
370
+ },
371
+ "timeRange": {
372
+ "$ref": "#/definitions/common.TimeRange"
373
+ },
374
+ "sorts": {
375
+ "type": "array",
376
+ "items": {
377
+ "$ref": "#/definitions/metrics_service.LogQueryRequest.Sort"
378
+ }
379
+ },
380
+ "after": {
381
+ "type": "array",
382
+ "items": {
383
+ "$ref": "#/definitions/common.Any"
384
+ },
385
+ "title": "for pagination"
386
+ },
387
+ "limit": {
388
+ "type": "integer",
389
+ "format": "int32"
390
+ },
391
+ "filters": {
392
+ "type": "array",
393
+ "items": {
394
+ "$ref": "#/definitions/metrics_service.LogQueryRequest.Filter"
395
+ }
396
+ },
397
+ "version": {
398
+ "type": "integer",
399
+ "format": "int32"
400
+ }
401
+ }
402
+ }
403
+ }
404
+ ]
405
+ }
406
+ },
407
+ "/api/v1/logs/{owner}/{slug}/query": {
408
+ "get": {
409
+ "operationId": "QueryLog2",
410
+ "responses": {
411
+ "200": {
412
+ "description": "A successful response.",
413
+ "schema": {
414
+ "$ref": "#/definitions/metrics_service.LogQueryResponse"
415
+ }
416
+ }
417
+ },
418
+ "parameters": [
419
+ {
420
+ "name": "owner",
421
+ "in": "path",
422
+ "required": true,
423
+ "type": "string"
424
+ },
425
+ {
426
+ "name": "slug",
427
+ "in": "path",
428
+ "required": true,
429
+ "type": "string"
430
+ },
431
+ {
432
+ "name": "projectId",
433
+ "in": "query",
434
+ "required": false,
435
+ "type": "string"
436
+ },
437
+ {
438
+ "name": "query",
439
+ "in": "query",
440
+ "required": false,
441
+ "type": "string"
442
+ },
443
+ {
444
+ "name": "timeRange.start.relativeTime.unit",
445
+ "in": "query",
446
+ "required": false,
447
+ "type": "string"
448
+ },
449
+ {
450
+ "name": "timeRange.start.relativeTime.value",
451
+ "in": "query",
452
+ "required": false,
453
+ "type": "integer",
454
+ "format": "int32"
455
+ },
456
+ {
457
+ "name": "timeRange.start.absoluteTime",
458
+ "in": "query",
459
+ "required": false,
460
+ "type": "string",
461
+ "format": "int64"
462
+ },
463
+ {
464
+ "name": "timeRange.end.relativeTime.unit",
465
+ "in": "query",
466
+ "required": false,
467
+ "type": "string"
468
+ },
469
+ {
470
+ "name": "timeRange.end.relativeTime.value",
471
+ "in": "query",
472
+ "required": false,
473
+ "type": "integer",
474
+ "format": "int32"
475
+ },
476
+ {
477
+ "name": "timeRange.end.absoluteTime",
478
+ "in": "query",
479
+ "required": false,
480
+ "type": "string",
481
+ "format": "int64"
482
+ },
483
+ {
484
+ "name": "timeRange.step",
485
+ "in": "query",
486
+ "required": false,
487
+ "type": "string",
488
+ "format": "int64"
489
+ },
490
+ {
491
+ "name": "timeRange.interval.value",
492
+ "in": "query",
493
+ "required": false,
494
+ "type": "number",
495
+ "format": "double"
496
+ },
497
+ {
498
+ "name": "timeRange.interval.unit",
499
+ "in": "query",
500
+ "required": false,
501
+ "type": "string"
502
+ },
503
+ {
504
+ "name": "timeRange.timezone",
505
+ "in": "query",
506
+ "required": false,
507
+ "type": "string"
508
+ },
509
+ {
510
+ "name": "limit",
511
+ "in": "query",
512
+ "required": false,
513
+ "type": "integer",
514
+ "format": "int32"
515
+ },
516
+ {
517
+ "name": "version",
518
+ "in": "query",
519
+ "required": false,
520
+ "type": "integer",
521
+ "format": "int32"
522
+ }
523
+ ]
524
+ }
525
+ },
526
+ "/api/v1/metrics/{owner}/{slug}/query": {
527
+ "post": {
528
+ "operationId": "Query",
529
+ "responses": {
530
+ "200": {
531
+ "description": "A successful response.",
532
+ "schema": {
533
+ "$ref": "#/definitions/metrics_service.QueryValueResponse"
534
+ }
535
+ }
536
+ },
537
+ "parameters": [
538
+ {
539
+ "name": "owner",
540
+ "in": "path",
541
+ "required": true,
542
+ "type": "string"
543
+ },
544
+ {
545
+ "name": "slug",
546
+ "in": "path",
547
+ "required": true,
548
+ "type": "string"
549
+ },
550
+ {
551
+ "name": "body",
552
+ "in": "body",
553
+ "required": true,
554
+ "schema": {
555
+ "type": "object",
556
+ "properties": {
557
+ "queries": {
558
+ "type": "array",
559
+ "items": {
560
+ "$ref": "#/definitions/common.Query"
561
+ }
562
+ },
563
+ "formulas": {
564
+ "type": "array",
565
+ "items": {
566
+ "$ref": "#/definitions/common.Formula"
567
+ }
568
+ },
569
+ "time": {
570
+ "type": "string"
571
+ },
572
+ "samplesLimit": {
573
+ "type": "integer",
574
+ "format": "int32"
575
+ },
576
+ "version": {
577
+ "type": "integer",
578
+ "format": "int32"
579
+ },
580
+ "timezone": {
581
+ "type": "string"
582
+ }
583
+ }
584
+ }
585
+ }
586
+ ]
587
+ }
588
+ },
589
+ "/api/v1/metrics/{owner}/{slug}/query_range": {
590
+ "post": {
591
+ "operationId": "QueryRange",
592
+ "responses": {
593
+ "200": {
594
+ "description": "A successful response.",
595
+ "schema": {
596
+ "$ref": "#/definitions/metrics_service.MetricsQueryResponse"
597
+ }
598
+ }
599
+ },
600
+ "parameters": [
601
+ {
602
+ "name": "owner",
603
+ "in": "path",
604
+ "required": true,
605
+ "type": "string"
606
+ },
607
+ {
608
+ "name": "slug",
609
+ "in": "path",
610
+ "required": true,
611
+ "type": "string"
612
+ },
613
+ {
614
+ "name": "body",
615
+ "in": "body",
616
+ "required": true,
617
+ "schema": {
618
+ "type": "object",
619
+ "properties": {
620
+ "queries": {
621
+ "type": "array",
622
+ "items": {
623
+ "$ref": "#/definitions/common.Query"
624
+ }
625
+ },
626
+ "formulas": {
627
+ "type": "array",
628
+ "items": {
629
+ "$ref": "#/definitions/common.Formula"
630
+ }
631
+ },
632
+ "samplesLimit": {
633
+ "type": "integer",
634
+ "format": "int32"
635
+ },
636
+ "timeRange": {
637
+ "$ref": "#/definitions/common.TimeRangeLite"
638
+ },
639
+ "projectId": {
640
+ "type": "string"
641
+ },
642
+ "version": {
643
+ "type": "integer",
644
+ "format": "int32"
645
+ }
646
+ }
647
+ }
648
+ }
649
+ ]
650
+ }
651
+ },
652
+ "/api/v1/processors/status": {
653
+ "get": {
654
+ "operationId": "GetProcessorStatus",
655
+ "responses": {
656
+ "200": {
657
+ "description": "A successful response.",
658
+ "schema": {
659
+ "$ref": "#/definitions/processor_service.GetProcessorStatusResponse"
660
+ }
661
+ }
662
+ },
663
+ "parameters": [
664
+ {
665
+ "name": "projectId",
666
+ "in": "query",
667
+ "required": false,
668
+ "type": "string"
669
+ },
670
+ {
671
+ "name": "id",
672
+ "in": "query",
673
+ "required": false,
674
+ "type": "string"
675
+ }
676
+ ]
677
+ }
678
+ },
679
+ "/api/v1/processors/{projectId}/versions": {
680
+ "get": {
681
+ "operationId": "GetProjectVersions",
682
+ "responses": {
683
+ "200": {
684
+ "description": "A successful response.",
685
+ "schema": {
686
+ "$ref": "#/definitions/processor_service.GetProjectVersionsResponse"
687
+ }
688
+ }
689
+ },
690
+ "parameters": [
691
+ {
692
+ "name": "projectId",
693
+ "in": "path",
694
+ "required": true,
695
+ "type": "string"
696
+ }
697
+ ]
698
+ }
699
+ },
700
+ "/api/v1/project/{owner}/{slug}": {
701
+ "get": {
702
+ "summary": "Get project detail",
703
+ "operationId": "GetProject",
704
+ "responses": {
705
+ "200": {
706
+ "description": "A successful response.",
707
+ "schema": {
708
+ "$ref": "#/definitions/web_service.GetProjectResponse"
709
+ }
710
+ }
711
+ },
712
+ "parameters": [
713
+ {
714
+ "name": "owner",
715
+ "in": "path",
716
+ "required": true,
717
+ "type": "string"
718
+ },
719
+ {
720
+ "name": "slug",
721
+ "in": "path",
722
+ "required": true,
723
+ "type": "string"
724
+ }
725
+ ]
726
+ }
727
+ },
728
+ "/api/v1/users": {
729
+ "get": {
730
+ "operationId": "GetUser",
731
+ "responses": {
732
+ "200": {
733
+ "description": "A successful response.",
734
+ "schema": {
735
+ "$ref": "#/definitions/common.User"
736
+ }
737
+ }
738
+ },
739
+ "parameters": [
740
+ {
741
+ "name": "userId",
742
+ "in": "query",
743
+ "required": false,
744
+ "type": "string"
745
+ },
746
+ {
747
+ "name": "subject",
748
+ "in": "query",
749
+ "required": false,
750
+ "type": "string"
751
+ },
752
+ {
753
+ "name": "email",
754
+ "in": "query",
755
+ "required": false,
756
+ "type": "string"
757
+ }
758
+ ]
759
+ }
760
+ },
761
+ "/api/v1/users/{userId}": {
762
+ "get": {
763
+ "operationId": "GetUser2",
764
+ "responses": {
765
+ "200": {
766
+ "description": "A successful response.",
767
+ "schema": {
768
+ "$ref": "#/definitions/common.User"
769
+ }
770
+ }
771
+ },
772
+ "parameters": [
773
+ {
774
+ "name": "userId",
775
+ "in": "path",
776
+ "required": true,
777
+ "type": "string"
778
+ },
779
+ {
780
+ "name": "subject",
781
+ "in": "query",
782
+ "required": false,
783
+ "type": "string"
784
+ },
785
+ {
786
+ "name": "email",
787
+ "in": "query",
788
+ "required": false,
789
+ "type": "string"
790
+ }
791
+ ]
792
+ }
793
+ }
794
+ },
795
+ "definitions": {
796
+ "common.Aggregate": {
797
+ "type": "object",
798
+ "properties": {
799
+ "op": {
800
+ "$ref": "#/definitions/common.Aggregate.AggregateOps"
801
+ },
802
+ "grouping": {
803
+ "type": "array",
804
+ "items": {
805
+ "type": "string"
806
+ }
807
+ }
808
+ }
809
+ },
810
+ "common.Aggregate.AggregateOps": {
811
+ "type": "string",
812
+ "enum": [
813
+ "AVG",
814
+ "SUM",
815
+ "MIN",
816
+ "MAX",
817
+ "COUNT"
818
+ ],
819
+ "default": "AVG"
820
+ },
821
+ "common.Any": {
822
+ "type": "object",
823
+ "properties": {
824
+ "intValue": {
825
+ "type": "integer",
826
+ "format": "int32"
827
+ },
828
+ "longValue": {
829
+ "type": "string",
830
+ "format": "int64"
831
+ },
832
+ "doubleValue": {
833
+ "type": "number",
834
+ "format": "double"
835
+ },
836
+ "stringValue": {
837
+ "type": "string"
838
+ },
839
+ "boolValue": {
840
+ "type": "boolean"
841
+ },
842
+ "dateValue": {
843
+ "type": "string",
844
+ "format": "date-time"
845
+ },
846
+ "listValue": {
847
+ "$ref": "#/definitions/common.StringList"
848
+ }
849
+ }
850
+ },
851
+ "common.Argument": {
852
+ "type": "object",
853
+ "properties": {
854
+ "stringValue": {
855
+ "type": "string"
856
+ },
857
+ "intValue": {
858
+ "type": "integer",
859
+ "format": "int32"
860
+ },
861
+ "doubleValue": {
862
+ "type": "number",
863
+ "format": "double"
864
+ },
865
+ "boolValue": {
866
+ "type": "boolean"
867
+ },
868
+ "durationValue": {
869
+ "$ref": "#/definitions/common.Duration"
870
+ }
871
+ }
872
+ },
873
+ "common.Duration": {
874
+ "type": "object",
875
+ "properties": {
876
+ "value": {
877
+ "type": "number",
878
+ "format": "double"
879
+ },
880
+ "unit": {
881
+ "type": "string"
882
+ }
883
+ }
884
+ },
885
+ "common.ErrorRecord": {
886
+ "type": "object",
887
+ "properties": {
888
+ "id": {
889
+ "type": "string"
890
+ },
891
+ "namespace": {
892
+ "type": "integer",
893
+ "format": "int32"
894
+ },
895
+ "code": {
896
+ "type": "integer",
897
+ "format": "int32",
898
+ "title": "same as google.rpc.status.Status.code"
899
+ },
900
+ "namespaceCode": {
901
+ "type": "integer",
902
+ "format": "int32",
903
+ "title": "additional codes definted in the namespace"
904
+ },
905
+ "message": {
906
+ "type": "string"
907
+ },
908
+ "createdAt": {
909
+ "type": "string",
910
+ "format": "date-time",
911
+ "title": "details"
912
+ }
913
+ }
914
+ },
915
+ "common.Formula": {
916
+ "type": "object",
917
+ "properties": {
918
+ "expression": {
919
+ "type": "string"
920
+ },
921
+ "alias": {
922
+ "type": "string",
923
+ "title": "bool enabled = 2;"
924
+ },
925
+ "id": {
926
+ "type": "string"
927
+ },
928
+ "disabled": {
929
+ "type": "boolean"
930
+ }
931
+ }
932
+ },
933
+ "common.Function": {
934
+ "type": "object",
935
+ "properties": {
936
+ "name": {
937
+ "type": "string"
938
+ },
939
+ "arguments": {
940
+ "type": "array",
941
+ "items": {
942
+ "$ref": "#/definitions/common.Argument"
943
+ }
944
+ }
945
+ }
946
+ },
947
+ "common.JoinOperator": {
948
+ "type": "string",
949
+ "enum": [
950
+ "AND",
951
+ "OR"
952
+ ],
953
+ "default": "AND"
954
+ },
955
+ "common.LogEntry": {
956
+ "type": "object",
957
+ "properties": {
958
+ "message": {
959
+ "type": "string"
960
+ },
961
+ "timestamp": {
962
+ "type": "string",
963
+ "format": "int64"
964
+ },
965
+ "logLevel": {
966
+ "type": "string"
967
+ },
968
+ "logType": {
969
+ "type": "string"
970
+ },
971
+ "contractName": {
972
+ "type": "string"
973
+ },
974
+ "contractAddress": {
975
+ "type": "string"
976
+ },
977
+ "blockNumber": {
978
+ "type": "string",
979
+ "format": "uint64"
980
+ },
981
+ "chainId": {
982
+ "type": "string"
983
+ },
984
+ "attributes": {
985
+ "type": "object"
986
+ },
987
+ "id": {
988
+ "type": "string"
989
+ },
990
+ "transactionHash": {
991
+ "type": "string"
992
+ },
993
+ "highlightedMessage": {
994
+ "type": "string"
995
+ }
996
+ }
997
+ },
998
+ "common.Organization": {
999
+ "type": "object",
1000
+ "properties": {
1001
+ "id": {
1002
+ "type": "string"
1003
+ },
1004
+ "oid": {
1005
+ "type": "string"
1006
+ },
1007
+ "name": {
1008
+ "type": "string"
1009
+ },
1010
+ "createdAt": {
1011
+ "type": "string",
1012
+ "format": "int64"
1013
+ },
1014
+ "updatedAt": {
1015
+ "type": "string",
1016
+ "format": "int64"
1017
+ },
1018
+ "members": {
1019
+ "type": "array",
1020
+ "items": {
1021
+ "$ref": "#/definitions/common.Organization.Member"
1022
+ }
1023
+ },
1024
+ "displayName": {
1025
+ "type": "string"
1026
+ },
1027
+ "logoUrl": {
1028
+ "type": "string"
1029
+ },
1030
+ "projects": {
1031
+ "type": "array",
1032
+ "items": {
1033
+ "$ref": "#/definitions/common.ProjectInfo"
1034
+ }
1035
+ },
1036
+ "tier": {
1037
+ "$ref": "#/definitions/common.Tier"
1038
+ }
1039
+ }
1040
+ },
1041
+ "common.Organization.Member": {
1042
+ "type": "object",
1043
+ "properties": {
1044
+ "user": {
1045
+ "$ref": "#/definitions/common.UserInfo"
1046
+ },
1047
+ "role": {
1048
+ "$ref": "#/definitions/common.OrganizationRole"
1049
+ }
1050
+ }
1051
+ },
1052
+ "common.OrganizationRole": {
1053
+ "type": "string",
1054
+ "enum": [
1055
+ "ORG_MEMBER",
1056
+ "ORG_ADMIN"
1057
+ ],
1058
+ "default": "ORG_MEMBER"
1059
+ },
1060
+ "common.Owner": {
1061
+ "type": "object",
1062
+ "properties": {
1063
+ "user": {
1064
+ "$ref": "#/definitions/common.User"
1065
+ },
1066
+ "organization": {
1067
+ "$ref": "#/definitions/common.Organization"
1068
+ },
1069
+ "tier": {
1070
+ "$ref": "#/definitions/common.Tier"
1071
+ }
1072
+ }
1073
+ },
1074
+ "common.Permission": {
1075
+ "type": "string",
1076
+ "enum": [
1077
+ "READ",
1078
+ "WRITE",
1079
+ "ADMIN"
1080
+ ],
1081
+ "default": "READ"
1082
+ },
1083
+ "common.Project": {
1084
+ "type": "object",
1085
+ "properties": {
1086
+ "id": {
1087
+ "type": "string"
1088
+ },
1089
+ "displayName": {
1090
+ "type": "string"
1091
+ },
1092
+ "description": {
1093
+ "type": "string"
1094
+ },
1095
+ "createdAt": {
1096
+ "type": "string",
1097
+ "format": "int64"
1098
+ },
1099
+ "updatedAt": {
1100
+ "type": "string",
1101
+ "format": "int64"
1102
+ },
1103
+ "slug": {
1104
+ "type": "string",
1105
+ "title": "{ownerName}/{slug} is the unique name of the project"
1106
+ },
1107
+ "ownerId": {
1108
+ "type": "string"
1109
+ },
1110
+ "owner": {
1111
+ "$ref": "#/definitions/common.Owner"
1112
+ },
1113
+ "visibility": {
1114
+ "$ref": "#/definitions/common.Project.Visibility"
1115
+ },
1116
+ "members": {
1117
+ "type": "array",
1118
+ "items": {
1119
+ "$ref": "#/definitions/common.Project.ProjectMember"
1120
+ }
1121
+ },
1122
+ "multiVersion": {
1123
+ "type": "boolean"
1124
+ },
1125
+ "ownerName": {
1126
+ "type": "string"
1127
+ }
1128
+ }
1129
+ },
1130
+ "common.Project.ProjectMember": {
1131
+ "type": "object",
1132
+ "properties": {
1133
+ "user": {
1134
+ "$ref": "#/definitions/common.UserInfo"
1135
+ },
1136
+ "role": {
1137
+ "type": "string"
1138
+ }
1139
+ }
1140
+ },
1141
+ "common.Project.Visibility": {
1142
+ "type": "string",
1143
+ "enum": [
1144
+ "PUBLIC",
1145
+ "PRIVATE"
1146
+ ],
1147
+ "default": "PUBLIC"
1148
+ },
1149
+ "common.ProjectInfo": {
1150
+ "type": "object",
1151
+ "properties": {
1152
+ "id": {
1153
+ "type": "string"
1154
+ },
1155
+ "displayName": {
1156
+ "type": "string"
1157
+ },
1158
+ "description": {
1159
+ "type": "string"
1160
+ },
1161
+ "createdAt": {
1162
+ "type": "string",
1163
+ "format": "int64"
1164
+ },
1165
+ "updatedAt": {
1166
+ "type": "string",
1167
+ "format": "int64"
1168
+ },
1169
+ "slug": {
1170
+ "type": "string"
1171
+ },
1172
+ "owner": {
1173
+ "type": "string"
1174
+ },
1175
+ "visibility": {
1176
+ "$ref": "#/definitions/common.Project.Visibility"
1177
+ },
1178
+ "multiVersion": {
1179
+ "type": "boolean"
1180
+ }
1181
+ }
1182
+ },
1183
+ "common.Query": {
1184
+ "type": "object",
1185
+ "properties": {
1186
+ "query": {
1187
+ "type": "string"
1188
+ },
1189
+ "alias": {
1190
+ "type": "string"
1191
+ },
1192
+ "id": {
1193
+ "type": "string",
1194
+ "title": "bool enabled = 3; // deprecated"
1195
+ },
1196
+ "labelSelector": {
1197
+ "type": "object",
1198
+ "additionalProperties": {
1199
+ "type": "string"
1200
+ }
1201
+ },
1202
+ "aggregate": {
1203
+ "$ref": "#/definitions/common.Aggregate"
1204
+ },
1205
+ "functions": {
1206
+ "type": "array",
1207
+ "items": {
1208
+ "$ref": "#/definitions/common.Function"
1209
+ }
1210
+ },
1211
+ "disabled": {
1212
+ "type": "boolean"
1213
+ }
1214
+ },
1215
+ "title": "TODO rename to MetricQuery"
1216
+ },
1217
+ "common.SegmentationQuery": {
1218
+ "type": "object",
1219
+ "properties": {
1220
+ "resource": {
1221
+ "$ref": "#/definitions/common.SegmentationQuery.Resource"
1222
+ },
1223
+ "alias": {
1224
+ "type": "string"
1225
+ },
1226
+ "id": {
1227
+ "type": "string"
1228
+ },
1229
+ "aggregation": {
1230
+ "$ref": "#/definitions/common.SegmentationQuery.Aggregation"
1231
+ },
1232
+ "selectorExpr": {
1233
+ "$ref": "#/definitions/common.SegmentationQuery.SelectorExpr"
1234
+ },
1235
+ "groupBy": {
1236
+ "type": "array",
1237
+ "items": {
1238
+ "type": "string"
1239
+ }
1240
+ },
1241
+ "disabled": {
1242
+ "type": "boolean"
1243
+ }
1244
+ }
1245
+ },
1246
+ "common.SegmentationQuery.Aggregation": {
1247
+ "type": "object",
1248
+ "properties": {
1249
+ "total": {
1250
+ "$ref": "#/definitions/common.SegmentationQuery.Aggregation.Total"
1251
+ },
1252
+ "unique": {
1253
+ "$ref": "#/definitions/common.SegmentationQuery.Aggregation.Unique"
1254
+ },
1255
+ "countUnique": {
1256
+ "$ref": "#/definitions/common.SegmentationQuery.Aggregation.CountUnique"
1257
+ },
1258
+ "aggregateProperties": {
1259
+ "$ref": "#/definitions/common.SegmentationQuery.Aggregation.AggregateProperties"
1260
+ }
1261
+ }
1262
+ },
1263
+ "common.SegmentationQuery.Aggregation.AggregateProperties": {
1264
+ "type": "object",
1265
+ "properties": {
1266
+ "type": {
1267
+ "$ref": "#/definitions/common.SegmentationQuery.Aggregation.AggregateProperties.AggregationType"
1268
+ },
1269
+ "propertyName": {
1270
+ "type": "string"
1271
+ }
1272
+ }
1273
+ },
1274
+ "common.SegmentationQuery.Aggregation.AggregateProperties.AggregationType": {
1275
+ "type": "string",
1276
+ "enum": [
1277
+ "SUM",
1278
+ "AVG",
1279
+ "MEDIAN",
1280
+ "MIN",
1281
+ "MAX",
1282
+ "DISTINCT_COUNT",
1283
+ "CUMULATIVE_SUM"
1284
+ ],
1285
+ "default": "SUM"
1286
+ },
1287
+ "common.SegmentationQuery.Aggregation.CountUnique": {
1288
+ "type": "object",
1289
+ "properties": {
1290
+ "duration": {
1291
+ "$ref": "#/definitions/common.Duration"
1292
+ }
1293
+ }
1294
+ },
1295
+ "common.SegmentationQuery.Aggregation.Total": {
1296
+ "type": "object"
1297
+ },
1298
+ "common.SegmentationQuery.Aggregation.Unique": {
1299
+ "type": "object"
1300
+ },
1301
+ "common.SegmentationQuery.Resource": {
1302
+ "type": "object",
1303
+ "properties": {
1304
+ "name": {
1305
+ "type": "string"
1306
+ },
1307
+ "type": {
1308
+ "$ref": "#/definitions/common.SegmentationQuery.ResourceType"
1309
+ }
1310
+ }
1311
+ },
1312
+ "common.SegmentationQuery.ResourceType": {
1313
+ "type": "string",
1314
+ "enum": [
1315
+ "EVENTS",
1316
+ "COHORTS"
1317
+ ],
1318
+ "default": "EVENTS"
1319
+ },
1320
+ "common.SegmentationQuery.SelectorExpr": {
1321
+ "type": "object",
1322
+ "properties": {
1323
+ "selector": {
1324
+ "$ref": "#/definitions/common.Selector"
1325
+ },
1326
+ "logicExpr": {
1327
+ "$ref": "#/definitions/common.SegmentationQuery.SelectorExpr.LogicExpr"
1328
+ }
1329
+ }
1330
+ },
1331
+ "common.SegmentationQuery.SelectorExpr.LogicExpr": {
1332
+ "type": "object",
1333
+ "properties": {
1334
+ "expressions": {
1335
+ "type": "array",
1336
+ "items": {
1337
+ "$ref": "#/definitions/common.SegmentationQuery.SelectorExpr"
1338
+ }
1339
+ },
1340
+ "operator": {
1341
+ "$ref": "#/definitions/common.JoinOperator",
1342
+ "title": "default is AND"
1343
+ }
1344
+ }
1345
+ },
1346
+ "common.Selector": {
1347
+ "type": "object",
1348
+ "properties": {
1349
+ "key": {
1350
+ "type": "string"
1351
+ },
1352
+ "operator": {
1353
+ "$ref": "#/definitions/common.Selector.OperatorType"
1354
+ },
1355
+ "value": {
1356
+ "type": "array",
1357
+ "items": {
1358
+ "$ref": "#/definitions/common.Any"
1359
+ }
1360
+ }
1361
+ },
1362
+ "title": "TODO maybe MetricQuery should use this as well"
1363
+ },
1364
+ "common.Selector.OperatorType": {
1365
+ "type": "string",
1366
+ "enum": [
1367
+ "EQ",
1368
+ "NEQ",
1369
+ "EXISTS",
1370
+ "NOT_EXISTS",
1371
+ "GT",
1372
+ "GTE",
1373
+ "LT",
1374
+ "LTE",
1375
+ "BETWEEN",
1376
+ "NOT_BETWEEN",
1377
+ "CONTAINS",
1378
+ "NOT_CONTAINS"
1379
+ ],
1380
+ "default": "EQ",
1381
+ "description": "- GT: Numeric operators\n - CONTAINS: String operators",
1382
+ "title": "TODO add Date Value and List Value and its data type"
1383
+ },
1384
+ "common.StringList": {
1385
+ "type": "object",
1386
+ "properties": {
1387
+ "values": {
1388
+ "type": "array",
1389
+ "items": {
1390
+ "type": "string"
1391
+ },
1392
+ "title": "JoinOperator operator = 2; // this field should implement in the future"
1393
+ }
1394
+ }
1395
+ },
1396
+ "common.Tier": {
1397
+ "type": "string",
1398
+ "enum": [
1399
+ "FREE",
1400
+ "DEV",
1401
+ "PRO",
1402
+ "ENTERPRISE"
1403
+ ],
1404
+ "default": "FREE"
1405
+ },
1406
+ "common.TimeRange": {
1407
+ "type": "object",
1408
+ "properties": {
1409
+ "start": {
1410
+ "$ref": "#/definitions/common.TimeRange.TimeLike"
1411
+ },
1412
+ "end": {
1413
+ "$ref": "#/definitions/common.TimeRange.TimeLike"
1414
+ },
1415
+ "step": {
1416
+ "type": "string",
1417
+ "format": "int64"
1418
+ },
1419
+ "interval": {
1420
+ "$ref": "#/definitions/common.Duration",
1421
+ "title": "TODO remove step in favor of interval"
1422
+ },
1423
+ "timezone": {
1424
+ "type": "string"
1425
+ }
1426
+ }
1427
+ },
1428
+ "common.TimeRange.RelativeTime": {
1429
+ "type": "object",
1430
+ "properties": {
1431
+ "unit": {
1432
+ "type": "string"
1433
+ },
1434
+ "value": {
1435
+ "type": "integer",
1436
+ "format": "int32"
1437
+ }
1438
+ }
1439
+ },
1440
+ "common.TimeRange.TimeLike": {
1441
+ "type": "object",
1442
+ "properties": {
1443
+ "relativeTime": {
1444
+ "$ref": "#/definitions/common.TimeRange.RelativeTime"
1445
+ },
1446
+ "absoluteTime": {
1447
+ "type": "string",
1448
+ "format": "int64"
1449
+ }
1450
+ }
1451
+ },
1452
+ "common.TimeRangeLite": {
1453
+ "type": "object",
1454
+ "properties": {
1455
+ "start": {
1456
+ "type": "string"
1457
+ },
1458
+ "end": {
1459
+ "type": "string"
1460
+ },
1461
+ "step": {
1462
+ "type": "integer",
1463
+ "format": "int32"
1464
+ },
1465
+ "timezone": {
1466
+ "type": "string"
1467
+ }
1468
+ }
1469
+ },
1470
+ "common.User": {
1471
+ "type": "object",
1472
+ "properties": {
1473
+ "id": {
1474
+ "type": "string"
1475
+ },
1476
+ "email": {
1477
+ "type": "string"
1478
+ },
1479
+ "emailVerified": {
1480
+ "type": "boolean"
1481
+ },
1482
+ "lastName": {
1483
+ "type": "string"
1484
+ },
1485
+ "firstName": {
1486
+ "type": "string"
1487
+ },
1488
+ "locale": {
1489
+ "type": "string"
1490
+ },
1491
+ "nickname": {
1492
+ "type": "string"
1493
+ },
1494
+ "picture": {
1495
+ "type": "string"
1496
+ },
1497
+ "sub": {
1498
+ "type": "string"
1499
+ },
1500
+ "updatedAt": {
1501
+ "type": "string",
1502
+ "format": "int64"
1503
+ },
1504
+ "createdAt": {
1505
+ "type": "string",
1506
+ "format": "int64"
1507
+ },
1508
+ "username": {
1509
+ "type": "string"
1510
+ },
1511
+ "accountStatus": {
1512
+ "$ref": "#/definitions/common.User.AccountStatus"
1513
+ },
1514
+ "tier": {
1515
+ "$ref": "#/definitions/common.Tier"
1516
+ }
1517
+ }
1518
+ },
1519
+ "common.User.AccountStatus": {
1520
+ "type": "string",
1521
+ "enum": [
1522
+ "PENDING",
1523
+ "SET_USERNAME",
1524
+ "BANNED",
1525
+ "ACTIVE"
1526
+ ],
1527
+ "default": "PENDING"
1528
+ },
1529
+ "common.UserInfo": {
1530
+ "type": "object",
1531
+ "properties": {
1532
+ "id": {
1533
+ "type": "string"
1534
+ },
1535
+ "lastName": {
1536
+ "type": "string"
1537
+ },
1538
+ "firstName": {
1539
+ "type": "string"
1540
+ },
1541
+ "nickname": {
1542
+ "type": "string"
1543
+ },
1544
+ "picture": {
1545
+ "type": "string"
1546
+ },
1547
+ "username": {
1548
+ "type": "string"
1549
+ }
1550
+ },
1551
+ "description": "The same to user but with sensitive data removed."
1552
+ },
1553
+ "google.protobuf.NullValue": {
1554
+ "type": "string",
1555
+ "enum": [
1556
+ "NULL_VALUE"
1557
+ ],
1558
+ "default": "NULL_VALUE",
1559
+ "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\n The JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value."
1560
+ },
1561
+ "metrics_service.LogQueryRequest.Filter": {
1562
+ "type": "object",
1563
+ "properties": {
1564
+ "field": {
1565
+ "type": "string"
1566
+ },
1567
+ "value": {
1568
+ "type": "string"
1569
+ },
1570
+ "not": {
1571
+ "type": "boolean"
1572
+ }
1573
+ }
1574
+ },
1575
+ "metrics_service.LogQueryRequest.Sort": {
1576
+ "type": "object",
1577
+ "properties": {
1578
+ "field": {
1579
+ "type": "string"
1580
+ },
1581
+ "desc": {
1582
+ "type": "boolean"
1583
+ }
1584
+ }
1585
+ },
1586
+ "metrics_service.LogQueryResponse": {
1587
+ "type": "object",
1588
+ "properties": {
1589
+ "entries": {
1590
+ "type": "array",
1591
+ "items": {
1592
+ "$ref": "#/definitions/common.LogEntry"
1593
+ }
1594
+ },
1595
+ "after": {
1596
+ "type": "array",
1597
+ "items": {
1598
+ "$ref": "#/definitions/common.Any"
1599
+ },
1600
+ "title": "for pagination"
1601
+ },
1602
+ "total": {
1603
+ "type": "string",
1604
+ "format": "int64"
1605
+ }
1606
+ }
1607
+ },
1608
+ "metrics_service.MetricsQueryResponse": {
1609
+ "type": "object",
1610
+ "properties": {
1611
+ "results": {
1612
+ "type": "array",
1613
+ "items": {
1614
+ "$ref": "#/definitions/metrics_service.MetricsQueryResponse.Result"
1615
+ }
1616
+ }
1617
+ }
1618
+ },
1619
+ "metrics_service.MetricsQueryResponse.Matrix": {
1620
+ "type": "object",
1621
+ "properties": {
1622
+ "samples": {
1623
+ "type": "array",
1624
+ "items": {
1625
+ "$ref": "#/definitions/metrics_service.MetricsQueryResponse.Sample"
1626
+ }
1627
+ },
1628
+ "totalSamples": {
1629
+ "type": "integer",
1630
+ "format": "int32"
1631
+ }
1632
+ }
1633
+ },
1634
+ "metrics_service.MetricsQueryResponse.Metric": {
1635
+ "type": "object",
1636
+ "properties": {
1637
+ "name": {
1638
+ "type": "string"
1639
+ },
1640
+ "labels": {
1641
+ "type": "object",
1642
+ "additionalProperties": {
1643
+ "type": "string"
1644
+ }
1645
+ },
1646
+ "displayName": {
1647
+ "type": "string",
1648
+ "title": "string project_id = 3;"
1649
+ }
1650
+ }
1651
+ },
1652
+ "metrics_service.MetricsQueryResponse.Result": {
1653
+ "type": "object",
1654
+ "properties": {
1655
+ "matrix": {
1656
+ "$ref": "#/definitions/metrics_service.MetricsQueryResponse.Matrix",
1657
+ "title": "TODO(chen@sentio.xyz): should use common.Matrix in the future"
1658
+ },
1659
+ "error": {
1660
+ "type": "string"
1661
+ },
1662
+ "alias": {
1663
+ "type": "string"
1664
+ },
1665
+ "id": {
1666
+ "type": "string"
1667
+ }
1668
+ }
1669
+ },
1670
+ "metrics_service.MetricsQueryResponse.Sample": {
1671
+ "type": "object",
1672
+ "properties": {
1673
+ "metric": {
1674
+ "$ref": "#/definitions/metrics_service.MetricsQueryResponse.Metric"
1675
+ },
1676
+ "values": {
1677
+ "type": "array",
1678
+ "items": {
1679
+ "$ref": "#/definitions/metrics_service.MetricsQueryResponse.Value"
1680
+ }
1681
+ }
1682
+ }
1683
+ },
1684
+ "metrics_service.MetricsQueryResponse.Value": {
1685
+ "type": "object",
1686
+ "properties": {
1687
+ "timestamp": {
1688
+ "type": "string",
1689
+ "format": "int64"
1690
+ },
1691
+ "value": {
1692
+ "type": "number",
1693
+ "format": "double"
1694
+ }
1695
+ }
1696
+ },
1697
+ "metrics_service.QueryValueResponse": {
1698
+ "type": "object",
1699
+ "properties": {
1700
+ "results": {
1701
+ "type": "array",
1702
+ "items": {
1703
+ "$ref": "#/definitions/metrics_service.QueryValueResponse.Result"
1704
+ }
1705
+ }
1706
+ }
1707
+ },
1708
+ "metrics_service.QueryValueResponse.Result": {
1709
+ "type": "object",
1710
+ "properties": {
1711
+ "sample": {
1712
+ "type": "array",
1713
+ "items": {
1714
+ "$ref": "#/definitions/metrics_service.MetricsQueryResponse.Sample"
1715
+ }
1716
+ },
1717
+ "error": {
1718
+ "type": "string"
1719
+ },
1720
+ "alias": {
1721
+ "type": "string"
1722
+ },
1723
+ "id": {
1724
+ "type": "string"
1725
+ }
1726
+ }
1727
+ },
1728
+ "processor_service.ChainState": {
1729
+ "type": "object",
1730
+ "properties": {
1731
+ "chainId": {
1732
+ "type": "string",
1733
+ "description": "The chain id."
1734
+ },
1735
+ "processedBlockNumber": {
1736
+ "type": "string",
1737
+ "format": "int64",
1738
+ "description": "The most recently processed block number and block hash."
1739
+ },
1740
+ "processedTimestampMicros": {
1741
+ "type": "string",
1742
+ "format": "int64"
1743
+ },
1744
+ "processedBlockHash": {
1745
+ "type": "string"
1746
+ },
1747
+ "processedVersion": {
1748
+ "type": "integer",
1749
+ "format": "int32",
1750
+ "title": "Processed version"
1751
+ },
1752
+ "status": {
1753
+ "$ref": "#/definitions/processor_service.ChainState.Status"
1754
+ },
1755
+ "updatedAt": {
1756
+ "type": "string",
1757
+ "format": "date-time"
1758
+ },
1759
+ "templates": {
1760
+ "type": "string",
1761
+ "description": "The serialized templates info."
1762
+ },
1763
+ "indexerState": {
1764
+ "type": "string",
1765
+ "description": "The serialized indexer state."
1766
+ },
1767
+ "meterState": {
1768
+ "type": "string",
1769
+ "description": "The serialized meter state."
1770
+ },
1771
+ "initialStartBlockNumber": {
1772
+ "type": "string",
1773
+ "format": "int64"
1774
+ },
1775
+ "estimatedLatestBlockNumber": {
1776
+ "type": "string",
1777
+ "format": "int64"
1778
+ },
1779
+ "trackers": {
1780
+ "type": "string",
1781
+ "description": "To be deprecated after the migration."
1782
+ }
1783
+ }
1784
+ },
1785
+ "processor_service.ChainState.Status": {
1786
+ "type": "object",
1787
+ "properties": {
1788
+ "state": {
1789
+ "$ref": "#/definitions/processor_service.ChainState.Status.State"
1790
+ },
1791
+ "errorRecord": {
1792
+ "$ref": "#/definitions/common.ErrorRecord",
1793
+ "description": "This field is set if state is ERROR."
1794
+ }
1795
+ },
1796
+ "title": "Status of this chain indexer"
1797
+ },
1798
+ "processor_service.ChainState.Status.State": {
1799
+ "type": "string",
1800
+ "enum": [
1801
+ "UNKNOWN",
1802
+ "ERROR",
1803
+ "CATCHING_UP",
1804
+ "PROCESSING_LATEST"
1805
+ ],
1806
+ "default": "UNKNOWN"
1807
+ },
1808
+ "processor_service.DownloadProcessorResponse": {
1809
+ "type": "object",
1810
+ "properties": {
1811
+ "url": {
1812
+ "type": "string"
1813
+ }
1814
+ }
1815
+ },
1816
+ "processor_service.GetProcessorResponse": {
1817
+ "type": "object",
1818
+ "properties": {
1819
+ "processor": {
1820
+ "$ref": "#/definitions/processor_service.Processor"
1821
+ }
1822
+ }
1823
+ },
1824
+ "processor_service.GetProcessorStatusResponse": {
1825
+ "type": "object",
1826
+ "properties": {
1827
+ "processors": {
1828
+ "type": "array",
1829
+ "items": {
1830
+ "$ref": "#/definitions/processor_service.GetProcessorStatusResponse.ProcessorEx"
1831
+ }
1832
+ }
1833
+ }
1834
+ },
1835
+ "processor_service.GetProcessorStatusResponse.ProcessorEx": {
1836
+ "type": "object",
1837
+ "properties": {
1838
+ "states": {
1839
+ "type": "array",
1840
+ "items": {
1841
+ "$ref": "#/definitions/processor_service.ChainState"
1842
+ }
1843
+ },
1844
+ "processorId": {
1845
+ "type": "string"
1846
+ },
1847
+ "codeHash": {
1848
+ "type": "string"
1849
+ },
1850
+ "commitSha": {
1851
+ "type": "string"
1852
+ },
1853
+ "uploadedBy": {
1854
+ "$ref": "#/definitions/common.UserInfo"
1855
+ },
1856
+ "uploadedAt": {
1857
+ "type": "string",
1858
+ "format": "date-time"
1859
+ },
1860
+ "processorStatus": {
1861
+ "$ref": "#/definitions/processor_service.GetProcessorStatusResponse.ProcessorStatus",
1862
+ "description": "The processor status."
1863
+ },
1864
+ "version": {
1865
+ "type": "integer",
1866
+ "format": "int32"
1867
+ },
1868
+ "sdkVersion": {
1869
+ "type": "string"
1870
+ },
1871
+ "gitUrl": {
1872
+ "type": "string"
1873
+ },
1874
+ "versionState": {
1875
+ "$ref": "#/definitions/processor_service.ProcessorVersionState"
1876
+ }
1877
+ }
1878
+ },
1879
+ "processor_service.GetProcessorStatusResponse.ProcessorStatus": {
1880
+ "type": "object",
1881
+ "properties": {
1882
+ "state": {
1883
+ "$ref": "#/definitions/processor_service.GetProcessorStatusResponse.ProcessorStatus.State"
1884
+ },
1885
+ "errorRecord": {
1886
+ "$ref": "#/definitions/common.ErrorRecord",
1887
+ "description": "This field is set if state is ERROR."
1888
+ }
1889
+ }
1890
+ },
1891
+ "processor_service.GetProcessorStatusResponse.ProcessorStatus.State": {
1892
+ "type": "string",
1893
+ "enum": [
1894
+ "UNKNOWN",
1895
+ "ERROR",
1896
+ "STARTING",
1897
+ "PROCESSING"
1898
+ ],
1899
+ "default": "UNKNOWN"
1900
+ },
1901
+ "processor_service.GetProcessorWithProjectResponse": {
1902
+ "type": "object",
1903
+ "properties": {
1904
+ "processor": {
1905
+ "$ref": "#/definitions/processor_service.Processor"
1906
+ },
1907
+ "project": {
1908
+ "$ref": "#/definitions/common.Project"
1909
+ }
1910
+ }
1911
+ },
1912
+ "processor_service.GetProcessorsResponse": {
1913
+ "type": "object",
1914
+ "properties": {
1915
+ "processors": {
1916
+ "type": "array",
1917
+ "items": {
1918
+ "$ref": "#/definitions/processor_service.Processor"
1919
+ }
1920
+ }
1921
+ }
1922
+ },
1923
+ "processor_service.GetProjectVersionsResponse": {
1924
+ "type": "object",
1925
+ "properties": {
1926
+ "versions": {
1927
+ "type": "array",
1928
+ "items": {
1929
+ "$ref": "#/definitions/processor_service.GetProjectVersionsResponse.Version"
1930
+ }
1931
+ }
1932
+ }
1933
+ },
1934
+ "processor_service.GetProjectVersionsResponse.Version": {
1935
+ "type": "object",
1936
+ "properties": {
1937
+ "version": {
1938
+ "type": "integer",
1939
+ "format": "int32"
1940
+ },
1941
+ "state": {
1942
+ "$ref": "#/definitions/processor_service.ProcessorVersionState"
1943
+ },
1944
+ "processorId": {
1945
+ "type": "string"
1946
+ }
1947
+ }
1948
+ },
1949
+ "processor_service.Processor": {
1950
+ "type": "object",
1951
+ "properties": {
1952
+ "processorId": {
1953
+ "type": "string",
1954
+ "description": "The unique processor id."
1955
+ },
1956
+ "projectId": {
1957
+ "type": "string",
1958
+ "description": "The project this processor belongs to."
1959
+ },
1960
+ "version": {
1961
+ "type": "integer",
1962
+ "format": "int32",
1963
+ "description": "The version of the code_url below."
1964
+ },
1965
+ "sdkVersion": {
1966
+ "type": "string",
1967
+ "title": "The SDK version used when uploaded"
1968
+ },
1969
+ "codeUrl": {
1970
+ "type": "string",
1971
+ "description": "Call should be able to fetch the code to run from code_url."
1972
+ },
1973
+ "chainStates": {
1974
+ "type": "array",
1975
+ "items": {
1976
+ "$ref": "#/definitions/processor_service.ChainState"
1977
+ },
1978
+ "title": "Each maintains a state of a processor w.r.t a given chain.\nThis is a one-to-many mapping (processor to processor-chain)"
1979
+ },
1980
+ "contractId": {
1981
+ "type": "string",
1982
+ "description": "If non empty, this is the contract associated with the processor."
1983
+ },
1984
+ "versionState": {
1985
+ "$ref": "#/definitions/processor_service.ProcessorVersionState"
1986
+ },
1987
+ "debug": {
1988
+ "type": "boolean",
1989
+ "title": "If enabled, driver job's log level will be set to debug"
1990
+ },
1991
+ "timescaleShardingIndex": {
1992
+ "type": "integer",
1993
+ "format": "int32",
1994
+ "description": "The timescale-db sharding index of this processor."
1995
+ }
1996
+ },
1997
+ "description": "This represents a processor which backend works on."
1998
+ },
1999
+ "processor_service.ProcessorVersionState": {
2000
+ "type": "string",
2001
+ "enum": [
2002
+ "UNKNOWN",
2003
+ "PENDING",
2004
+ "ACTIVE",
2005
+ "OBSOLETE"
2006
+ ],
2007
+ "default": "UNKNOWN"
2008
+ },
2009
+ "processor_service.UpdateChainProcessorStatusResponse": {
2010
+ "type": "object"
2011
+ },
2012
+ "web_service.Chart": {
2013
+ "type": "object",
2014
+ "properties": {
2015
+ "type": {
2016
+ "$ref": "#/definitions/web_service.Chart.ChartType"
2017
+ },
2018
+ "queries": {
2019
+ "type": "array",
2020
+ "items": {
2021
+ "$ref": "#/definitions/common.Query"
2022
+ }
2023
+ },
2024
+ "formulas": {
2025
+ "type": "array",
2026
+ "items": {
2027
+ "$ref": "#/definitions/common.Formula"
2028
+ }
2029
+ },
2030
+ "config": {
2031
+ "$ref": "#/definitions/web_service.ChartConfig"
2032
+ },
2033
+ "note": {
2034
+ "$ref": "#/definitions/web_service.Note"
2035
+ },
2036
+ "datasourceType": {
2037
+ "$ref": "#/definitions/web_service.Chart.DataSourceType"
2038
+ },
2039
+ "segmentationQueries": {
2040
+ "type": "array",
2041
+ "items": {
2042
+ "$ref": "#/definitions/common.SegmentationQuery"
2043
+ }
2044
+ }
2045
+ }
2046
+ },
2047
+ "web_service.Chart.ChartType": {
2048
+ "type": "string",
2049
+ "enum": [
2050
+ "LINE",
2051
+ "AREA",
2052
+ "BAR",
2053
+ "BAR_GAUGE",
2054
+ "TABLE",
2055
+ "QUERY_VALUE",
2056
+ "PIE",
2057
+ "NOTE"
2058
+ ],
2059
+ "default": "LINE"
2060
+ },
2061
+ "web_service.Chart.DataSourceType": {
2062
+ "type": "string",
2063
+ "enum": [
2064
+ "METRICS",
2065
+ "NOTES",
2066
+ "ANALYTICS"
2067
+ ],
2068
+ "default": "METRICS"
2069
+ },
2070
+ "web_service.ChartConfig": {
2071
+ "type": "object",
2072
+ "properties": {
2073
+ "yAxis": {
2074
+ "$ref": "#/definitions/web_service.ChartConfig.YAxisConfig"
2075
+ },
2076
+ "barGauge": {
2077
+ "$ref": "#/definitions/web_service.ChartConfig.BarGaugeConfig"
2078
+ },
2079
+ "valueConfig": {
2080
+ "$ref": "#/definitions/web_service.ChartConfig.ValueConfig"
2081
+ },
2082
+ "timeRangeOverride": {
2083
+ "$ref": "#/definitions/web_service.ChartConfig.TimeRangeOverride"
2084
+ },
2085
+ "tableConfig": {
2086
+ "$ref": "#/definitions/web_service.ChartConfig.TableConfig"
2087
+ },
2088
+ "queryValueConfig": {
2089
+ "$ref": "#/definitions/web_service.ChartConfig.QueryValueConfig"
2090
+ },
2091
+ "pieConfig": {
2092
+ "$ref": "#/definitions/web_service.ChartConfig.PieConfig"
2093
+ }
2094
+ }
2095
+ },
2096
+ "web_service.ChartConfig.BarGaugeConfig": {
2097
+ "type": "object",
2098
+ "properties": {
2099
+ "direction": {
2100
+ "$ref": "#/definitions/web_service.ChartConfig.Direction"
2101
+ },
2102
+ "calculation": {
2103
+ "$ref": "#/definitions/web_service.ChartConfig.Calculation"
2104
+ },
2105
+ "sort": {
2106
+ "$ref": "#/definitions/web_service.ChartConfig.Sort"
2107
+ }
2108
+ }
2109
+ },
2110
+ "web_service.ChartConfig.Calculation": {
2111
+ "type": "string",
2112
+ "enum": [
2113
+ "LAST",
2114
+ "FIRST",
2115
+ "MEAN",
2116
+ "TOTAL",
2117
+ "ALL"
2118
+ ],
2119
+ "default": "LAST"
2120
+ },
2121
+ "web_service.ChartConfig.ColorTheme": {
2122
+ "type": "object",
2123
+ "properties": {
2124
+ "textColor": {
2125
+ "type": "string"
2126
+ },
2127
+ "backgroundColor": {
2128
+ "type": "string"
2129
+ },
2130
+ "themeType": {
2131
+ "type": "string"
2132
+ }
2133
+ }
2134
+ },
2135
+ "web_service.ChartConfig.ColumnSort": {
2136
+ "type": "object",
2137
+ "properties": {
2138
+ "column": {
2139
+ "type": "string"
2140
+ },
2141
+ "orderDesc": {
2142
+ "type": "boolean"
2143
+ }
2144
+ }
2145
+ },
2146
+ "web_service.ChartConfig.Direction": {
2147
+ "type": "string",
2148
+ "enum": [
2149
+ "HORIZONTAL",
2150
+ "VERTICAL"
2151
+ ],
2152
+ "default": "HORIZONTAL"
2153
+ },
2154
+ "web_service.ChartConfig.MappingRule": {
2155
+ "type": "object",
2156
+ "properties": {
2157
+ "comparison": {
2158
+ "type": "string"
2159
+ },
2160
+ "value": {
2161
+ "type": "number",
2162
+ "format": "double"
2163
+ },
2164
+ "text": {
2165
+ "type": "string"
2166
+ },
2167
+ "colorTheme": {
2168
+ "$ref": "#/definitions/web_service.ChartConfig.ColorTheme"
2169
+ }
2170
+ }
2171
+ },
2172
+ "web_service.ChartConfig.PieConfig": {
2173
+ "type": "object",
2174
+ "properties": {
2175
+ "pieType": {
2176
+ "$ref": "#/definitions/web_service.ChartConfig.PieConfig.PieType"
2177
+ },
2178
+ "showPercent": {
2179
+ "type": "boolean"
2180
+ },
2181
+ "showValue": {
2182
+ "type": "boolean"
2183
+ },
2184
+ "calculation": {
2185
+ "$ref": "#/definitions/web_service.ChartConfig.Calculation"
2186
+ }
2187
+ }
2188
+ },
2189
+ "web_service.ChartConfig.PieConfig.PieType": {
2190
+ "type": "string",
2191
+ "enum": [
2192
+ "Pie",
2193
+ "Donut"
2194
+ ],
2195
+ "default": "Pie"
2196
+ },
2197
+ "web_service.ChartConfig.QueryValueConfig": {
2198
+ "type": "object",
2199
+ "properties": {
2200
+ "colorTheme": {
2201
+ "$ref": "#/definitions/web_service.ChartConfig.ColorTheme"
2202
+ },
2203
+ "showBackgroundChart": {
2204
+ "type": "boolean"
2205
+ },
2206
+ "calculation": {
2207
+ "$ref": "#/definitions/web_service.ChartConfig.Calculation"
2208
+ }
2209
+ }
2210
+ },
2211
+ "web_service.ChartConfig.Sort": {
2212
+ "type": "object",
2213
+ "properties": {
2214
+ "sortBy": {
2215
+ "$ref": "#/definitions/web_service.ChartConfig.SortBy"
2216
+ },
2217
+ "orderDesc": {
2218
+ "type": "boolean"
2219
+ }
2220
+ }
2221
+ },
2222
+ "web_service.ChartConfig.SortBy": {
2223
+ "type": "string",
2224
+ "enum": [
2225
+ "ByName",
2226
+ "ByValue"
2227
+ ],
2228
+ "default": "ByName"
2229
+ },
2230
+ "web_service.ChartConfig.TableConfig": {
2231
+ "type": "object",
2232
+ "properties": {
2233
+ "calculation": {
2234
+ "$ref": "#/definitions/web_service.ChartConfig.Calculation"
2235
+ },
2236
+ "showColumns": {
2237
+ "type": "object",
2238
+ "additionalProperties": {
2239
+ "type": "boolean"
2240
+ },
2241
+ "title": "map\u003cstring, bool\u003e sort_by = 2;"
2242
+ },
2243
+ "sortColumns": {
2244
+ "type": "array",
2245
+ "items": {
2246
+ "$ref": "#/definitions/web_service.ChartConfig.ColumnSort"
2247
+ }
2248
+ },
2249
+ "columnOrders": {
2250
+ "type": "array",
2251
+ "items": {
2252
+ "type": "string"
2253
+ }
2254
+ },
2255
+ "columnWidths": {
2256
+ "type": "object",
2257
+ "additionalProperties": {
2258
+ "type": "integer",
2259
+ "format": "int32"
2260
+ }
2261
+ },
2262
+ "showPlainData": {
2263
+ "type": "boolean"
2264
+ },
2265
+ "calculations": {
2266
+ "type": "object",
2267
+ "additionalProperties": {
2268
+ "$ref": "#/definitions/web_service.ChartConfig.Calculation"
2269
+ }
2270
+ },
2271
+ "valueConfigs": {
2272
+ "type": "object",
2273
+ "additionalProperties": {
2274
+ "$ref": "#/definitions/web_service.ChartConfig.ValueConfig"
2275
+ }
2276
+ }
2277
+ }
2278
+ },
2279
+ "web_service.ChartConfig.TimeRangeOverride": {
2280
+ "type": "object",
2281
+ "properties": {
2282
+ "enabled": {
2283
+ "type": "boolean"
2284
+ },
2285
+ "timeRange": {
2286
+ "$ref": "#/definitions/common.TimeRange"
2287
+ }
2288
+ }
2289
+ },
2290
+ "web_service.ChartConfig.ValueConfig": {
2291
+ "type": "object",
2292
+ "properties": {
2293
+ "valueFormatter": {
2294
+ "$ref": "#/definitions/web_service.ChartConfig.ValueFormatter"
2295
+ },
2296
+ "showValueLabel": {
2297
+ "type": "boolean"
2298
+ },
2299
+ "maxSignificantDigits": {
2300
+ "type": "integer",
2301
+ "format": "int32"
2302
+ },
2303
+ "dateFormat": {
2304
+ "type": "string"
2305
+ },
2306
+ "mappingRules": {
2307
+ "type": "array",
2308
+ "items": {
2309
+ "$ref": "#/definitions/web_service.ChartConfig.MappingRule"
2310
+ }
2311
+ },
2312
+ "style": {
2313
+ "$ref": "#/definitions/web_service.ChartConfig.ValueConfig.Style"
2314
+ },
2315
+ "maxFractionDigits": {
2316
+ "type": "integer",
2317
+ "format": "int32"
2318
+ },
2319
+ "precision": {
2320
+ "type": "integer",
2321
+ "format": "int32"
2322
+ },
2323
+ "currencySymbol": {
2324
+ "type": "string"
2325
+ }
2326
+ }
2327
+ },
2328
+ "web_service.ChartConfig.ValueConfig.Style": {
2329
+ "type": "string",
2330
+ "enum": [
2331
+ "Standard",
2332
+ "Compact",
2333
+ "Scientific",
2334
+ "Percent",
2335
+ "Currency"
2336
+ ],
2337
+ "default": "Standard"
2338
+ },
2339
+ "web_service.ChartConfig.ValueFormatter": {
2340
+ "type": "string",
2341
+ "enum": [
2342
+ "NumberFormatter",
2343
+ "DateFormatter",
2344
+ "StringFormatter"
2345
+ ],
2346
+ "default": "NumberFormatter"
2347
+ },
2348
+ "web_service.ChartConfig.YAxisConfig": {
2349
+ "type": "object",
2350
+ "properties": {
2351
+ "min": {
2352
+ "type": "string"
2353
+ },
2354
+ "max": {
2355
+ "type": "string"
2356
+ },
2357
+ "scale": {
2358
+ "type": "boolean"
2359
+ },
2360
+ "stacked": {
2361
+ "type": "string"
2362
+ }
2363
+ }
2364
+ },
2365
+ "web_service.Dashboard": {
2366
+ "type": "object",
2367
+ "properties": {
2368
+ "id": {
2369
+ "type": "string"
2370
+ },
2371
+ "name": {
2372
+ "type": "string"
2373
+ },
2374
+ "projectId": {
2375
+ "type": "string"
2376
+ },
2377
+ "description": {
2378
+ "type": "string"
2379
+ },
2380
+ "createdAt": {
2381
+ "type": "string",
2382
+ "format": "date-time"
2383
+ },
2384
+ "updatedAt": {
2385
+ "type": "string",
2386
+ "format": "date-time"
2387
+ },
2388
+ "panels": {
2389
+ "type": "object",
2390
+ "additionalProperties": {
2391
+ "$ref": "#/definitions/web_service.Panel"
2392
+ }
2393
+ },
2394
+ "layouts": {
2395
+ "$ref": "#/definitions/web_service.Dashboard.ResponsiveLayouts"
2396
+ },
2397
+ "extra": {
2398
+ "$ref": "#/definitions/web_service.Dashboard.Extra"
2399
+ },
2400
+ "sharing": {
2401
+ "$ref": "#/definitions/web_service.DashboardSharing"
2402
+ }
2403
+ }
2404
+ },
2405
+ "web_service.Dashboard.Extra": {
2406
+ "type": "object",
2407
+ "properties": {
2408
+ "templateVariables": {
2409
+ "type": "object",
2410
+ "additionalProperties": {
2411
+ "$ref": "#/definitions/web_service.Dashboard.Extra.TemplateVariable"
2412
+ }
2413
+ },
2414
+ "templateViews": {
2415
+ "type": "array",
2416
+ "items": {
2417
+ "$ref": "#/definitions/web_service.Dashboard.Extra.TemplateView"
2418
+ }
2419
+ }
2420
+ }
2421
+ },
2422
+ "web_service.Dashboard.Extra.TemplateVariable": {
2423
+ "type": "object",
2424
+ "properties": {
2425
+ "field": {
2426
+ "type": "string"
2427
+ },
2428
+ "defaultValue": {
2429
+ "type": "string"
2430
+ }
2431
+ }
2432
+ },
2433
+ "web_service.Dashboard.Extra.TemplateView": {
2434
+ "type": "object",
2435
+ "properties": {
2436
+ "values": {
2437
+ "type": "object",
2438
+ "additionalProperties": {
2439
+ "type": "string"
2440
+ }
2441
+ }
2442
+ }
2443
+ },
2444
+ "web_service.Dashboard.Layouts": {
2445
+ "type": "object",
2446
+ "properties": {
2447
+ "layouts": {
2448
+ "type": "array",
2449
+ "items": {
2450
+ "$ref": "#/definitions/web_service.Dashboard.Layouts.Layout"
2451
+ }
2452
+ }
2453
+ }
2454
+ },
2455
+ "web_service.Dashboard.Layouts.Layout": {
2456
+ "type": "object",
2457
+ "properties": {
2458
+ "i": {
2459
+ "type": "string"
2460
+ },
2461
+ "x": {
2462
+ "type": "integer",
2463
+ "format": "int32"
2464
+ },
2465
+ "y": {
2466
+ "type": "integer",
2467
+ "format": "int32"
2468
+ },
2469
+ "w": {
2470
+ "type": "integer",
2471
+ "format": "int32"
2472
+ },
2473
+ "h": {
2474
+ "type": "integer",
2475
+ "format": "int32"
2476
+ }
2477
+ }
2478
+ },
2479
+ "web_service.Dashboard.ResponsiveLayouts": {
2480
+ "type": "object",
2481
+ "properties": {
2482
+ "responsiveLayouts": {
2483
+ "type": "object",
2484
+ "additionalProperties": {
2485
+ "$ref": "#/definitions/web_service.Dashboard.Layouts"
2486
+ }
2487
+ }
2488
+ }
2489
+ },
2490
+ "web_service.DashboardSharing": {
2491
+ "type": "object",
2492
+ "properties": {
2493
+ "id": {
2494
+ "type": "string"
2495
+ },
2496
+ "dashboardId": {
2497
+ "type": "string"
2498
+ },
2499
+ "isPublic": {
2500
+ "type": "boolean"
2501
+ },
2502
+ "viewers": {
2503
+ "type": "array",
2504
+ "items": {
2505
+ "type": "string"
2506
+ }
2507
+ }
2508
+ }
2509
+ },
2510
+ "web_service.ExportDashboardResponse": {
2511
+ "type": "object",
2512
+ "properties": {
2513
+ "dashboardJson": {
2514
+ "type": "object"
2515
+ }
2516
+ }
2517
+ },
2518
+ "web_service.GetDashboardResponse": {
2519
+ "type": "object",
2520
+ "properties": {
2521
+ "dashboards": {
2522
+ "type": "array",
2523
+ "items": {
2524
+ "$ref": "#/definitions/web_service.Dashboard"
2525
+ }
2526
+ },
2527
+ "permissions": {
2528
+ "type": "array",
2529
+ "items": {
2530
+ "$ref": "#/definitions/common.Permission"
2531
+ }
2532
+ }
2533
+ }
2534
+ },
2535
+ "web_service.GetProjectResponse": {
2536
+ "type": "object",
2537
+ "properties": {
2538
+ "project": {
2539
+ "$ref": "#/definitions/common.Project"
2540
+ },
2541
+ "permissions": {
2542
+ "type": "array",
2543
+ "items": {
2544
+ "$ref": "#/definitions/common.Permission"
2545
+ }
2546
+ }
2547
+ }
2548
+ },
2549
+ "web_service.ImportDashboardRequest": {
2550
+ "type": "object",
2551
+ "properties": {
2552
+ "dashboardId": {
2553
+ "type": "string"
2554
+ },
2555
+ "dashboardJson": {
2556
+ "type": "object"
2557
+ },
2558
+ "overrideLayouts": {
2559
+ "type": "boolean"
2560
+ }
2561
+ }
2562
+ },
2563
+ "web_service.ImportDashboardResponse": {
2564
+ "type": "object",
2565
+ "properties": {
2566
+ "dashboard": {
2567
+ "$ref": "#/definitions/web_service.Dashboard"
2568
+ }
2569
+ }
2570
+ },
2571
+ "web_service.Note": {
2572
+ "type": "object",
2573
+ "properties": {
2574
+ "content": {
2575
+ "type": "string"
2576
+ },
2577
+ "fontSize": {
2578
+ "$ref": "#/definitions/web_service.Note.FontSize"
2579
+ },
2580
+ "textAlign": {
2581
+ "$ref": "#/definitions/web_service.Note.Alignment"
2582
+ }
2583
+ }
2584
+ },
2585
+ "web_service.Note.Alignment": {
2586
+ "type": "string",
2587
+ "enum": [
2588
+ "LEFT",
2589
+ "CENTER",
2590
+ "RIGHT"
2591
+ ],
2592
+ "default": "LEFT"
2593
+ },
2594
+ "web_service.Note.FontSize": {
2595
+ "type": "string",
2596
+ "enum": [
2597
+ "MD",
2598
+ "SM",
2599
+ "LG",
2600
+ "XL",
2601
+ "XXL"
2602
+ ],
2603
+ "default": "MD"
2604
+ },
2605
+ "web_service.Panel": {
2606
+ "type": "object",
2607
+ "properties": {
2608
+ "id": {
2609
+ "type": "string"
2610
+ },
2611
+ "name": {
2612
+ "type": "string"
2613
+ },
2614
+ "dashboardId": {
2615
+ "type": "string"
2616
+ },
2617
+ "chart": {
2618
+ "$ref": "#/definitions/web_service.Chart"
2619
+ }
2620
+ }
2621
+ }
2622
+ },
2623
+ "securityDefinitions": {
2624
+ "ApiKeyAuth": {
2625
+ "type": "apiKey",
2626
+ "name": "Api-Key",
2627
+ "in": "header"
2628
+ }
2629
+ },
2630
+ "security": [
2631
+ {
2632
+ "ApiKeyAuth": []
2633
+ }
2634
+ ]
2635
+ }