"$ref": "#/definitions/CharmMetric"
}
}
+ },
+ "plan": {
+ "$ref": "#/definitions/CharmPlan"
}
},
"additionalProperties": false,
"required": [
- "metrics"
+ "metrics",
+ "plan"
]
},
"CharmOption": {
"type"
]
},
+ "CharmPlan": {
+ "type": "object",
+ "properties": {
+ "required": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "required"
+ ]
+ },
"CharmRelation": {
"type": "object",
"properties": {
"type": "object",
"additionalProperties": false
},
+ "MachineHardware": {
+ "type": "object",
+ "properties": {
+ "arch": {
+ "type": "string"
+ },
+ "availability-zone": {
+ "type": "string"
+ },
+ "cores": {
+ "type": "integer"
+ },
+ "cpu-power": {
+ "type": "integer"
+ },
+ "mem": {
+ "type": "integer"
+ },
+ "root-disk": {
+ "type": "integer"
+ },
+ "tags": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "additionalProperties": false
+ },
"MachineStatus": {
"type": "object",
"properties": {
"life": {
"type": "string"
},
+ "machines": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ModelMachineInfo"
+ }
+ },
"name": {
"type": "string"
},
"owner-tag",
"life",
"status",
- "users"
+ "users",
+ "machines"
+ ]
+ },
+ "ModelMachineInfo": {
+ "type": "object",
+ "properties": {
+ "hardware": {
+ "$ref": "#/definitions/MachineHardware"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "id"
]
},
"ModelSet": {
"type": "object",
"additionalProperties": false
},
+ "MachineHardware": {
+ "type": "object",
+ "properties": {
+ "arch": {
+ "type": "string"
+ },
+ "availability-zone": {
+ "type": "string"
+ },
+ "cores": {
+ "type": "integer"
+ },
+ "cpu-power": {
+ "type": "integer"
+ },
+ "mem": {
+ "type": "integer"
+ },
+ "root-disk": {
+ "type": "integer"
+ },
+ "tags": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "additionalProperties": false
+ },
"MigrationSpec": {
"type": "object",
"properties": {
+ "external-control": {
+ "type": "boolean"
+ },
"model-tag": {
"type": "string"
},
"additionalProperties": false,
"required": [
"model-tag",
- "target-info"
+ "target-info",
+ "external-control"
]
},
"MigrationTargetInfo": {
"controller-tag": {
"type": "string"
},
- "macaroon": {
+ "macaroons": {
"type": "string"
},
"password": {
"config"
]
},
+ "ModelMachineInfo": {
+ "type": "object",
+ "properties": {
+ "hardware": {
+ "$ref": "#/definitions/MachineHardware"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "id"
+ ]
+ },
"ModelStatus": {
"type": "object",
"properties": {
"life": {
"type": "string"
},
+ "machines": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ModelMachineInfo"
+ }
+ },
"model-tag": {
"type": "string"
},
"ha-members"
]
},
+ "MongoVersion": {
+ "type": "object",
+ "properties": {
+ "engine": {
+ "type": "string"
+ },
+ "major": {
+ "type": "integer"
+ },
+ "minor": {
+ "type": "integer"
+ },
+ "patch": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "major",
+ "minor",
+ "patch",
+ "engine"
+ ]
+ },
"ResumeReplicationParams": {
"type": "object",
"properties": {
"type": "object",
"properties": {
"target": {
- "$ref": "#/definitions/Version"
+ "$ref": "#/definitions/MongoVersion"
}
},
"additionalProperties": false,
}
},
"additionalProperties": false
- },
- "Version": {
- "type": "object",
- "properties": {
- "Major": {
- "type": "integer"
- },
- "Minor": {
- "type": "integer"
- },
- "Patch": {
- "type": "string"
- },
- "StorageEngine": {
- "type": "string"
- }
- },
- "additionalProperties": false,
- "required": [
- "Major",
- "Minor",
- "Patch",
- "StorageEngine"
- ]
}
}
}
"type": "string",
"format": "date-time"
},
+ "unit": {
+ "type": "string"
+ },
"value": {
"type": "string"
}
"required": [
"time",
"key",
- "value"
+ "value",
+ "unit"
]
},
"MetricResults": {
"name": {
"type": "string"
},
+ "owner-tag": {
+ "type": "string"
+ },
"uuid": {
"type": "string"
}
"required": [
"uuid",
"name",
+ "owner-tag",
"agent-version"
]
},
"MigrationSpec": {
"type": "object",
"properties": {
+ "external-control": {
+ "type": "boolean"
+ },
"model-tag": {
"type": "string"
},
"additionalProperties": false,
"required": [
"model-tag",
- "target-info"
+ "target-info",
+ "external-control"
]
},
"MigrationTargetInfo": {
"controller-tag": {
"type": "string"
},
- "macaroon": {
+ "macaroons": {
"type": "string"
},
"password": {
"type": "object",
"properties": {
"Params": {
- "$ref": "#/definitions/TargetPrechecksArgs"
+ "$ref": "#/definitions/MigrationModelInfo"
}
}
}
},
"definitions": {
+ "MigrationModelInfo": {
+ "type": "object",
+ "properties": {
+ "agent-version": {
+ "$ref": "#/definitions/Number"
+ },
+ "name": {
+ "type": "string"
+ },
+ "owner-tag": {
+ "type": "string"
+ },
+ "uuid": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "uuid",
+ "name",
+ "owner-tag",
+ "agent-version"
+ ]
+ },
"ModelArgs": {
"type": "object",
"properties": {
"version",
"uri"
]
- },
- "TargetPrechecksArgs": {
- "type": "object",
- "properties": {
- "agent-version": {
- "$ref": "#/definitions/Number"
- }
- },
- "additionalProperties": false,
- "required": [
- "agent-version"
- ]
}
}
}
"type": "object",
"additionalProperties": false
},
+ "MachineHardware": {
+ "type": "object",
+ "properties": {
+ "arch": {
+ "type": "string"
+ },
+ "availability-zone": {
+ "type": "string"
+ },
+ "cores": {
+ "type": "integer"
+ },
+ "cpu-power": {
+ "type": "integer"
+ },
+ "mem": {
+ "type": "integer"
+ },
+ "root-disk": {
+ "type": "integer"
+ },
+ "tags": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "additionalProperties": false
+ },
"MapResult": {
"type": "object",
"properties": {
"life": {
"type": "string"
},
+ "machines": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ModelMachineInfo"
+ }
+ },
"name": {
"type": "string"
},
"owner-tag",
"life",
"status",
- "users"
+ "users",
+ "machines"
]
},
"ModelInfoResult": {
"results"
]
},
+ "ModelMachineInfo": {
+ "type": "object",
+ "properties": {
+ "hardware": {
+ "$ref": "#/definitions/MachineHardware"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "id"
+ ]
+ },
"ModelUserInfo": {
"type": "object",
"properties": {