Skip to content

Commit

Permalink
Updated MetricsHub and MetricsHub-connector schemas
Browse files Browse the repository at this point in the history
MetricsHub:
- Added license object and its children

MetricsHub-connector:
- Changed OsCommand to CommandLine as per new semantic change.

Catalog:
- Updated valid path/file for both schemas
  • Loading branch information
alexdgilbert committed Aug 23, 2024
1 parent f3ad80f commit 92ef631
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 4 deletions.
8 changes: 6 additions & 2 deletions src/api/json/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -3164,8 +3164,12 @@
"name": "MetricsHub Connector Configuration",
"description": "MetricsHub connector configuration file",
"fileMatch": [
"**/*[Mm]etrics[Hh]ub*/**/connector*/**/*.yaml",
"**/*[Mm]etrics[Hh]ub*/**/connector*/**/*.yml"
"**/metricshub/connectors/**/*.yaml",
"**/metricshub/connectors/**/*.yml",
"**/hardware-connectors/**/*.yaml",
"**/hardware-connectors/**/*.yml",
"**/metricshub-community-connectors/**/*.yaml",
"**/metricshub-community-connectors/**/*.yml"
],
"url": "https://json.schemastore.org/metricshub-connector.json"
},
Expand Down
4 changes: 2 additions & 2 deletions src/schemas/json/metricshub-connector.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
"properties": {
"type": {
"type": "string",
"const": "osCommand"
"const": "commandLine"
},
"forceSerialization": {
"type": "boolean"
Expand Down Expand Up @@ -6800,7 +6800,7 @@
{
"properties": {
"type": {
"const": "osCommand"
"const": "commandLine"
},
"forceSerialization": {
"type": "boolean"
Expand Down
26 changes: 26 additions & 0 deletions src/schemas/json/metricshub.json
Original file line number Diff line number Diff line change
Expand Up @@ -1538,6 +1538,32 @@
}
}
}
},
"license": {
"description": "MetricsHub License",
"type": "object",
"properties": {
"product": {
"description": "The name of the product the license is for.",
"type": "string"
},
"organization": {
"description": "The name of the organization the license is for.",
"type": "string"
},
"expiresOn": {
"description": "The expiration date of the license in the format yyyy-MM-dd.",
"type": "string"
},
"resources": {
"description": "The maximum number of resources the license covers.",
"type": "integer"
},
"key": {
"description": "The license key",
"type": "string"
}
}
}
}
}

0 comments on commit 92ef631

Please sign in to comment.