changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "additionalProperties": false,
+ "properties": {
+ "result": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "action": {
+ "const": "logs",
+ "type": "string"
+ },
+ "ip": {
+ "type": "string"
+ },
+ "lines": {
+ "type": "number"
+ },
+ "logs": {
+ "type": "string"
+ },
+ "server": {
+ "type": "string"
+ },
+ "service": {
+ "type": "string"
+ },
+ "suggested_actions": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "command": {
+ "type": "string"
+ },
+ "reason": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "command",
+ "reason"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "action",
+ "server",
+ "ip",
+ "service",
+ "lines",
+ "logs",
+ "suggested_actions"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "action": {
+ "const": "monitor",
+ "type": "string"
+ },
+ "containers": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "status"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "ip": {
+ "type": "string"
+ },
+ "metrics": {
+ "additionalProperties": false,
+ "properties": {
+ "cpu": {
+ "additionalProperties": false,
+ "properties": {
+ "percent": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "percent"
+ ],
+ "type": "object"
+ },
+ "disk": {
+ "additionalProperties": false,
+ "properties": {
+ "percent": {
+ "type": "number"
+ },
+ "total": {
+ "type": "number"
+ },
+ "used": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "percent",
+ "total",
+ "used"
+ ],
+ "type": "object"
+ },
+ "mem": {
+ "additionalProperties": false,
+ "properties": {
+ "percent": {
+ "type": "number"
+ },
+ "total": {
+ "type": "number"
+ },
+ "used": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "percent",
+ "total",
+ "used"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "cpu",
+ "mem",
+ "disk"
+ ],
+ "type": "object"
+ },
+ "server": {
+ "type": "string"
+ },
+ "suggested_actions": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "command": {
+ "type": "string"
+ },
+ "reason": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "command",
+ "reason"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "action",
+ "server",
+ "ip",
+ "metrics",
+ "suggested_actions"
+ ],
+ "type": "object"
+ }
+ ]
+ }
+ },
+ "required": [
+ "result"
+ ],
+ "type": "object"
+}