{
  "properties": {
    "apiVersion": {
      "type": [
        "string",
        "null"
      ]
    },
    "kind": {
      "type": [
        "string",
        "null"
      ]
    },
    "metadata": {
      "type": [
        "object",
        "null"
      ]
    },
    "spec": {
      "additionalProperties": false,
      "properties": {
        "instanceKind": {
          "default": "EMQX",
          "type": "string"
        },
        "instanceName": {
          "type": "string"
        },
        "rebalanceStrategy": {
          "additionalProperties": false,
          "properties": {
            "absConnThreshold": {
              "default": 1000,
              "format": "int32",
              "type": [
                "integer",
                "null"
              ]
            },
            "absSessThreshold": {
              "default": 1000,
              "format": "int32",
              "type": [
                "integer",
                "null"
              ]
            },
            "connEvictRate": {
              "format": "int32",
              "minimum": 1,
              "type": "integer"
            },
            "relConnThreshold": {
              "default": "1.1",
              "type": [
                "string",
                "null"
              ]
            },
            "relSessThreshold": {
              "default": "1.1",
              "type": [
                "string",
                "null"
              ]
            },
            "sessEvictRate": {
              "default": 500,
              "format": "int32",
              "type": [
                "integer",
                "null"
              ]
            },
            "waitHealthCheck": {
              "default": 60,
              "format": "int32",
              "type": [
                "integer",
                "null"
              ]
            },
            "waitTakeover": {
              "default": 60,
              "format": "int32",
              "type": [
                "integer",
                "null"
              ]
            }
          },
          "required": [
            "connEvictRate"
          ],
          "type": "object"
        }
      },
      "required": [
        "instanceKind",
        "instanceName",
        "rebalanceStrategy"
      ],
      "type": [
        "object",
        "null"
      ]
    },
    "status": {
      "additionalProperties": false,
      "properties": {
        "completedTime": {
          "format": "date-time",
          "type": [
            "string",
            "null"
          ]
        },
        "conditions": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "lastTransitionTime": {
                "format": "date-time",
                "type": [
                  "string",
                  "null"
                ]
              },
              "lastUpdateTime": {
                "format": "date-time",
                "type": [
                  "string",
                  "null"
                ]
              },
              "message": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "reason": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "status": {
                "type": "string"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "status",
              "type"
            ],
            "type": "object"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "phase": {
          "type": [
            "string",
            "null"
          ]
        },
        "rebalanceStates": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "connection_eviction_rate": {
                "format": "int32",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "coordinator_node": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "donors": {
                "items": {
                  "type": "string"
                },
                "type": [
                  "array",
                  "null"
                ]
              },
              "node": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "recipients": {
                "items": {
                  "type": "string"
                },
                "type": [
                  "array",
                  "null"
                ]
              },
              "session_eviction_rate": {
                "format": "int32",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "state": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "startedTime": {
          "format": "date-time",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": [
        "object",
        "null"
      ]
    }
  },
  "type": "object"
}