xref: /openbmc/bmcweb/features/redfish/schema/dmtf/json-schema/LeakDetection.v1_1_0.json (revision dd5c81e9e330c20f534496174472efb6fe2c112e)
1*dd5c81e9SGunnar Mills{
2*dd5c81e9SGunnar Mills    "$id": "http://redfish.dmtf.org/schemas/v1/LeakDetection.v1_1_0.json",
3*dd5c81e9SGunnar Mills    "$ref": "#/definitions/LeakDetection",
4*dd5c81e9SGunnar Mills    "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
5*dd5c81e9SGunnar Mills    "copyright": "Copyright 2014-2024 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright",
6*dd5c81e9SGunnar Mills    "definitions": {
7*dd5c81e9SGunnar Mills        "Actions": {
8*dd5c81e9SGunnar Mills            "additionalProperties": false,
9*dd5c81e9SGunnar Mills            "description": "The available actions for this resource.",
10*dd5c81e9SGunnar Mills            "longDescription": "This type shall contain the available actions for this resource.",
11*dd5c81e9SGunnar Mills            "patternProperties": {
12*dd5c81e9SGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
13*dd5c81e9SGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
14*dd5c81e9SGunnar Mills                    "type": [
15*dd5c81e9SGunnar Mills                        "array",
16*dd5c81e9SGunnar Mills                        "boolean",
17*dd5c81e9SGunnar Mills                        "integer",
18*dd5c81e9SGunnar Mills                        "number",
19*dd5c81e9SGunnar Mills                        "null",
20*dd5c81e9SGunnar Mills                        "object",
21*dd5c81e9SGunnar Mills                        "string"
22*dd5c81e9SGunnar Mills                    ]
23*dd5c81e9SGunnar Mills                }
24*dd5c81e9SGunnar Mills            },
25*dd5c81e9SGunnar Mills            "properties": {
26*dd5c81e9SGunnar Mills                "Oem": {
27*dd5c81e9SGunnar Mills                    "$ref": "#/definitions/OemActions",
28*dd5c81e9SGunnar Mills                    "description": "The available OEM-specific actions for this resource.",
29*dd5c81e9SGunnar Mills                    "longDescription": "This property shall contain the available OEM-specific actions for this resource."
30*dd5c81e9SGunnar Mills                }
31*dd5c81e9SGunnar Mills            },
32*dd5c81e9SGunnar Mills            "type": "object"
33*dd5c81e9SGunnar Mills        },
34*dd5c81e9SGunnar Mills        "LeakDetection": {
35*dd5c81e9SGunnar Mills            "additionalProperties": false,
36*dd5c81e9SGunnar Mills            "description": "The `LeakDetection` schema contains definitions for reporting leaks in liquid cooling systems or other equipment.",
37*dd5c81e9SGunnar Mills            "longDescription": "This resource shall represent the leak detection functionality present in a service for a Redfish implementation.",
38*dd5c81e9SGunnar Mills            "patternProperties": {
39*dd5c81e9SGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
40*dd5c81e9SGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
41*dd5c81e9SGunnar Mills                    "type": [
42*dd5c81e9SGunnar Mills                        "array",
43*dd5c81e9SGunnar Mills                        "boolean",
44*dd5c81e9SGunnar Mills                        "integer",
45*dd5c81e9SGunnar Mills                        "number",
46*dd5c81e9SGunnar Mills                        "null",
47*dd5c81e9SGunnar Mills                        "object",
48*dd5c81e9SGunnar Mills                        "string"
49*dd5c81e9SGunnar Mills                    ]
50*dd5c81e9SGunnar Mills                }
51*dd5c81e9SGunnar Mills            },
52*dd5c81e9SGunnar Mills            "properties": {
53*dd5c81e9SGunnar Mills                "@odata.context": {
54*dd5c81e9SGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context"
55*dd5c81e9SGunnar Mills                },
56*dd5c81e9SGunnar Mills                "@odata.etag": {
57*dd5c81e9SGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag"
58*dd5c81e9SGunnar Mills                },
59*dd5c81e9SGunnar Mills                "@odata.id": {
60*dd5c81e9SGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id"
61*dd5c81e9SGunnar Mills                },
62*dd5c81e9SGunnar Mills                "@odata.type": {
63*dd5c81e9SGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type"
64*dd5c81e9SGunnar Mills                },
65*dd5c81e9SGunnar Mills                "Actions": {
66*dd5c81e9SGunnar Mills                    "$ref": "#/definitions/Actions",
67*dd5c81e9SGunnar Mills                    "description": "The available actions for this resource.",
68*dd5c81e9SGunnar Mills                    "longDescription": "This property shall contain the available actions for this resource."
69*dd5c81e9SGunnar Mills                },
70*dd5c81e9SGunnar Mills                "Description": {
71*dd5c81e9SGunnar Mills                    "anyOf": [
72*dd5c81e9SGunnar Mills                        {
73*dd5c81e9SGunnar Mills                            "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"
74*dd5c81e9SGunnar Mills                        },
75*dd5c81e9SGunnar Mills                        {
76*dd5c81e9SGunnar Mills                            "type": "null"
77*dd5c81e9SGunnar Mills                        }
78*dd5c81e9SGunnar Mills                    ],
79*dd5c81e9SGunnar Mills                    "readonly": true
80*dd5c81e9SGunnar Mills                },
81*dd5c81e9SGunnar Mills                "Id": {
82*dd5c81e9SGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id",
83*dd5c81e9SGunnar Mills                    "readonly": true
84*dd5c81e9SGunnar Mills                },
85*dd5c81e9SGunnar Mills                "LeakDetectorGroups": {
86*dd5c81e9SGunnar Mills                    "description": "The groups of leak detection equipment.",
87*dd5c81e9SGunnar Mills                    "items": {
88*dd5c81e9SGunnar Mills                        "$ref": "#/definitions/LeakDetectorGroup"
89*dd5c81e9SGunnar Mills                    },
90*dd5c81e9SGunnar Mills                    "longDescription": "This property shall contain an array of leak detection groups.",
91*dd5c81e9SGunnar Mills                    "type": "array"
92*dd5c81e9SGunnar Mills                },
93*dd5c81e9SGunnar Mills                "LeakDetectors": {
94*dd5c81e9SGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/LeakDetectorCollection.json#/definitions/LeakDetectorCollection",
95*dd5c81e9SGunnar Mills                    "description": "The link to the collection of leak detectors within this subsystem.",
96*dd5c81e9SGunnar Mills                    "longDescription": "This property shall contain a link to a resource collection of type `LeakDetectorCollection`.",
97*dd5c81e9SGunnar Mills                    "readonly": true
98*dd5c81e9SGunnar Mills                },
99*dd5c81e9SGunnar Mills                "Name": {
100*dd5c81e9SGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name",
101*dd5c81e9SGunnar Mills                    "readonly": true
102*dd5c81e9SGunnar Mills                },
103*dd5c81e9SGunnar Mills                "Oem": {
104*dd5c81e9SGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
105*dd5c81e9SGunnar Mills                    "description": "The OEM extension property.",
106*dd5c81e9SGunnar Mills                    "longDescription": "This property shall contain the OEM extensions.  All values for properties that this object contains shall conform to the Redfish Specification-described requirements."
107*dd5c81e9SGunnar Mills                },
108*dd5c81e9SGunnar Mills                "Status": {
109*dd5c81e9SGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Status",
110*dd5c81e9SGunnar Mills                    "description": "The status and health of the resource and its subordinate or dependent resources.",
111*dd5c81e9SGunnar Mills                    "longDescription": "This property shall contain any status or health properties of the resource."
112*dd5c81e9SGunnar Mills                }
113*dd5c81e9SGunnar Mills            },
114*dd5c81e9SGunnar Mills            "required": [
115*dd5c81e9SGunnar Mills                "@odata.id",
116*dd5c81e9SGunnar Mills                "@odata.type",
117*dd5c81e9SGunnar Mills                "Id",
118*dd5c81e9SGunnar Mills                "Name"
119*dd5c81e9SGunnar Mills            ],
120*dd5c81e9SGunnar Mills            "type": "object"
121*dd5c81e9SGunnar Mills        },
122*dd5c81e9SGunnar Mills        "LeakDetectorGroup": {
123*dd5c81e9SGunnar Mills            "additionalProperties": false,
124*dd5c81e9SGunnar Mills            "description": "A group of leak detection equipment.",
125*dd5c81e9SGunnar Mills            "longDescription": "This object shall contain a group of leak detection equipment that reports a unified status.",
126*dd5c81e9SGunnar Mills            "patternProperties": {
127*dd5c81e9SGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
128*dd5c81e9SGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
129*dd5c81e9SGunnar Mills                    "type": [
130*dd5c81e9SGunnar Mills                        "array",
131*dd5c81e9SGunnar Mills                        "boolean",
132*dd5c81e9SGunnar Mills                        "integer",
133*dd5c81e9SGunnar Mills                        "number",
134*dd5c81e9SGunnar Mills                        "null",
135*dd5c81e9SGunnar Mills                        "object",
136*dd5c81e9SGunnar Mills                        "string"
137*dd5c81e9SGunnar Mills                    ]
138*dd5c81e9SGunnar Mills                }
139*dd5c81e9SGunnar Mills            },
140*dd5c81e9SGunnar Mills            "properties": {
141*dd5c81e9SGunnar Mills                "Detectors": {
142*dd5c81e9SGunnar Mills                    "description": "The leak detection states from all related leak detection devices in this group.",
143*dd5c81e9SGunnar Mills                    "excerptCopy": "LeakDetectorArrayExcerpt",
144*dd5c81e9SGunnar Mills                    "items": {
145*dd5c81e9SGunnar Mills                        "$ref": "http://redfish.dmtf.org/schemas/v1/LeakDetector.json#/definitions/LeakDetectorArrayExcerpt"
146*dd5c81e9SGunnar Mills                    },
147*dd5c81e9SGunnar Mills                    "longDescription": "This property shall contain the states of all leak detection devices in this detector group.  The value of the `DataSourceUri` property, if present, shall reference a resource of type `LeakDetector`.",
148*dd5c81e9SGunnar Mills                    "type": "array"
149*dd5c81e9SGunnar Mills                },
150*dd5c81e9SGunnar Mills                "Detectors@odata.count": {
151*dd5c81e9SGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/count"
152*dd5c81e9SGunnar Mills                },
153*dd5c81e9SGunnar Mills                "GroupName": {
154*dd5c81e9SGunnar Mills                    "description": "The name of this leak detector group.",
155*dd5c81e9SGunnar Mills                    "longDescription": "This property shall contain the name used to describe this group of leak detectors and related equipment.",
156*dd5c81e9SGunnar Mills                    "readonly": true,
157*dd5c81e9SGunnar Mills                    "type": "string"
158*dd5c81e9SGunnar Mills                },
159*dd5c81e9SGunnar Mills                "HumidityPercent": {
160*dd5c81e9SGunnar Mills                    "anyOf": [
161*dd5c81e9SGunnar Mills                        {
162*dd5c81e9SGunnar Mills                            "$ref": "http://redfish.dmtf.org/schemas/v1/Sensor.json#/definitions/SensorExcerpt"
163*dd5c81e9SGunnar Mills                        },
164*dd5c81e9SGunnar Mills                        {
165*dd5c81e9SGunnar Mills                            "type": "null"
166*dd5c81e9SGunnar Mills                        }
167*dd5c81e9SGunnar Mills                    ],
168*dd5c81e9SGunnar Mills                    "description": "Humidity (percent).",
169*dd5c81e9SGunnar Mills                    "excerptCopy": "SensorExcerpt",
170*dd5c81e9SGunnar Mills                    "longDescription": "This property shall contain the humidity, in percent units, for this resource.  The value of the `DataSourceUri` property, if present, shall reference a resource of type `Sensor` with the `ReadingType` property containing the value `Humidity`."
171*dd5c81e9SGunnar Mills                },
172*dd5c81e9SGunnar Mills                "Status": {
173*dd5c81e9SGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Status",
174*dd5c81e9SGunnar Mills                    "description": "The status and health of the resource and its subordinate or dependent resources.",
175*dd5c81e9SGunnar Mills                    "longDescription": "This property shall contain any status or health properties of the resource.",
176*dd5c81e9SGunnar Mills                    "versionAdded": "v1_1_0"
177*dd5c81e9SGunnar Mills                }
178*dd5c81e9SGunnar Mills            },
179*dd5c81e9SGunnar Mills            "required": [
180*dd5c81e9SGunnar Mills                "Status"
181*dd5c81e9SGunnar Mills            ],
182*dd5c81e9SGunnar Mills            "type": "object"
183*dd5c81e9SGunnar Mills        },
184*dd5c81e9SGunnar Mills        "OemActions": {
185*dd5c81e9SGunnar Mills            "additionalProperties": true,
186*dd5c81e9SGunnar Mills            "description": "The available OEM-specific actions for this resource.",
187*dd5c81e9SGunnar Mills            "longDescription": "This type shall contain the available OEM-specific actions for this resource.",
188*dd5c81e9SGunnar Mills            "patternProperties": {
189*dd5c81e9SGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
190*dd5c81e9SGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
191*dd5c81e9SGunnar Mills                    "type": [
192*dd5c81e9SGunnar Mills                        "array",
193*dd5c81e9SGunnar Mills                        "boolean",
194*dd5c81e9SGunnar Mills                        "integer",
195*dd5c81e9SGunnar Mills                        "number",
196*dd5c81e9SGunnar Mills                        "null",
197*dd5c81e9SGunnar Mills                        "object",
198*dd5c81e9SGunnar Mills                        "string"
199*dd5c81e9SGunnar Mills                    ]
200*dd5c81e9SGunnar Mills                }
201*dd5c81e9SGunnar Mills            },
202*dd5c81e9SGunnar Mills            "properties": {},
203*dd5c81e9SGunnar Mills            "type": "object"
204*dd5c81e9SGunnar Mills        }
205*dd5c81e9SGunnar Mills    },
206*dd5c81e9SGunnar Mills    "language": "en",
207*dd5c81e9SGunnar Mills    "owningEntity": "DMTF",
208*dd5c81e9SGunnar Mills    "release": "2024.3",
209*dd5c81e9SGunnar Mills    "title": "#LeakDetection.v1_1_0.LeakDetection"
210*dd5c81e9SGunnar Mills}