From 0b032a7df77fefb73d22ad87276e19a10f7bcedb Mon Sep 17 00:00:00 2001 From: Helene Durand Date: Thu, 15 Feb 2024 10:53:42 +0100 Subject: [PATCH] BUG/MINOR: add last_chk in stats --- models/native_stat_stats.go | 5 ++++- specification/build/haproxy_spec.yaml | 6 ++++++ specification/models/stats.yaml | 6 ++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/models/native_stat_stats.go b/models/native_stat_stats.go index 5381b5e6..b4f60470 100644 --- a/models/native_stat_stats.go +++ b/models/native_stat_stats.go @@ -31,7 +31,7 @@ import ( ) // NativeStatStats native stat stats -// Example: {"bin":4326578,"bout":889901290,"comp_byp":0,"comp_in":0,"comp_out":0,"comp_rsp":0,"conn_rate":12,"conn_rate_max":456,"conn_tot":45682,"dcon":0,"dreq":4,"dresp":1,"dses":0,"ereq":54,"hrsp_1xx":0,"hrsp_2xx":165,"hrsp_3xx":12,"hrsp_4xx":50,"hrsp_5xx":4,"hrsp_other":0,"iid":0,"intercepted":346,"mode":"http","pid":3204,"rate":64,"rate_lim":20000,"rate_max":4000,"req_rate":49,"req_rate_max":3965,"req_total":1254786,"scur":129,"slim":2000,"smax":2000,"status":"UP","stot":12902} +// Example: {"bin":4326578,"bout":889901290,"comp_byp":0,"comp_in":0,"comp_out":0,"comp_rsp":0,"conn_rate":12,"conn_rate_max":456,"conn_tot":45682,"dcon":0,"dreq":4,"dresp":1,"dses":0,"ereq":54,"hrsp_1xx":0,"hrsp_2xx":165,"hrsp_3xx":12,"hrsp_4xx":50,"hrsp_5xx":4,"hrsp_other":0,"iid":0,"intercepted":346,"last_chk":"L4OK in 0ms","mode":"http","pid":3204,"rate":64,"rate_lim":20000,"rate_max":4000,"req_rate":49,"req_rate_max":3965,"req_total":1254786,"scur":129,"slim":2000,"smax":2000,"status":"UP","stot":12902} // // swagger:model native_stat_stats type NativeStatStats struct { @@ -185,6 +185,9 @@ type NativeStatStats struct { // intercepted Intercepted *int64 `json:"intercepted,omitempty"` + // last chk + LastChk *string `json:"last_chk,omitempty"` + // lastchg Lastchg *int64 `json:"lastchg,omitempty"` diff --git a/specification/build/haproxy_spec.yaml b/specification/build/haproxy_spec.yaml index 5aab9727..d0fe2d8d 100644 --- a/specification/build/haproxy_spec.yaml +++ b/specification/build/haproxy_spec.yaml @@ -7022,6 +7022,7 @@ definitions: hrsp_other: 0 iid: 0 intercepted: 346 + last_chk: L4OK in 0ms mode: http pid: 3204 rate: 64 @@ -7305,6 +7306,11 @@ definitions: - frontend - backend x-nullable: true + last_chk: + type: string + x-dependency: + type: server + x-nullable: true lastchg: type: integer x-dependency: diff --git a/specification/models/stats.yaml b/specification/models/stats.yaml index c7faad47..00cd71af 100644 --- a/specification/models/stats.yaml +++ b/specification/models/stats.yaml @@ -384,6 +384,11 @@ native_stat_stats: x-nullable: true x-dependency: type: frontend + last_chk: + type: string + x-nullable: true + x-dependency: + type: server example: scur: 129 smax: 2000 @@ -420,3 +425,4 @@ native_stat_stats: intercepted: 346 dcon: 0 dses: 0 + last_chk: "L4OK in 0ms"