-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Moshe Immermam <[email protected]>
- Loading branch information
Showing
60 changed files
with
35,478 additions
and
257 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,379 @@ | ||
{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://github.com/flanksource/config-db/api/v1/file","$ref":"#/$defs/File","$defs":{"ChangeMapping":{"properties":{"filter":{"type":"string"},"type":{"type":"string"},"action":{"type":"string"},"summary":{"type":"string"}},"additionalProperties":false,"type":"object"},"ConfigFieldExclusion":{"properties":{"types":{"items":{"type":"string"},"type":"array"},"jsonpath":{"type":"string"}},"additionalProperties":false,"type":"object","required":["jsonpath"]},"ConfigProperties":{"properties":{"label":{"type":"string"},"name":{"type":"string"},"tooltip":{"type":"string"},"icon":{"type":"string"},"type":{"type":"string"},"color":{"type":"string"},"order":{"type":"integer"},"headline":{"type":"boolean"},"text":{"type":"string"},"value":{"type":"integer"},"unit":{"type":"string"},"max":{"type":"integer"},"min":{"type":"integer"},"status":{"type":"string"},"lastTransition":{"type":"string"},"links":{"items":{"$ref":"#/$defs/Link"},"type":"array"},"filter":{"type":"string"}},"additionalProperties":false,"type":"object"},"File":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"items":{"type":"string"},"type":{"type":"string"},"class":{"type":"string"},"transform":{"$ref":"#/$defs/Transform"},"format":{"type":"string"},"timestampFormat":{"type":"string"},"createFields":{"items":{"type":"string"},"type":"array"},"deleteFields":{"items":{"type":"string"},"type":"array"},"labels":{"$ref":"#/$defs/JSONStringMap"},"tags":{"$ref":"#/$defs/Tags"},"properties":{"items":{"$ref":"#/$defs/ConfigProperties"},"type":"array"},"url":{"type":"string"},"paths":{"items":{"type":"string"},"type":"array"},"ignore":{"items":{"type":"string"},"type":"array"},"icon":{"type":"string"},"connection":{"type":"string"}},"additionalProperties":false,"type":"object"},"JSONStringMap":{"additionalProperties":{"type":"string"},"type":"object"},"Link":{"properties":{"type":{"type":"string"},"url":{"type":"string"},"tooltip":{"type":"string"},"icon":{"type":"string"},"text":{"type":"string"},"label":{"type":"string"}},"additionalProperties":false,"type":"object"},"Mask":{"properties":{"selector":{"type":"string"},"jsonpath":{"type":"string"},"value":{"type":"string"}},"additionalProperties":false,"type":"object"},"MaskList":{"items":{"$ref":"#/$defs/Mask"},"type":"array"},"RelationshipConfig":{"properties":{"id":{"$ref":"#/$defs/RelationshipLookup"},"name":{"$ref":"#/$defs/RelationshipLookup"},"type":{"$ref":"#/$defs/RelationshipLookup"},"agent":{"$ref":"#/$defs/RelationshipLookup"},"labels":{"additionalProperties":{"type":"string"},"type":"object"},"expr":{"type":"string"},"filter":{"type":"string"}},"additionalProperties":false,"type":"object"},"RelationshipLookup":{"properties":{"expr":{"type":"string"},"value":{"type":"string"},"label":{"type":"string"}},"additionalProperties":false,"type":"object"},"Tag":{"properties":{"name":{"type":"string"},"label":{"type":"string"},"jsonpath":{"type":"string"},"value":{"type":"string"}},"additionalProperties":false,"type":"object","required":["name"]},"Tags":{"items":{"$ref":"#/$defs/Tag"},"type":"array"},"Transform":{"properties":{"gotemplate":{"type":"string"},"jsonpath":{"type":"string"},"expr":{"type":"string"},"javascript":{"type":"string"},"exclude":{"items":{"$ref":"#/$defs/ConfigFieldExclusion"},"type":"array"},"mask":{"$ref":"#/$defs/MaskList"},"relationship":{"items":{"$ref":"#/$defs/RelationshipConfig"},"type":"array"},"changes":{"$ref":"#/$defs/TransformChange"}},"additionalProperties":false,"type":"object"},"TransformChange":{"properties":{"mapping":{"items":{"$ref":"#/$defs/ChangeMapping"},"type":"array"},"exclude":{"items":{"type":"string"},"type":"array"}},"additionalProperties":false,"type":"object"}}} | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://github.com/flanksource/config-db/api/v1/file", | ||
"$ref": "#/$defs/File", | ||
"$defs": { | ||
"ChangeMapping": { | ||
"properties": { | ||
"filter": { | ||
"type": "string" | ||
}, | ||
"severity": { | ||
"type": "string" | ||
}, | ||
"type": { | ||
"type": "string" | ||
}, | ||
"action": { | ||
"type": "string" | ||
}, | ||
"summary": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object" | ||
}, | ||
"ConfigFieldExclusion": { | ||
"properties": { | ||
"types": { | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"jsonpath": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object", | ||
"required": [ | ||
"jsonpath" | ||
] | ||
}, | ||
"ConfigProperties": { | ||
"properties": { | ||
"label": { | ||
"type": "string" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"tooltip": { | ||
"type": "string" | ||
}, | ||
"icon": { | ||
"type": "string" | ||
}, | ||
"type": { | ||
"type": "string" | ||
}, | ||
"color": { | ||
"type": "string" | ||
}, | ||
"order": { | ||
"type": "integer" | ||
}, | ||
"headline": { | ||
"type": "boolean" | ||
}, | ||
"text": { | ||
"type": "string" | ||
}, | ||
"value": { | ||
"type": "integer" | ||
}, | ||
"unit": { | ||
"type": "string" | ||
}, | ||
"max": { | ||
"type": "integer" | ||
}, | ||
"min": { | ||
"type": "integer" | ||
}, | ||
"status": { | ||
"type": "string" | ||
}, | ||
"lastTransition": { | ||
"type": "string" | ||
}, | ||
"links": { | ||
"items": { | ||
"$ref": "#/$defs/Link" | ||
}, | ||
"type": "array" | ||
}, | ||
"filter": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object" | ||
}, | ||
"File": { | ||
"properties": { | ||
"id": { | ||
"type": "string" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"description": { | ||
"type": "string" | ||
}, | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": { | ||
"type": "string" | ||
}, | ||
"class": { | ||
"type": "string" | ||
}, | ||
"format": { | ||
"type": "string" | ||
}, | ||
"status": { | ||
"type": "string" | ||
}, | ||
"health": { | ||
"type": "string" | ||
}, | ||
"timestampFormat": { | ||
"type": "string" | ||
}, | ||
"createFields": { | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"deleteFields": { | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"transform": { | ||
"$ref": "#/$defs/Transform" | ||
}, | ||
"labels": { | ||
"$ref": "#/$defs/JSONStringMap" | ||
}, | ||
"tags": { | ||
"$ref": "#/$defs/Tags" | ||
}, | ||
"properties": { | ||
"items": { | ||
"$ref": "#/$defs/ConfigProperties" | ||
}, | ||
"type": "array" | ||
}, | ||
"url": { | ||
"type": "string" | ||
}, | ||
"paths": { | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"ignore": { | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"icon": { | ||
"type": "string" | ||
}, | ||
"connection": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object" | ||
}, | ||
"JSONStringMap": { | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"type": "object" | ||
}, | ||
"Link": { | ||
"properties": { | ||
"type": { | ||
"type": "string" | ||
}, | ||
"url": { | ||
"type": "string" | ||
}, | ||
"tooltip": { | ||
"type": "string" | ||
}, | ||
"icon": { | ||
"type": "string" | ||
}, | ||
"text": { | ||
"type": "string" | ||
}, | ||
"label": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object" | ||
}, | ||
"Lookup": { | ||
"properties": { | ||
"expr": { | ||
"type": "string" | ||
}, | ||
"value": { | ||
"type": "string" | ||
}, | ||
"label": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object" | ||
}, | ||
"Mask": { | ||
"properties": { | ||
"selector": { | ||
"type": "string" | ||
}, | ||
"jsonpath": { | ||
"type": "string" | ||
}, | ||
"value": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object" | ||
}, | ||
"MaskList": { | ||
"items": { | ||
"$ref": "#/$defs/Mask" | ||
}, | ||
"type": "array" | ||
}, | ||
"RelationshipConfig": { | ||
"properties": { | ||
"id": { | ||
"$ref": "#/$defs/Lookup" | ||
}, | ||
"external_id": { | ||
"$ref": "#/$defs/Lookup" | ||
}, | ||
"name": { | ||
"$ref": "#/$defs/Lookup" | ||
}, | ||
"namespace": { | ||
"$ref": "#/$defs/Lookup" | ||
}, | ||
"type": { | ||
"$ref": "#/$defs/Lookup" | ||
}, | ||
"agent": { | ||
"$ref": "#/$defs/Lookup" | ||
}, | ||
"scope": { | ||
"$ref": "#/$defs/Lookup" | ||
}, | ||
"labels": { | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"type": "object" | ||
}, | ||
"expr": { | ||
"type": "string" | ||
}, | ||
"filter": { | ||
"type": "string" | ||
}, | ||
"parent": { | ||
"type": "boolean" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object" | ||
}, | ||
"Tag": { | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"label": { | ||
"type": "string" | ||
}, | ||
"jsonpath": { | ||
"type": "string" | ||
}, | ||
"value": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object", | ||
"required": [ | ||
"name" | ||
] | ||
}, | ||
"Tags": { | ||
"items": { | ||
"$ref": "#/$defs/Tag" | ||
}, | ||
"type": "array" | ||
}, | ||
"Transform": { | ||
"properties": { | ||
"gotemplate": { | ||
"type": "string" | ||
}, | ||
"jsonpath": { | ||
"type": "string" | ||
}, | ||
"expr": { | ||
"type": "string" | ||
}, | ||
"javascript": { | ||
"type": "string" | ||
}, | ||
"exclude": { | ||
"items": { | ||
"$ref": "#/$defs/ConfigFieldExclusion" | ||
}, | ||
"type": "array" | ||
}, | ||
"mask": { | ||
"$ref": "#/$defs/MaskList" | ||
}, | ||
"relationship": { | ||
"items": { | ||
"$ref": "#/$defs/RelationshipConfig" | ||
}, | ||
"type": "array" | ||
}, | ||
"changes": { | ||
"$ref": "#/$defs/TransformChange" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object" | ||
}, | ||
"TransformChange": { | ||
"properties": { | ||
"mapping": { | ||
"items": { | ||
"$ref": "#/$defs/ChangeMapping" | ||
}, | ||
"type": "array" | ||
}, | ||
"exclude": { | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object" | ||
} | ||
} | ||
} |
Oops, something went wrong.