File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,7 @@ type Stats struct {
175
175
StreamZoneSync * StreamZoneSync
176
176
Workers []* Workers
177
177
NginxInfo NginxInfo
178
+ NginxLicense NginxLicense
178
179
SSL SSL
179
180
Connections Connections
180
181
HTTPRequests HTTPRequests
@@ -1267,6 +1268,19 @@ func (client *NginxClient) GetStats(ctx context.Context) (*Stats, error) {
1267
1268
return nil
1268
1269
})
1269
1270
1271
+ initialGroup .Go (func () error {
1272
+ nginxLicense , err := client .GetNginxLicense (initialCtx )
1273
+ if err != nil {
1274
+ return fmt .Errorf ("failed to get NGINX license: %w" , err )
1275
+ }
1276
+
1277
+ mu .Lock ()
1278
+ stats .NginxLicense = * nginxLicense
1279
+ mu .Unlock ()
1280
+
1281
+ return nil
1282
+ })
1283
+
1270
1284
initialGroup .Go (func () error {
1271
1285
caches , err := client .GetCaches (initialCtx )
1272
1286
if err != nil {
You can’t perform that action at this time.
0 commit comments