xref: /openbmc/bmcweb/features/redfish/schema/dmtf/json-schema/Schedule.v1_2_5.json (revision f2a8e57ede74a8252100b2281e3f4d170aa69391)
1*f2a8e57eSGunnar Mills{
2*f2a8e57eSGunnar Mills    "$id": "http://redfish.dmtf.org/schemas/v1/Schedule.v1_2_5.json",
3*f2a8e57eSGunnar Mills    "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
4*f2a8e57eSGunnar Mills    "copyright": "Copyright 2014-2024 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright",
5*f2a8e57eSGunnar Mills    "definitions": {
6*f2a8e57eSGunnar Mills        "DayOfWeek": {
7*f2a8e57eSGunnar Mills            "description": "Days of the week.",
8*f2a8e57eSGunnar Mills            "enum": [
9*f2a8e57eSGunnar Mills                "Monday",
10*f2a8e57eSGunnar Mills                "Tuesday",
11*f2a8e57eSGunnar Mills                "Wednesday",
12*f2a8e57eSGunnar Mills                "Thursday",
13*f2a8e57eSGunnar Mills                "Friday",
14*f2a8e57eSGunnar Mills                "Saturday",
15*f2a8e57eSGunnar Mills                "Sunday",
16*f2a8e57eSGunnar Mills                "Every"
17*f2a8e57eSGunnar Mills            ],
18*f2a8e57eSGunnar Mills            "enumDescriptions": {
19*f2a8e57eSGunnar Mills                "Every": "Every day of the week.",
20*f2a8e57eSGunnar Mills                "Friday": "Friday.",
21*f2a8e57eSGunnar Mills                "Monday": "Monday.",
22*f2a8e57eSGunnar Mills                "Saturday": "Saturday.",
23*f2a8e57eSGunnar Mills                "Sunday": "Sunday.",
24*f2a8e57eSGunnar Mills                "Thursday": "Thursday.",
25*f2a8e57eSGunnar Mills                "Tuesday": "Tuesday.",
26*f2a8e57eSGunnar Mills                "Wednesday": "Wednesday."
27*f2a8e57eSGunnar Mills            },
28*f2a8e57eSGunnar Mills            "enumLongDescriptions": {
29*f2a8e57eSGunnar Mills                "Every": "This value indicates that every day of the week has been selected.  When used in array properties, such as for enabling a function on certain days, it shall be the only member in the array."
30*f2a8e57eSGunnar Mills            },
31*f2a8e57eSGunnar Mills            "longDescription": "Days of the week.",
32*f2a8e57eSGunnar Mills            "type": "string"
33*f2a8e57eSGunnar Mills        },
34*f2a8e57eSGunnar Mills        "MonthOfYear": {
35*f2a8e57eSGunnar Mills            "description": "Months of the year.",
36*f2a8e57eSGunnar Mills            "enum": [
37*f2a8e57eSGunnar Mills                "January",
38*f2a8e57eSGunnar Mills                "February",
39*f2a8e57eSGunnar Mills                "March",
40*f2a8e57eSGunnar Mills                "April",
41*f2a8e57eSGunnar Mills                "May",
42*f2a8e57eSGunnar Mills                "June",
43*f2a8e57eSGunnar Mills                "July",
44*f2a8e57eSGunnar Mills                "August",
45*f2a8e57eSGunnar Mills                "September",
46*f2a8e57eSGunnar Mills                "October",
47*f2a8e57eSGunnar Mills                "November",
48*f2a8e57eSGunnar Mills                "December",
49*f2a8e57eSGunnar Mills                "Every"
50*f2a8e57eSGunnar Mills            ],
51*f2a8e57eSGunnar Mills            "enumDescriptions": {
52*f2a8e57eSGunnar Mills                "April": "April.",
53*f2a8e57eSGunnar Mills                "August": "August.",
54*f2a8e57eSGunnar Mills                "December": "December.",
55*f2a8e57eSGunnar Mills                "Every": "Every month of the year.",
56*f2a8e57eSGunnar Mills                "February": "February.",
57*f2a8e57eSGunnar Mills                "January": "January.",
58*f2a8e57eSGunnar Mills                "July": "July.",
59*f2a8e57eSGunnar Mills                "June": "June.",
60*f2a8e57eSGunnar Mills                "March": "March.",
61*f2a8e57eSGunnar Mills                "May": "May.",
62*f2a8e57eSGunnar Mills                "November": "November.",
63*f2a8e57eSGunnar Mills                "October": "October.",
64*f2a8e57eSGunnar Mills                "September": "September."
65*f2a8e57eSGunnar Mills            },
66*f2a8e57eSGunnar Mills            "enumLongDescriptions": {
67*f2a8e57eSGunnar Mills                "Every": "This value indicates that every month of the year has been selected.  When used in array properties, such as for enabling a function for certain months, it shall be the only member in the array."
68*f2a8e57eSGunnar Mills            },
69*f2a8e57eSGunnar Mills            "longDescription": "Months of the year.",
70*f2a8e57eSGunnar Mills            "type": "string"
71*f2a8e57eSGunnar Mills        },
72*f2a8e57eSGunnar Mills        "Schedule": {
73*f2a8e57eSGunnar Mills            "additionalProperties": false,
74*f2a8e57eSGunnar Mills            "description": "Schedule a series of occurrences.",
75*f2a8e57eSGunnar Mills            "longDescription": "The properties of this type shall schedule a series of occurrences.",
76*f2a8e57eSGunnar Mills            "patternProperties": {
77*f2a8e57eSGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
78*f2a8e57eSGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
79*f2a8e57eSGunnar Mills                    "type": [
80*f2a8e57eSGunnar Mills                        "array",
81*f2a8e57eSGunnar Mills                        "boolean",
82*f2a8e57eSGunnar Mills                        "integer",
83*f2a8e57eSGunnar Mills                        "number",
84*f2a8e57eSGunnar Mills                        "null",
85*f2a8e57eSGunnar Mills                        "object",
86*f2a8e57eSGunnar Mills                        "string"
87*f2a8e57eSGunnar Mills                    ]
88*f2a8e57eSGunnar Mills                }
89*f2a8e57eSGunnar Mills            },
90*f2a8e57eSGunnar Mills            "properties": {
91*f2a8e57eSGunnar Mills                "EnabledDaysOfMonth": {
92*f2a8e57eSGunnar Mills                    "description": "Days of the month when scheduled occurrences are enabled.  `0` indicates that every day of the month is enabled.",
93*f2a8e57eSGunnar Mills                    "items": {
94*f2a8e57eSGunnar Mills                        "type": [
95*f2a8e57eSGunnar Mills                            "integer",
96*f2a8e57eSGunnar Mills                            "null"
97*f2a8e57eSGunnar Mills                        ]
98*f2a8e57eSGunnar Mills                    },
99*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the days of the month when scheduled occurrences are enabled, for enabled days of week and months of year.  If the array contains a single value of `0`, or if the property is not present, all days of the month shall be enabled.",
100*f2a8e57eSGunnar Mills                    "maximum": 31,
101*f2a8e57eSGunnar Mills                    "minimum": 0,
102*f2a8e57eSGunnar Mills                    "readonly": false,
103*f2a8e57eSGunnar Mills                    "type": "array"
104*f2a8e57eSGunnar Mills                },
105*f2a8e57eSGunnar Mills                "EnabledDaysOfWeek": {
106*f2a8e57eSGunnar Mills                    "description": "Days of the week when scheduled occurrences are enabled, for enabled days of the month and months of the year.  If not present, all days of the week are enabled.",
107*f2a8e57eSGunnar Mills                    "items": {
108*f2a8e57eSGunnar Mills                        "anyOf": [
109*f2a8e57eSGunnar Mills                            {
110*f2a8e57eSGunnar Mills                                "$ref": "#/definitions/DayOfWeek"
111*f2a8e57eSGunnar Mills                            },
112*f2a8e57eSGunnar Mills                            {
113*f2a8e57eSGunnar Mills                                "type": "null"
114*f2a8e57eSGunnar Mills                            }
115*f2a8e57eSGunnar Mills                        ]
116*f2a8e57eSGunnar Mills                    },
117*f2a8e57eSGunnar Mills                    "longDescription": "Days of the week when scheduled occurrences are enabled.  If not present, all days of the week shall be enabled.",
118*f2a8e57eSGunnar Mills                    "readonly": false,
119*f2a8e57eSGunnar Mills                    "type": "array"
120*f2a8e57eSGunnar Mills                },
121*f2a8e57eSGunnar Mills                "EnabledIntervals": {
122*f2a8e57eSGunnar Mills                    "description": "Intervals when scheduled occurrences are enabled.",
123*f2a8e57eSGunnar Mills                    "items": {
124*f2a8e57eSGunnar Mills                        "type": [
125*f2a8e57eSGunnar Mills                            "string",
126*f2a8e57eSGunnar Mills                            "null"
127*f2a8e57eSGunnar Mills                        ]
128*f2a8e57eSGunnar Mills                    },
129*f2a8e57eSGunnar Mills                    "longDescription": "Each value shall be an ISO 8601 conformant interval specifying when occurrences are enabled.",
130*f2a8e57eSGunnar Mills                    "readonly": false,
131*f2a8e57eSGunnar Mills                    "type": "array",
132*f2a8e57eSGunnar Mills                    "versionAdded": "v1_1_0"
133*f2a8e57eSGunnar Mills                },
134*f2a8e57eSGunnar Mills                "EnabledMonthsOfYear": {
135*f2a8e57eSGunnar Mills                    "description": "The months of the year when scheduled occurrences are enabled.  If not present, all months of the year are enabled.",
136*f2a8e57eSGunnar Mills                    "items": {
137*f2a8e57eSGunnar Mills                        "anyOf": [
138*f2a8e57eSGunnar Mills                            {
139*f2a8e57eSGunnar Mills                                "$ref": "#/definitions/MonthOfYear"
140*f2a8e57eSGunnar Mills                            },
141*f2a8e57eSGunnar Mills                            {
142*f2a8e57eSGunnar Mills                                "type": "null"
143*f2a8e57eSGunnar Mills                            }
144*f2a8e57eSGunnar Mills                        ]
145*f2a8e57eSGunnar Mills                    },
146*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the months of the year when scheduled occurrences are enabled, for enabled days of week and days of month.  If not present, all months of the year shall be enabled.",
147*f2a8e57eSGunnar Mills                    "readonly": false,
148*f2a8e57eSGunnar Mills                    "type": "array"
149*f2a8e57eSGunnar Mills                },
150*f2a8e57eSGunnar Mills                "InitialStartTime": {
151*f2a8e57eSGunnar Mills                    "description": "The date and time when the initial occurrence is scheduled to occur.",
152*f2a8e57eSGunnar Mills                    "format": "date-time",
153*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the date and time when the initial occurrence is scheduled to occur.",
154*f2a8e57eSGunnar Mills                    "readonly": false,
155*f2a8e57eSGunnar Mills                    "type": [
156*f2a8e57eSGunnar Mills                        "string",
157*f2a8e57eSGunnar Mills                        "null"
158*f2a8e57eSGunnar Mills                    ]
159*f2a8e57eSGunnar Mills                },
160*f2a8e57eSGunnar Mills                "Lifetime": {
161*f2a8e57eSGunnar Mills                    "description": "The time after provisioning when the schedule as a whole expires.",
162*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain a Redfish Duration that describes the time after provisioning when the schedule expires.",
163*f2a8e57eSGunnar Mills                    "pattern": "^P(\\d+D)?(T(\\d+H)?(\\d+M)?(\\d+(.\\d+)?S)?)?$",
164*f2a8e57eSGunnar Mills                    "readonly": false,
165*f2a8e57eSGunnar Mills                    "type": [
166*f2a8e57eSGunnar Mills                        "string",
167*f2a8e57eSGunnar Mills                        "null"
168*f2a8e57eSGunnar Mills                    ]
169*f2a8e57eSGunnar Mills                },
170*f2a8e57eSGunnar Mills                "MaxOccurrences": {
171*f2a8e57eSGunnar Mills                    "description": "The maximum number of scheduled occurrences.",
172*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the maximum number of scheduled occurrences.",
173*f2a8e57eSGunnar Mills                    "readonly": false,
174*f2a8e57eSGunnar Mills                    "type": [
175*f2a8e57eSGunnar Mills                        "integer",
176*f2a8e57eSGunnar Mills                        "null"
177*f2a8e57eSGunnar Mills                    ]
178*f2a8e57eSGunnar Mills                },
179*f2a8e57eSGunnar Mills                "Name": {
180*f2a8e57eSGunnar Mills                    "description": "The schedule name.",
181*f2a8e57eSGunnar Mills                    "longDescription": "The name of the schedule, which is constructed as OrgID:ScheduleName.  Examples include ACME:Daily, ACME:Weekly, and ACME:FirstTuesday.",
182*f2a8e57eSGunnar Mills                    "readonly": false,
183*f2a8e57eSGunnar Mills                    "type": [
184*f2a8e57eSGunnar Mills                        "string",
185*f2a8e57eSGunnar Mills                        "null"
186*f2a8e57eSGunnar Mills                    ]
187*f2a8e57eSGunnar Mills                },
188*f2a8e57eSGunnar Mills                "RecurrenceInterval": {
189*f2a8e57eSGunnar Mills                    "description": "The duration between consecutive occurrences.",
190*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the duration between consecutive occurrences.",
191*f2a8e57eSGunnar Mills                    "pattern": "^P(\\d+D)?(T(\\d+H)?(\\d+M)?(\\d+(.\\d+)?S)?)?$",
192*f2a8e57eSGunnar Mills                    "readonly": false,
193*f2a8e57eSGunnar Mills                    "type": [
194*f2a8e57eSGunnar Mills                        "string",
195*f2a8e57eSGunnar Mills                        "null"
196*f2a8e57eSGunnar Mills                    ]
197*f2a8e57eSGunnar Mills                }
198*f2a8e57eSGunnar Mills            },
199*f2a8e57eSGunnar Mills            "type": "object"
200*f2a8e57eSGunnar Mills        }
201*f2a8e57eSGunnar Mills    },
202*f2a8e57eSGunnar Mills    "language": "en",
203*f2a8e57eSGunnar Mills    "owningEntity": "DMTF",
204*f2a8e57eSGunnar Mills    "release": "2018.2",
205*f2a8e57eSGunnar Mills    "title": "#Schedule.v1_2_5"
206*f2a8e57eSGunnar Mills}