-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into update-dns-record-interface
- Loading branch information
Showing
33 changed files
with
1,495 additions
and
35 deletions.
There are no files selected for viewing
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,133 @@ | ||
{ | ||
"$defs": { | ||
"GrafanaSourceData": { | ||
"properties": { | ||
"model": { | ||
"description": "Name of the Juju model where the source is deployed.", | ||
"examples": [ | ||
"cos" | ||
], | ||
"title": "Model", | ||
"type": "string" | ||
}, | ||
"model_uuid": { | ||
"description": "UUID of the Juju model where the source is deployed.", | ||
"examples": [ | ||
"0000-0000-0000-0000" | ||
], | ||
"title": "Model Uuid", | ||
"type": "string" | ||
}, | ||
"application": { | ||
"description": "Name of the Juju model where the source is deployed.", | ||
"examples": [ | ||
"tempo", | ||
"loki", | ||
"prometheus" | ||
], | ||
"title": "Application", | ||
"type": "string" | ||
}, | ||
"type": { | ||
"description": "Type of the datasource.", | ||
"examples": [ | ||
"tempo", | ||
"loki", | ||
"prometheus" | ||
], | ||
"title": "Type", | ||
"type": "string" | ||
}, | ||
"extra_fields": { | ||
"anyOf": [ | ||
{ | ||
"contentMediaType": "application/json", | ||
"contentSchema": {}, | ||
"type": "string" | ||
}, | ||
{ | ||
"type": "null" | ||
} | ||
], | ||
"description": "Any datasource-type-specific additional configuration.", | ||
"title": "Extra Fields" | ||
}, | ||
"secure_extra_fields": { | ||
"anyOf": [ | ||
{ | ||
"contentMediaType": "application/json", | ||
"contentSchema": {}, | ||
"type": "string" | ||
}, | ||
{ | ||
"type": "null" | ||
} | ||
], | ||
"description": "Any secure datasource-type-specific additional configuration.", | ||
"title": "Secure Extra Fields" | ||
} | ||
}, | ||
"required": [ | ||
"model", | ||
"model_uuid", | ||
"application", | ||
"type", | ||
"extra_fields", | ||
"secure_extra_fields" | ||
], | ||
"title": "GrafanaSourceData", | ||
"type": "object" | ||
}, | ||
"GrafanaSourceProviderAppData": { | ||
"description": "Application databag model for the requirer side of this interface.", | ||
"properties": { | ||
"grafana_source_data": { | ||
"contentMediaType": "application/json", | ||
"contentSchema": { | ||
"$ref": "#/$defs/GrafanaSourceData" | ||
}, | ||
"title": "Grafana Source Data", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"grafana_source_data" | ||
], | ||
"title": "GrafanaSourceProviderAppData", | ||
"type": "object" | ||
}, | ||
"GrafanaSourceProviderUnitData": { | ||
"description": "Application databag model for the requirer side of this interface.", | ||
"properties": { | ||
"grafana_source_host": { | ||
"description": "Hostname of a source server.", | ||
"examples": [ | ||
"localhost:80" | ||
], | ||
"title": "Grafana Source Host", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"grafana_source_host" | ||
], | ||
"title": "GrafanaSourceProviderUnitData", | ||
"type": "object" | ||
} | ||
}, | ||
"description": "The schemas for the requirer side of this interface.", | ||
"properties": { | ||
"unit": { | ||
"$ref": "#/$defs/GrafanaSourceProviderUnitData" | ||
}, | ||
"app": { | ||
"$ref": "#/$defs/GrafanaSourceProviderAppData" | ||
} | ||
}, | ||
"required": [ | ||
"unit", | ||
"app" | ||
], | ||
"title": "ProviderSchema", | ||
"type": "object" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ | ||
"$defs": { | ||
"BaseModel": { | ||
"properties": {}, | ||
"title": "BaseModel", | ||
"type": "object" | ||
}, | ||
"GrafanaSourceRequirerAppData": { | ||
"description": "Application databag model for the requirer side of this interface.", | ||
"properties": { | ||
"datasource_uids": { | ||
"contentMediaType": "application/json", | ||
"contentSchema": { | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"type": "object" | ||
}, | ||
"title": "Datasource Uids", | ||
"type": "string" | ||
}, | ||
"grafana_uid": { | ||
"description": "UID of the requirer application.", | ||
"examples": [ | ||
"foo-0000-0000-0000-0000-grafana-1" | ||
], | ||
"title": "Grafana Uid", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"datasource_uids", | ||
"grafana_uid" | ||
], | ||
"title": "GrafanaSourceRequirerAppData", | ||
"type": "object" | ||
} | ||
}, | ||
"description": "The schema for the provider side of this interface.", | ||
"properties": { | ||
"unit": { | ||
"anyOf": [ | ||
{ | ||
"$ref": "#/$defs/BaseModel" | ||
}, | ||
{ | ||
"type": "null" | ||
} | ||
], | ||
"default": null | ||
}, | ||
"app": { | ||
"$ref": "#/$defs/GrafanaSourceRequirerAppData" | ||
} | ||
}, | ||
"required": [ | ||
"app" | ||
], | ||
"title": "RequirerSchema", | ||
"type": "object" | ||
} |
84 changes: 84 additions & 0 deletions
84
docs/json_schemas/grafana_datasource_exchange/v0/provider.json
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 |
---|---|---|
@@ -0,0 +1,84 @@ | ||
{ | ||
"$defs": { | ||
"BaseModel": { | ||
"properties": {}, | ||
"title": "BaseModel", | ||
"type": "object" | ||
}, | ||
"GrafanaDatasource": { | ||
"properties": { | ||
"type": { | ||
"description": "Type of the datasource, typically one of https://grafana.com/docs/grafana/latest/datasources/#built-in-core-data-sources.", | ||
"examples": [ | ||
"tempo", | ||
"loki", | ||
"prometheus", | ||
"elasticsearch" | ||
], | ||
"title": "Type", | ||
"type": "string" | ||
}, | ||
"uid": { | ||
"description": "Grafana datasource UID, as assigned by Grafana.", | ||
"title": "Uid", | ||
"type": "string" | ||
}, | ||
"grafana_uid": { | ||
"description": "Grafana UID.", | ||
"title": "Grafana Uid", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"type", | ||
"uid", | ||
"grafana_uid" | ||
], | ||
"title": "GrafanaDatasource", | ||
"type": "object" | ||
}, | ||
"GrafanaSourceAppData": { | ||
"description": "Application databag model for the requirer side of this interface.", | ||
"properties": { | ||
"datasources": { | ||
"contentMediaType": "application/json", | ||
"contentSchema": { | ||
"items": { | ||
"$ref": "#/$defs/GrafanaDatasource" | ||
}, | ||
"type": "array" | ||
}, | ||
"title": "Datasources", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"datasources" | ||
], | ||
"title": "GrafanaSourceAppData", | ||
"type": "object" | ||
} | ||
}, | ||
"description": "The schemas for the requirer side of this interface.", | ||
"properties": { | ||
"unit": { | ||
"anyOf": [ | ||
{ | ||
"$ref": "#/$defs/BaseModel" | ||
}, | ||
{ | ||
"type": "null" | ||
} | ||
], | ||
"default": null | ||
}, | ||
"app": { | ||
"$ref": "#/$defs/GrafanaSourceAppData" | ||
} | ||
}, | ||
"required": [ | ||
"app" | ||
], | ||
"title": "ProviderSchema", | ||
"type": "object" | ||
} |
Oops, something went wrong.