-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
685d9c7
commit d4db18a
Showing
24 changed files
with
919 additions
and
528 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package v1alpha1 | ||
|
||
import ( | ||
"k8s.io/apimachinery/pkg/api/resource" | ||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
) | ||
|
||
// MetricValue is a resulting value for the metric. | ||
type MetricValue struct { | ||
// OwnerRef is the reference to the owner of this metric. | ||
OwnerRef metav1.OwnerReference `json:"ownerRef,omitempty"` | ||
// Poller is the identification of the poller that was used to fetch this metric. | ||
Poller string `json:"poller,omitempty"` | ||
// ID of this metric. | ||
ID string `json:"id,omitempty"` | ||
// Query is the query that was used to fetch this value. | ||
// It will be different for individual implementations. | ||
Query string `json:"query,omitempty"` | ||
// Value is the value of the metric. | ||
// +kubebuilder:validation:Type:=number | ||
// +kubebuilder:validation:Format:=float | ||
Value resource.Quantity `json:"value,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.