-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[POWERMON] POWERMON-629 API Spec TP 0.5 #96329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
gwynnemonahan
wants to merge
3
commits into
openshift:power-monitoring-0.5
Choose a base branch
from
gwynnemonahan:POWERMON-629
base: power-monitoring-0.5
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,137 @@ | ||
// Automatically generated by 'kepler.system.sustainable.computing.io'. Do not edit. | ||
:_mod-docs-content-type: REFERENCE | ||
[id="power-monitoring-api-specifications_{context}"] | ||
= PowerMonitoring API specifications | ||
|
||
PowerMonitor | ||
|
||
|
||
PowerMonitor is the schema for the PowerMonitor API. | ||
|
||
[cols="1,1,4,1", options="header"] | ||
|=== | ||
| Name | ||
| Type | ||
| Description | ||
| Required | ||
|
||
| *apiVersion* | ||
| string | ||
| kepler.system.sustainable.computing.io/v1alpha1 | ||
| true | ||
|
||
| *kind* | ||
| string | ||
| PowerMonitor | ||
| true | ||
|
||
| link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#objectmeta-v1-meta[*metadata*] | ||
| object | ||
| Refer to the Kubernetes API documentation for the fields of the metadata field. | ||
| true | ||
|
||
| *spec* | ||
| object | ||
| PowerMonitorSpec defines the desired state of the Power Monitor. | ||
| false | ||
|
||
| *status* | ||
| object | ||
| PowerMonitorStatus defines the observed state of the Power Monitor. | ||
| false | ||
|=== | ||
|
||
PowerMonitor.status.conditions | ||
|
||
[cols="1,1,4,1", options="header"] | ||
|=== | ||
| Name | ||
| Type | ||
| Description | ||
| Required | ||
|
||
| *lastTransitionTime* | ||
| string | ||
| The last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. + | ||
Format: date-time | ||
| true | ||
|
||
| *message* | ||
| string | ||
| A human-readable message indicating details about the transition. This may be an empty string. | ||
| true | ||
|
||
| *reason* | ||
| string | ||
| Contains a programmatic identifier indicating the reason for the condition's last transition. | ||
| true | ||
|
||
| *status* | ||
| string | ||
| The status of the condition, which can be one of True, False, or Unknown. | ||
| true | ||
|
||
| *type* | ||
| string | ||
| The type of Kepler Condition, such as Reconciled or Available. | ||
| true | ||
|
||
| *observedGeneration* | ||
| integer | ||
| Represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date. + | ||
Format: int64 + | ||
Minimum: 0 | ||
| false | ||
|=== | ||
|
||
PowerMonitor.status.kepler | ||
|
||
[cols="1,1,4,1", options="header"] | ||
|=== | ||
| Name | ||
| Type | ||
| Description | ||
| Required | ||
|
||
| *currentNumberScheduled* | ||
| integer | ||
| The number of nodes that are running at least one power-monitor pod and are supposed to run it. + | ||
Format: int32 | ||
| true | ||
|
||
| *desiredNumberScheduled* | ||
| integer | ||
| The total number of nodes that should be running the power-monitor pod. + | ||
Format: int32 | ||
| true | ||
|
||
| *numberMisscheduled* | ||
| integer | ||
| The number of nodes running the power-monitor pod that are not supposed to. + | ||
Format: int32 | ||
| true | ||
|
||
| *numberReady* | ||
| integer | ||
| The number of nodes that should be running the power-monitor pod and have at least one pod with a Ready condition. + | ||
Format: int32 | ||
| true | ||
|
||
| *numberAvailable* | ||
| integer | ||
| The number of nodes that should be running the power-monitor pod and have at least one pod running and available. + | ||
Format: int32 | ||
| false | ||
|
||
| *numberUnavailable* | ||
| integer | ||
| The number of nodes that should be running the power-monitor pod but have no pods running and available. + | ||
Format: int32 | ||
| false | ||
|
||
| *updatedNumberScheduled* | ||
| integer | ||
| The total number of nodes that are running an updated power-monitor pod. + | ||
Format: int32 | ||
| false | ||
|=== |
14 changes: 14 additions & 0 deletions
14
observability/power_monitoring/power-monitoring-api-reference.adoc
This file contains hidden or 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,14 @@ | ||
:_mod-docs-content-type: ASSEMBLY | ||
[id="power-monitoring-api-reference_{context}"] | ||
= Power monitoring API reference | ||
include::_attributes/common-attributes.adoc[] | ||
:context: power-monitoring-kepler-power-attribution-guide | ||
|
||
toc::[] | ||
|
||
:FeatureName: Power monitoring | ||
include::snippets/technology-preview.adoc[leveloffset=+2] | ||
|
||
PowerMonitor is the Schema for the PowerMonitor API. | ||
|
||
include::modules/power-monitoring-api-specifications.adoc[leveloffset=+1] |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤖 [error] RedHat.TermsErrors: Use 'for example' rather than 'For instance'. For more information, see RedHat.TermsErrors.