118118 ],
119119 "description" : " An XML configuration specification for a WebTest."
120120 },
121- "ContentValidation" : {
122- "oneOf" : [
123- {
124- "$ref" : " #/definitions/WebTestPropertiesContentValidation"
125- },
126- {
127- "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
128- }
129- ],
130- "description" : " The collection of content validation properties"
131- },
132121 "Description" : {
133122 "type" : " string" ,
134123 "description" : " User defined description for this WebTest."
144133 ],
145134 "description" : " Is the test actively being monitored."
146135 },
147- "ExpectedHttpStatusCode" : {
148- "oneOf" : [
149- {
150- "type" : " integer"
151- },
152- {
153- "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
154- }
155- ],
156- "description" : " Validate that the WebTest returns the http status code provided."
157- },
158136 "Frequency" : {
159137 "oneOf" : [
160138 {
167145 ],
168146 "description" : " Interval in seconds between test runs for this WebTest. Default value is 300."
169147 },
170- "IgnoreHttpsStatusCode" : {
171- "oneOf" : [
172- {
173- "type" : " boolean"
174- },
175- {
176- "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
177- }
178- ],
179- "description" : " When set, validation will ignore the status code."
180- },
181148 "Kind" : {
182149 "oneOf" : [
183150 {
235202 ],
236203 "description" : " Allow for retries should this WebTest fail."
237204 },
238- "SSLCertRemainingLifetimeCheck" : {
239- "oneOf" : [
240- {
241- "type" : " integer"
242- },
243- {
244- "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
245- }
246- ],
247- "description" : " A number of days to check still remain before the the existing SSL cert expires."
205+ "SyntheticMonitorId" : {
206+ "type" : " string" ,
207+ "description" : " Unique ID of this WebTest. This is typically the same value as the Name field."
248208 },
249- "SSLCheck " : {
209+ "Timeout " : {
250210 "oneOf" : [
251211 {
252- "type" : " boolean"
212+ "type" : " integer" ,
213+ "default" : " 30"
253214 },
254215 {
255216 "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
256217 }
257218 ],
258- "description" : " Checks to see if the SSL cert is still valid."
259- },
260- "SyntheticMonitorId" : {
261- "type" : " string" ,
262- "description" : " Unique ID of this WebTest. This is typically the same value as the Name field."
219+ "description" : " Seconds until this WebTest will timeout and fail. Default value is 30."
263220 },
264- "Timeout " : {
221+ "ValidationRules " : {
265222 "oneOf" : [
266223 {
267- "type" : " integer" ,
268- "default" : " 30"
224+ "$ref" : " #/definitions/WebTestPropertiesValidationRules"
269225 },
270226 {
271227 "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
272228 }
273229 ],
274- "description" : " Seconds until this WebTest will timeout and fail. Default value is 30. "
230+ "description" : " The collection of validation rule properties "
275231 }
276232 },
277233 "required" : [
292248 },
293249 "description" : " An XML configuration specification for a WebTest."
294250 },
295- "WebTestPropertiesContentValidation " : {
251+ "WebTestPropertiesRequest " : {
296252 "type" : " object" ,
297253 "properties" : {
298- "ContentMatch" : {
299- "type" : " string" ,
300- "description" : " Content to look for in the return of the WebTest."
301- },
302- "IgnoreCase" : {
254+ "FollowRedirects" : {
303255 "oneOf" : [
304256 {
305257 "type" : " boolean"
308260 "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
309261 }
310262 ],
311- "description" : " When set, this value makes the ContentMatch validation case insensitive ."
263+ "description" : " Follow redirects for this web test ."
312264 },
313- "PassIfTextFound" : {
265+ "Headers" : {
266+ "oneOf" : [
267+ {
268+ "type" : " array" ,
269+ "items" : {
270+ "$ref" : " #/definitions/HeaderField"
271+ }
272+ },
273+ {
274+ "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
275+ }
276+ ],
277+ "description" : " List of headers and their values to add to the WebTest call."
278+ },
279+ "HttpVerb" : {
280+ "type" : " string" ,
281+ "description" : " Http verb to use for this web test."
282+ },
283+ "ParseDependentRequests" : {
314284 "oneOf" : [
315285 {
316286 "type" : " boolean"
319289 "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
320290 }
321291 ],
322- "description" : " When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match"
292+ "description" : " Parse Dependent request for this WebTest."
293+ },
294+ "RequestBody" : {
295+ "type" : " string" ,
296+ "description" : " Base64 encoded string body to send with this web test."
297+ },
298+ "RequestUrl" : {
299+ "type" : " string" ,
300+ "description" : " Url location to test."
323301 }
324302 },
325- "description" : " The collection of content validation properties"
303+ "description" : " The collection of request properties"
326304 },
327- "WebTestPropertiesRequest " : {
305+ "WebTestPropertiesValidationRules " : {
328306 "type" : " object" ,
329307 "properties" : {
330- "FollowRedirects" : {
308+ "ContentValidation" : {
309+ "oneOf" : [
310+ {
311+ "$ref" : " #/definitions/WebTestPropertiesValidationRulesContentValidation"
312+ },
313+ {
314+ "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
315+ }
316+ ],
317+ "description" : " The collection of content validation properties"
318+ },
319+ "ExpectedHttpStatusCode" : {
320+ "oneOf" : [
321+ {
322+ "type" : " integer"
323+ },
324+ {
325+ "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
326+ }
327+ ],
328+ "description" : " Validate that the WebTest returns the http status code provided."
329+ },
330+ "IgnoreHttpsStatusCode" : {
331331 "oneOf" : [
332332 {
333333 "type" : " boolean"
336336 "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
337337 }
338338 ],
339- "description" : " Follow redirects for this web test ."
339+ "description" : " When set, validation will ignore the status code ."
340340 },
341- "Headers " : {
341+ "SSLCertRemainingLifetimeCheck " : {
342342 "oneOf" : [
343343 {
344- "type" : " array" ,
345- "items" : {
346- "$ref" : " #/definitions/HeaderField"
347- }
344+ "type" : " integer"
348345 },
349346 {
350347 "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
351348 }
352349 ],
353- "description" : " List of headers and their values to add to the WebTest call ."
350+ "description" : " A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true ."
354351 },
355- "HttpVerb" : {
352+ "SSLCheck" : {
353+ "oneOf" : [
354+ {
355+ "type" : " boolean"
356+ },
357+ {
358+ "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
359+ }
360+ ],
361+ "description" : " Checks to see if the SSL cert is still valid."
362+ }
363+ },
364+ "description" : " The collection of validation rule properties"
365+ },
366+ "WebTestPropertiesValidationRulesContentValidation" : {
367+ "type" : " object" ,
368+ "properties" : {
369+ "ContentMatch" : {
356370 "type" : " string" ,
357- "description" : " Http verb to use for this web test ."
371+ "description" : " Content to look for in the return of the WebTest. Must not be null or empty ."
358372 },
359- "ParseDependentRequests " : {
373+ "IgnoreCase " : {
360374 "oneOf" : [
361375 {
362376 "type" : " boolean"
365379 "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
366380 }
367381 ],
368- "description" : " Parse Dependent request for this WebTest."
369- },
370- "RequestBody" : {
371- "type" : " string" ,
372- "description" : " Base64 encoded string body to send with this web test."
382+ "description" : " When set, this value makes the ContentMatch validation case insensitive."
373383 },
374- "RequestUrl" : {
375- "type" : " string" ,
376- "description" : " Url location to test."
384+ "PassIfTextFound" : {
385+ "oneOf" : [
386+ {
387+ "type" : " boolean"
388+ },
389+ {
390+ "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
391+ }
392+ ],
393+ "description" : " When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match"
377394 }
378395 },
379- "description" : " The collection of request properties"
396+ "description" : " The collection of content validation properties"
380397 }
381398 }
382399}
0 commit comments