File tree 2 files changed +17
-32
lines changed
2 files changed +17
-32
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import (
20
20
"net/http"
21
21
"net/url"
22
22
"path"
23
+ "time"
23
24
24
25
"github.com/go-kit/log"
25
26
"github.com/go-kit/log/level"
@@ -33,6 +34,22 @@ type clusterLicenseMetric struct {
33
34
Labels func (clusterLicenseStats clusterLicenseResponse ) []string
34
35
}
35
36
37
+ type clusterLicenseResponse struct {
38
+ License struct {
39
+ Status string `json:"status"`
40
+ UID string `json:"uid"`
41
+ Type string `json:"type"`
42
+ IssueDate time.Time `json:"issue_date"`
43
+ IssueDateInMillis int64 `json:"issue_date_in_millis"`
44
+ ExpiryDate time.Time `json:"expiry_date"`
45
+ ExpiryDateInMillis int64 `json:"expiry_date_in_millis"`
46
+ MaxNodes int `json:"max_nodes"`
47
+ IssuedTo string `json:"issued_to"`
48
+ Issuer string `json:"issuer"`
49
+ StartDateInMillis int64 `json:"start_date_in_millis"`
50
+ } `json:"license"`
51
+ }
52
+
36
53
var (
37
54
defaultClusterLicenseLabels = []string {"cluster_license_type" }
38
55
defaultClusterLicenseValues = func (clusterLicense clusterLicenseResponse ) []string {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments