Post by ginugeorge on Nov 23, 2021 11:17:56 GMT
Hi,
With reference to Schema for Metric Definitions Instance , we have an attribute named "Wildcards", the use case of which is not pretty clear from the Schema. Can anyone please explain with the help of an example, how these wildcards do finds its place in the response of Metric Definitons Instance ?
Note : As per my understanding, This attribute doesnt seem to be a mandatory one to be implemented and it entirely depends on the developer to implement or not. Please suggest if any other opinion.
With reference to Schema for Metric Definitions Instance , we have an attribute named "Wildcards", the use case of which is not pretty clear from the Schema. Can anyone please explain with the help of an example, how these wildcards do finds its place in the response of Metric Definitons Instance ?
Note : As per my understanding, This attribute doesnt seem to be a mandatory one to be implemented and it entirely depends on the developer to implement or not. Please suggest if any other opinion.
"MetricDefinition": {
"additionalProperties": false,
"description": "The MetricDefinition schema describes the metadata information for a metric.",
"longDescription": "This Resource shall contain the metadata information for a metric.",
"patternProperties": {
"^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
"description": "This property shall specify a valid odata or Redfish property.",
"type": [
"array",
"boolean",
"integer",
"number",
"null",
"object",
"string"
]
}
},
"properties": {
.....,
.....,
"Wildcards": {
"description": "The wildcards and their substitution values for the entries in the MetricProperties array property.",
"items": {
"$ref": "#/definitions/Wildcard"
},
"longDescription": "The property shall contain a list of wildcards and their replacement strings, which are applied to the MetricProperties array property. Each wildcard shall have a corresponding entry in this array property.",
"type": "array"
}
},
"required": [
"@odata.id",
"@odata.type",
"Id",
"Name"
],
"type": "object"
}
"Wildcard": {
"additionalProperties": false,
"description": "The wildcard and its substitution values.",
"longDescription": "This property shall contain a wildcard and its substitution values.",
"patternProperties": {
"^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
"description": "This property shall specify a valid odata or Redfish property.",
"type": [
"array",
"boolean",
"integer",
"number",
"null",
"object",
"string"
]
}
},
"properties": {
"Name": {
"description": "The string used as a wildcard.",
"longDescription": "This property shall contain the string used as a wildcard.",
"readonly": true,
"type": [
"string",
"null"
]
},
"Values": {
"description": "An array of values to substitute for the wildcard.",
"items": {
"type": [
"string",
"null"
]
},
"longDescription": "This property shall contain the list of values to substitute for the wildcard.",
"readonly": true,
"type": "array"
}
},
"type": "object"
}