File tree Expand file tree Collapse file tree 2 files changed +17
-32
lines changed Expand file tree Collapse file tree 2 files changed +17
-32
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import (
2020 "net/http"
2121 "net/url"
2222 "path"
23+ "time"
2324
2425 "github.com/go-kit/log"
2526 "github.com/go-kit/log/level"
@@ -33,6 +34,22 @@ type clusterLicenseMetric struct {
3334 Labels func (clusterLicenseStats clusterLicenseResponse ) []string
3435}
3536
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+
3653var (
3754 defaultClusterLicenseLabels = []string {"cluster_license_type" }
3855 defaultClusterLicenseValues = func (clusterLicense clusterLicenseResponse ) []string {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments