build/telemetry-schema.json
author Alessio Placitelli <alessio.placitelli@gmail.com>
Mon, 27 Nov 2017 11:54:27 +0100
changeset 397944 443747e39abe9c7f7dae06603daa57f5c0706d1b
parent 285152 930c12a120abdefcfc6093164112063cb477b4ce
permissions -rw-r--r--
Bug 1417473 - Implement the hybrid content telemetry API. r=chutten,Gijs This enables whitelisted pages to send messages to the chrome using asynchronous messaging from the content. This patch only adds the API and test coverage. The first consumer of the API will be added as part of bug 1417479. MozReview-Commit-ID: ESxFFjvhpWA

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "argv": {"type": "array"},
    "system": {
      "type": "object",
      "properties": {
        "architecture": {"type": "array"},
        "linux_distribution": {"type": "array"},
        "mac_ver": {"type": "array"},
        "machine": {"type": "string"},
        "python_version": {"type": "string"},
        "release": {"type": "string"},
        "system": {"type": "string"},
        "version": {"type": "string"},
        "win_ver": {"type": "array"}
      },
      "required": ["architecture", "machine", "python_version",
                   "release", "system", "version"]
    }
  },
  "required": ["argv", "system"]
}