Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
djmadeira committed May 6, 2024
1 parent 3a828a3 commit 6087fc2
Show file tree
Hide file tree
Showing 3 changed files with 122 additions and 113 deletions.
6 changes: 0 additions & 6 deletions package-lock.json

This file was deleted.

8 changes: 4 additions & 4 deletions spec/namespaces/rollups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,18 +90,18 @@ components:
content:
application/json:
schema:
$ref: '../schemas/rollups._common.yaml#/components/schemas/Rollup'
$ref: '../schemas/rollups._common.yaml#/components/schemas/RollupEntity'
responses:
rollups.get_rollup@200:
content:
application/json:
schema:
$ref: '../schemas/rollups._common.yaml#/components/schemas/Rollup'
$ref: '../schemas/rollups._common.yaml#/components/schemas/RollupEntity'
rollups.put_rollup@200:
content:
application/json:
schema:
$ref: '../schemas/rollups._common.yaml#/components/schemas/Rollup'
$ref: '../schemas/rollups._common.yaml#/components/schemas/RollupEntity'
rollups.delete_rollup@200:
description: ''
rollups.start_rollup@200:
Expand All @@ -112,7 +112,7 @@ components:
content:
application/json:
schema:
$ref: '../schemas/rollups._common.yaml#/components/schemas/Explain'
$ref: '../schemas/rollups._common.yaml#/components/schemas/ExplainEntities'
parameters:
rollups.get_rollup::path.id:
name: id
Expand Down
221 changes: 118 additions & 103 deletions spec/schemas/rollups._common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ info:
paths: {}
components:
schemas:
Rollup:
RollupEntity:
type: object
properties:
_id:
Expand All @@ -16,97 +16,61 @@ components:
_primaryTerm:
type: number
rollup:
type: object
properties:
rollup_id:
type: string
enabled:
type: boolean
schedule:
type: object
properties:
interval:
type: object
properties:
start_time:
type: number
period:
type: number
unit:
type: string
cron:
oneOf:
- type: array
items:
$ref: '#/components/schemas/Cron'
- $ref: '#/components/schemas/Cron'
schedule_delay:
type: number
last_updated_time:
type: number
enabled_time:
type: number
description:
type: string
schema_version:
type: number
source_index:
type: string
target_index:
type: string
metadata_id:
type: string
page_size:
type: number
delay:
type: number
continuous:
type: boolean
dimensions:
type: array
items:
$ref: '#/components/schemas/DimensionsConfigItem'
metrics:
type: array
items:
$ref: '#/components/schemas/MetricsConfigItem'
error_notification:
type: string
description: 'Set up a Mustache message template for error notifications. For example, if an index rollup job fails, the system sends a message to a Slack channel.'
Explain:
$ref: '#/components/schemas/Rollup'
Rollup:
type: object
properties:
rollup_id:
type: string
enabled:
type: boolean
schedule:
$ref: '#/components/schemas/Schedule'
last_updated_time:
type: number
enabled_time:
type: number
description:
type: string
schema_version:
type: number
source_index:
type: string
target_index:
type: string
metadata_id:
type: string
page_size:
type: number
delay:
type: number
continuous:
type: boolean
dimensions:
type: array
items:
$ref: '#/components/schemas/DimensionsConfigItem'
metrics:
type: array
items:
$ref: '#/components/schemas/MetricsConfigItem'
error_notification:
type: string
description: 'Set up a Mustache message template for error notifications. For example, if an index rollup job fails, the system sends a message to a Slack channel.'
ExplainEntities:
type: object
properties:
item:
type: object
properties:
rollup_id:
type: string
last_updated_time:
type: number
continuous:
type: object
properties:
next_window_start_time:
type: number
next_window_end_time:
type: number
status:
type: string
failure_reason:
type: string
stats:
type: object
properties:
pages_processsed:
type: number
documents_processed:
type: number
rollups_indexed:
type: number
index_time_in_ms:
type: number
search_time_in_ms:
type: number
$ref: '#/components/schemas/Explain'
Explain:
type: object
properties:
rollup_id:
type: string
last_updated_time:
type: number
continuous:
$ref: '#/components/schemas/Continuous'
DimensionsConfigItem:
type: object
properties:
Expand Down Expand Up @@ -157,24 +121,75 @@ components:
metrics:
type: array
items:
type: object
properties:
avg:
type: object
sum:
type: object
max:
type: object
min:
type: object
value_count:
type: object
minproperties: 1
maxproperties: 1
$ref: '#/components/schemas/MetricsConfigMetrics'
MetricsConfigMetrics:
type: object
properties:
avg:
type: object
sum:
type: object
max:
type: object
min:
type: object
value_count:
type: object
minproperties: 1
maxproperties: 1
Cron:
type: object
properties:
expression:
type: string
timezone:
type: string
Schedule:
type: object
properties:
interval:
$ref: '#/components/schemas/Interval'
Interval:
type: object
properties:
start_time:
type: number
period:
type: number
unit:
type: string
cron:
oneOf:
- type: array
items:
$ref: '#/components/schemas/Cron'
- $ref: '#/components/schemas/Cron'
schedule_delay:
type: number
Continuous:
type: object
properties:
next_window_start_time:
type: number
next_window_end_time:
type: number
status:
type: string
failure_reason:
type: string
stats:
$ref: '#/components/schemas/Stats'
Stats:
type: object
properties:
pages_processsed:
type: number
documents_processed:
type: number
rollups_indexed:
type: number
index_time_in_ms:
type: number
search_time_in_ms:
type: number

0 comments on commit 6087fc2

Please sign in to comment.