aboutsummaryrefslogtreecommitdiff
path: root/src/zenutil/include
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2026-03-27 09:51:29 +0100
committerGitHub Enterprise <[email protected]>2026-03-27 09:51:29 +0100
commite811745e5c37dd38a8fb9f4bc2892525401eabbd (patch)
tree63896cabc0eb895887dc8247bb573f0dfd696afa /src/zenutil/include
parenthub async provision/deprovision/hibernate/wake (#891) (diff)
downloadzen-e811745e5c37dd38a8fb9f4bc2892525401eabbd.tar.xz
zen-e811745e5c37dd38a8fb9f4bc2892525401eabbd.zip
hub instance state refactor (#892)
- Improvement: Provisioning a hibernated instance now automatically wakes it instead of requiring an explicit wake call first - Improvement: Deprovisioning now accepts instances in Crashed or Hibernated states, not just Provisioned - Improvement: Added `--consul-health-interval-seconds` and `--consul-deregister-after-seconds` options to control Consul health check behavior (defaults: 10s and 30s) - Improvement: Consul registration now occurs when provisioning starts; health check intervals are applied once provisioning completes
Diffstat (limited to 'src/zenutil/include')
-rw-r--r--src/zenutil/include/zenutil/consul.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/zenutil/include/zenutil/consul.h b/src/zenutil/include/zenutil/consul.h
index 7bf2ce437..4002d5d23 100644
--- a/src/zenutil/include/zenutil/consul.h
+++ b/src/zenutil/include/zenutil/consul.h
@@ -21,8 +21,8 @@ struct ServiceRegistrationInfo
uint16_t Port = 0;
std::string HealthEndpoint;
std::vector<std::pair<std::string, std::string>> Tags;
- int HealthIntervalSeconds = 10;
- int DeregisterAfterSeconds = 30;
+ uint32_t HealthIntervalSeconds = 10;
+ uint32_t DeregisterAfterSeconds = 30;
};
class ConsulClient
@@ -44,6 +44,7 @@ public:
// Query methods for testing
bool HasService(std::string_view ServiceId);
std::string GetAgentServicesJson();
+ std::string GetAgentChecksJson();
// Blocking query on v1/agent/services. Blocks until the service list changes or
// the wait period expires. InOutIndex must be 0 for the first call; it is updated