--- a/testing/mozharness/external_tools/performance-artifact-schema.json
+++ b/testing/mozharness/external_tools/performance-artifact-schema.json
@@ -13,47 +13,57 @@
"properties": {
"name": {
"title": "Subtest name",
"type": "string"
},
"value": {
"description": "Summary value for subtest",
"title": "Subtest value",
- "type": "number"
+ "type": "number",
+ "minimum": -1000000000000.0,
+ "maximum": 1000000000000.0
},
"lowerIsBetter": {
"description": "Whether lower values are better for subtest",
"title": "Lower is better",
"type": "boolean"
},
"shouldAlert": {
"description": "Whether we should alert",
"title": "Should alert",
"type": "boolean"
},
"alertThreshold": {
"description": "% change threshold before alerting",
"title": "Alert threshold",
- "type": "number"
+ "type": "number",
+ "minimum": 0.0,
+ "maximum": 1000.0
},
"minBackWindow": {
"description": "Minimum back window to use for alerting",
"title": "Minimum back window",
- "type": "number"
+ "type": "number",
+ "minimum": 1,
+ "maximum": 255
},
"maxBackWindow": {
"description": "Maximum back window to use for alerting",
"title": "Maximum back window",
- "type": "number"
+ "type": "number",
+ "minimum": 1,
+ "maximum": 255
},
"foreWindow": {
"description": "Fore window to use for alerting",
"title": "Fore window",
- "type": "number"
+ "type": "number",
+ "minimum": 1,
+ "maximum": 255
}
},
"required": [
"name",
"value"
],
"type": "object"
},
@@ -75,47 +85,57 @@
"items": {
"$ref": "#/definitions/subtest_schema"
},
"title": "Subtests",
"type": "array"
},
"value": {
"title": "Suite value",
- "type": "number"
+ "type": "number",
+ "minimum": -1000000000000.0,
+ "maximum": 1000000000000.0
},
"lowerIsBetter": {
"description": "Whether lower values are better for suite",
"title": "Lower is better",
"type": "boolean"
},
"shouldAlert": {
"description": "Whether we should alert on this suite (overrides default behaviour)",
"title": "Should alert",
"type": "boolean"
},
"alertThreshold": {
"description": "% change threshold before alerting",
"title": "Alert threshold",
- "type": "number"
+ "type": "number",
+ "minimum": 0.0,
+ "maximum": 1000.0
},
"minBackWindow": {
"description": "Minimum back window to use for alerting",
"title": "Minimum back window",
- "type": "number"
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 255
},
"maxBackWindow": {
"description": "Maximum back window to use for alerting",
"title": "Maximum back window",
- "type": "number"
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 255
},
"foreWindow": {
"description": "Fore window to use for alerting",
"title": "Fore window",
- "type": "number"
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 255
}
},
"required": [
"name",
"subtests"
],
"type": "object"
}