e9ce8221bac6
Get Agent Cluster
Return cluster-level Flink info for the agent runtime - slots + version.
Powers the agentic dashboard header (total/available task slots, Flink version). Sourced from Flink REST /overview; kebab-case keys are translated to the camelCase response contract.
Agents and transforms share the same tenant Flink cluster, so this probe accepts either read:agents or read:transforms (OR semantics) and backs the cluster-availability note on both deploy surfaces.
When the tenant's cluster is not provisioned the upstream REST call 404s; that is reported as available=False with zeroed fields (HTTP 200) so the dashboard can render a "cluster not available" note instead of erroring. A tenant with no k8s_infras row (BadRequestException from get_k8s_infra inside FlinkClusterClient.create) means the same thing for this probe — no cluster to reach — so it takes the same available=False path rather than surfacing a 400. Deploy paths keep their loud 400: the mapping applies only here.
Response
Successful Response