Skip to content

Commit 3a30e6f

Browse files
committed
Remove cluster_license_response file
1 parent 617e127 commit 3a30e6f

File tree

2 files changed

+17
-32
lines changed

2 files changed

+17
-32
lines changed

collector/cluster_license.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
3653
var (
3754
defaultClusterLicenseLabels = []string{"cluster_license_type"}
3855
defaultClusterLicenseValues = func(clusterLicense clusterLicenseResponse) []string {

collector/cluster_license_response.go

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)