Skip to content

Commit

Permalink
Remove cluster_license_response file
Browse files Browse the repository at this point in the history
  • Loading branch information
kekkker committed Dec 12, 2023
1 parent 617e127 commit 3a30e6f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 32 deletions.
17 changes: 17 additions & 0 deletions collector/cluster_license.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"net/http"
"net/url"
"path"
"time"

"github.com/go-kit/log"
"github.com/go-kit/log/level"
Expand All @@ -33,6 +34,22 @@ type clusterLicenseMetric struct {
Labels func(clusterLicenseStats clusterLicenseResponse) []string
}

type clusterLicenseResponse struct {
License struct {
Status string `json:"status"`
UID string `json:"uid"`
Type string `json:"type"`
IssueDate time.Time `json:"issue_date"`
IssueDateInMillis int64 `json:"issue_date_in_millis"`
ExpiryDate time.Time `json:"expiry_date"`
ExpiryDateInMillis int64 `json:"expiry_date_in_millis"`
MaxNodes int `json:"max_nodes"`
IssuedTo string `json:"issued_to"`
Issuer string `json:"issuer"`
StartDateInMillis int64 `json:"start_date_in_millis"`
} `json:"license"`
}

var (
defaultClusterLicenseLabels = []string{"cluster_license_type"}
defaultClusterLicenseValues = func(clusterLicense clusterLicenseResponse) []string {
Expand Down
32 changes: 0 additions & 32 deletions collector/cluster_license_response.go

This file was deleted.

0 comments on commit 3a30e6f

Please sign in to comment.