{
    "definitions": {
        "duration": {
            "$schema": "http://json-schema.org/draft-04/schema",
            "definitions": {
                "created_at": {
                    "description": "when duration was created",
                    "format": "date-time",
                    "type": [
                        "string"
                    ]
                },
                "id": {
                    "description": "unique identifier of duration",
                    "format": "uuid",
                    "readOnly": true,
                    "type": [
                        "string"
                    ]
                },
                "identity": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/duration/definitions/id"
                        },
                        {
                            "$ref": "#/definitions/duration/definitions/name"
                        }
                    ]
                },
                "name": {
                    "description": "unique name of duration",
                    "readOnly": true,
                    "type": [
                        "string"
                    ]
                },
                "updated_at": {
                    "description": "when duration was updated",
                    "format": "date-time",
                    "type": [
                        "string"
                    ]
                }
            },
            "description": "FIXME",
            "links": [
                {
                    "description": "Create a new duration.",
                    "href": "/durations",
                    "method": "POST",
                    "rel": "create",
                    "schema": {
                        "properties": {},
                        "type": [
                            "object"
                        ]
                    },
                    "title": "Create"
                },
                {
                    "description": "Delete an existing duration.",
                    "href": "/durations/{(%23%2Fdefinitions%2Fduration%2Fdefinitions%2Fidentity)}",
                    "method": "DELETE",
                    "rel": "destroy",
                    "title": "Delete"
                },
                {
                    "description": "Info for existing duration.",
                    "href": "/durations/{(%23%2Fdefinitions%2Fduration%2Fdefinitions%2Fidentity)}",
                    "method": "GET",
                    "rel": "self",
                    "title": "Info"
                },
                {
                    "description": "List existing durations.",
                    "href": "/durations",
                    "method": "GET",
                    "rel": "instances",
                    "title": "List"
                },
                {
                    "description": "Update an existing duration.",
                    "href": "/durations/{(%23%2Fdefinitions%2Fduration%2Fdefinitions%2Fidentity)}",
                    "method": "PATCH",
                    "rel": "update",
                    "schema": {
                        "properties": {},
                        "type": [
                            "object"
                        ]
                    },
                    "title": "Update"
                }
            ],
            "properties": {
                "created_at": {
                    "$ref": "#/definitions/duration/definitions/created_at"
                },
                "id": {
                    "$ref": "#/definitions/duration/definitions/id"
                },
                "name": {
                    "$ref": "#/definitions/duration/definitions/name"
                },
                "updated_at": {
                    "$ref": "#/definitions/duration/definitions/updated_at"
                }
            },
            "stability": "prototype",
            "strictProperties": true,
            "title": "FIXME - Duration",
            "type": [
                "object"
            ]
        }
    },
    "description": "infra-metrics API v1 Alpha Document",
    "links": [
        {
            "href": "https://<your-infra-metrics-server>.com",
            "rel": "self",
            "title": "infra-metrics API v1 Alpha"
        }
    ],
    "properties": {
        "duration": {
            "$ref": "#/definitions/duration"
        }
    },
    "type": [
        "object"
    ]
}