Skip to content

Commit

Permalink
RepairPostBody and ClusterNodeStatus in definition
Browse files Browse the repository at this point in the history
  • Loading branch information
rsharm7 committed Feb 27, 2023
1 parent 0f17db1 commit 6b4f5f9
Showing 1 changed file with 96 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1367,6 +1367,102 @@
}
}
},
"RepairPostBody": {
"description": "Specification of the keyspaces and tables to run repair on.",
"type": "object",
"required": [
"keyspace"
],
"properties": {
"keyspace": {
"type": "string",
"description": "The name of the keyspace that repair should be run on."
},
"tables": {
"type": "array",
"description": "List of tables in the keyspace to repair. If omitted, repair all tables in the keyspace.",
"items": {
"type": "string",
"description": "Name of a table in the Cassandra keyspace."
}
}
}
},
"ClusterNodeStatus": {
"description": "The status of all nodes in the cluster (as returned by 'nodetool status').",
"type": "object",
"properties": {
"nodes": {
"type": "array",
"description": "Information about nodes in the cluster (corresponds to what is returned from nodetool info).",
"items": {
"type": "object",
"properties": {
"datacenter": {
"type": "string",
"description": "The Cassandra data center this node resides in."
},
"status": {
"type": "string",
"description": "Indicates whether the node is functioning or not.",
"enum": [
"Up",
"Down"
],
"x-ms-enum": {
"name": "NodeStatus",
"modelAsString": true
}
},
"state": {
"type": "string",
"description": "The state of the node in relation to the cluster.",
"enum": [
"Normal",
"Leaving",
"Joining",
"Moving",
"Stopped"
],
"x-ms-enum": {
"name": "NodeState",
"modelAsString": true
}
},
"address": {
"type": "string",
"description": "The node's URL."
},
"load": {
"type": "string",
"description": "The amount of file system data in the data directory (e.g., 47.66 KB), excluding all content in the snapshots subdirectories. Because all SSTable data files are included, any data that is not cleaned up (such as TTL-expired cell or tombstoned data) is counted."
},
"tokens": {
"type": "array",
"description": "List of tokens.",
"items": {
"type": "string",
"description": "Token of this node."
}
},
"owns": {
"type": "number",
"format": "double",
"description": "The percentage of the data owned by the node per datacenter times the replication factor (e.g., 33.3, or null if the data is not available). For example, a node can own 33% of the ring, but shows 100% if the replication factor is 3. For non-system keyspaces, the endpoint percentage ownership information is shown."
},
"hostId": {
"type": "string",
"description": "The network ID of the node."
},
"rack": {
"type": "string",
"description": "The rack this node is part of."
}
}
}
}
}
},
"BackupResource": {
"description": "A restorable backup of a Cassandra cluster.",
"type": "object",
Expand Down

0 comments on commit 6b4f5f9

Please sign in to comment.