From 8ced873a946c103bf6fd187130a475d816711346 Mon Sep 17 00:00:00 2001 From: Vasil Averyanau Date: Mon, 16 Dec 2024 10:25:45 +0100 Subject: [PATCH] feat(swagger): extends sm agent `/node_info' with `data_directory`. This extends `/node_info` response of scylla manager agent with `data_directory` field which should contain first entry from the `data_file_directories` list of scylladb configuration. Refs: #4130 --- v3/swagger/agent.json | 4 ++++ v3/swagger/gen/agent/models/node_info.go | 3 +++ 2 files changed, 7 insertions(+) diff --git a/v3/swagger/agent.json b/v3/swagger/agent.json index 40f63dd9b..63876d786 100644 --- a/v3/swagger/agent.json +++ b/v3/swagger/agent.json @@ -1683,6 +1683,10 @@ "enable_tablets": { "description": "Whether tablets are enabled.", "type": "boolean" + }, + "data_directory": { + "description": "First entry from `data_file_directories` list from scylla config file.", + "type": "string" } } } diff --git a/v3/swagger/gen/agent/models/node_info.go b/v3/swagger/gen/agent/models/node_info.go index 2a0706988..f85a11728 100644 --- a/v3/swagger/gen/agent/models/node_info.go +++ b/v3/swagger/gen/agent/models/node_info.go @@ -59,6 +59,9 @@ type NodeInfo struct { // Whether CQL requires password authentication. CqlPasswordProtected bool `json:"cql_password_protected,omitempty"` + // First entry from `data_file_directories` list from scylla config file. + DataDirectory string `json:"data_directory,omitempty"` + // Whether tablets are enabled. EnableTablets bool `json:"enable_tablets,omitempty"`