mirror of
https://github.com/graphql-hive/console
synced 2026-04-26 17:07:17 +00:00
141 lines
3.7 KiB
JSON
141 lines
3.7 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"title": "Report",
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"size": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"map": {
|
|
"type": "object",
|
|
"patternProperties": {
|
|
"^(.*)$": {
|
|
"title": "OperationMapRecord",
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"operation": {
|
|
"type": "string"
|
|
},
|
|
"operationName": {
|
|
"type": "string"
|
|
},
|
|
"fields": {
|
|
"minItems": 1,
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"required": ["operation", "fields"]
|
|
}
|
|
}
|
|
},
|
|
"operations": {
|
|
"type": "array",
|
|
"items": {
|
|
"title": "RequestOperation",
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"timestamp": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"operationMapKey": {
|
|
"type": "string"
|
|
},
|
|
"execution": {
|
|
"title": "Execution",
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"ok": {
|
|
"type": "boolean"
|
|
},
|
|
"duration": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"errorsTotal": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
}
|
|
},
|
|
"required": ["ok", "duration", "errorsTotal"]
|
|
},
|
|
"metadata": {
|
|
"title": "Metadata",
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"client": {
|
|
"title": "Client",
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["name", "version"]
|
|
}
|
|
}
|
|
},
|
|
"persistedDocumentHash": {
|
|
"type": "string",
|
|
"title": "PersistedDocumentHash",
|
|
"pattern": "^[a-zA-Z0-9_-]{1,64}~[a-zA-Z0-9._-]{1,64}~([A-Za-z]|[0-9]|_){1,128}$"
|
|
}
|
|
},
|
|
"required": ["timestamp", "operationMapKey", "execution"]
|
|
}
|
|
},
|
|
"subscriptionOperations": {
|
|
"type": "array",
|
|
"items": {
|
|
"title": "SubscriptionOperation",
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"timestamp": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"operationMapKey": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"title": "Metadata",
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"client": {
|
|
"title": "Client",
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["name", "version"]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": ["timestamp", "operationMapKey"]
|
|
}
|
|
}
|
|
},
|
|
"required": ["size", "map"]
|
|
}
|