{
    "$schema": "http://json-schema.org/draft-07/schema",
    "$id": "http://example.com/metric.schema.json",
    "type": "object",
    "title": "The root schema",
    "description": "The root schema comprises the entire JSON document.",
    "default": {},
    "examples": [
        {
            "sourceId": "d5ab5671-9800-4690-a2b4-b4c62da3790b",
            "metricName": "system.cpu.utilization",
            "instanceName": "",
            "rawTtlDays": 7,
            "contextId": 322ff0e9-32f2-477a-b3ba-899d5d8cb2ef,
            "unit":"Counter",
            "unitLabel":"",
            "factor":1.0,
            "labels": {
                "IP Address": "10.0.2.15",
                "os": "Microsoft Windows 10 Home 10.0.18362 Build 18362.239",
                "mac_address": "08:00:27:BD:C2:6B",
                "ip": "10.0.2.15",
                "name": "DESKTOP-5LI7QB0",
                "host": "DESKTOP-5LI7QB0",
                "bios_code": "077C66BD-EC3C-4281-A516-545123ECBCAA",
                "model": "VirtualBox",
                "make": "innotek GmbH",
                "uuid": "d5ab5671-9800-4690-a2b4-b4c62da3790b",
                "Name": "DESKTOP-5LI7QB0"
            },
            "contextUUID": "ae4778c5-ea09-60ea-d835-8eeabcafe362",
            "metricId": 1,
            "sourceType": "RESOURCE",
            "instanceVal": 2.5,
            "state": 0,
            "ts": 1628755251
        }
    ],
    "properties": {
        "sourceId": {
            "$id": "#/properties/sourceId",
            "type": "string",
            "title": "The sourceId schema",
            "description": "A unique identifier for a monitored resource",
            "default": "",
            "examples": [
                "d5ab5671-9800-4690-a2b4-b4c62da3790b"
            ]
        },
        "metricName": {
            "$id": "#/properties/metricName",
            "type": "string",
            "title": "The metricName schema",
            "description": "Name of a metric monitored on the resource.",
            "default": "",
            "examples": [
                "system.cpu.utilization"
            ]
        },
        "instanceName": {
            "$id": "#/properties/instanceName",
            "type": "string",
            "title": "The instanceName schema",
            "description": "Instance name of the resource.",
            "default": "",
            "examples": [
                ""
            ]
        },
        "rawTtlDays": {
            "$id": "#/properties/rawTtlDays",
            "type": "number",
            "title": "The rawTtlDays schema",
            "description": "Number of TTL days of the raw metric data.",
            "default": 0,
            "examples": [
                7
            ]
        },
        "contextId": {
            "$id": "#/properties/contextId",
            "type": "number",
            "title": "The contextId schema",
            "description": "Organization Id of the resource.",
            "default": 0,
            "examples": [
                2322
            ]
        },
        "labels": {
            "$id": "#/properties/labels",
            "type": "object",
            "title": "The labels schema",
            "description": "Resource Details.",
            "default": {},
            "examples": [
                {
                    "IP Address": "10.0.2.15",
                    "os": "Microsoft Windows 10 Home 10.0.18362 Build 18362.239",
                    "mac_address": "08:00:27:BD:C2:6B",
                    "ip": "10.0.2.15",
                    "name": "DESKTOP-5LI7QB0",
                    "host": "DESKTOP-5LI7QB0",
                    "bios_code": "077C66BD-EC3C-4281-A516-545123ECBCAA",
                    "model": "VirtualBox",
                    "make": "innotek GmbH",
                    "uuid": "d5ab5671-9800-4690-a2b4-b4c62da3790b",
                    "Name": "DESKTOP-5LI7QB0"
                }
            ],
            "properties": {
                "IP Address": {
                    "$id": "#/properties/labels/properties/IP%20Address",
                    "type": "string",
                    "title": "The IP Address schema",
                    "description": "An explanation about the purpose of this instance.",
                    "default": "",
                    "examples": [
                        "10.0.2.15"
                    ]
                },
                "os": {
                    "$id": "#/properties/labels/properties/os",
                    "type": "string",
                    "title": "The os schema",
                    "description": "Resource OS",
                    "default": "",
                    "examples": [
                        "Microsoft Windows 10 Home 10.0.18362 Build 18362.239"
                    ]
                },
                "mac_address": {
                    "$id": "#/properties/labels/properties/mac_address",
                    "type": "string",
                    "title": "The mac_address schema",
                    "description": "MAC Address.",
                    "default": "",
                    "examples": [
                        "08:00:27:BD:C2:6B"
                    ]
                },
                "ip": {
                    "$id": "#/properties/labels/properties/ip",
                    "type": "string",
                    "title": "The ip schema",
                    "description": "IP Address of the machine",
                    "default": "",
                    "examples": [
                        "10.0.2.15"
                    ]
                },
                "name": {
                    "$id": "#/properties/labels/properties/name",
                    "type": "string",
                    "title": "The name schema",
                    "description": "Name of the Resource.",
                    "default": "",
                    "examples": [
                        "DESKTOP-5LI7QB0"
                    ]
                },
                "host": {
                    "$id": "#/properties/labels/properties/host",
                    "type": "string",
                    "title": "The host schema",
                    "description": "Resource HOSTNAME",
                    "default": "",
                    "examples": [
                        "DESKTOP-5LI7QB0"
                    ]
                },
                "bios_code": {
                    "$id": "#/properties/labels/properties/bios_code",
                    "type": "string",
                    "title": "The bios_code schema",
                    "description": "BIOS Code.",
                    "default": "",
                    "examples": [
                        "077C66BD-EC3C-4281-A516-545123ECBCAA"
                    ]
                },
                "model": {
                    "$id": "#/properties/labels/properties/model",
                    "type": "string",
                    "title": "The model schema",
                    "description": "Resource Model",
                    "default": "",
                    "examples": [
                        "VirtualBox"
                    ]
                },
                "make": {
                    "$id": "#/properties/labels/properties/make",
                    "type": "string",
                    "title": "The make schema",
                    "description": "Resource Make",
                    "default": "",
                    "examples": [
                        "innotek GmbH"
                    ]
                },
                "uuid": {
                    "$id": "#/properties/labels/properties/uuid",
                    "type": "string",
                    "title": "The uuid schema",
                    "description": "An explanation about the purpose of this instance.",
                    "default": "",
                    "examples": [
                        "d5ab5671-9800-4690-a2b4-b4c62da3790b"
                    ]
                },
                "Name": {
                    "$id": "#/properties/labels/properties/Name",
                    "type": "string",
                    "title": "The Name schema",
                    "description": "An explanation about the purpose of this instance.",
                    "default": "",
                    "examples": [
                        "DESKTOP-5LI7QB0"
                    ]
                }
            }
        },
        "contextUUID": {
            "$id": "#/properties/contextUUID",
            "type": "string",
            "title": "The contextUUID schema",
            "description": "Unique Identifier for a resource organization.",
            "default": "",
            "examples": [
                "ae4778c5-ea09-60ea-d835-8eeabcafe362"
            ]
        },
        "metricId": {
            "$id": "#/properties/metricId",
            "type": "number",
            "title": "The metricId schema",
            "description": "Unique identifier for a metric",
            "default": 0,
            "examples": [
                1
            ]
        },
        "sourceType": {
            "$id": "#/properties/sourceType",
            "type": "string",
            "title": "The sourceType schema",
            "description": "Unique Identifier for a resource type.",
            "default": "",
            "examples": [
                "RESOURCE","SYNTHETICS"
            ]
        },
        "instanceVal": {
            "$id": "#/properties/instanceVal",
            "type": "number",
            "title": "The instanceVal schema",
            "description": "Instance value of the metric collection on particular timestamp.",
            "default": 0.0,
            "examples": [
                2.5
            ]
        },
        "state": {
            "$id": "#/properties/state",
            "type": "number",
            "title": "The state schema",
            "description": "State of the metric. CRITICAL,WARNING,OK,INFO",
            "default": 0,
            "examples": [
                0,1,2,3
            ]
        },
        "ts": {
            "$id": "#/properties/ts",
            "type": "number",
            "title": "The EPOC timestamp",
            "description": "A Timestamp of the metric collection.",
            "default": 0,
            "examples": [
                1628755251
            ]
        }
    }
}