-
Notifications
You must be signed in to change notification settings - Fork 3
159 node information #163
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
159 node information #163
Conversation
The only thing is whether we need to add this endpoint as stream or normal rpc endpoint, if it's stream then every request in the stream, they'll need to generate the |
// memory | ||
vmStat, err := mem.VirtualMemory() | ||
if err != nil { | ||
return nil, err |
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.
no need to use blocker package?
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.
yes, will do
How do we treat the functionality when the owner of a node is changed? do we need to restart the node? @andy-shi88 |
true right now we'll need to restart the whole application, since it only read the owner from config file in the start up. This should follow however the |
WIP: moving auth checking to |
…ntation instead
ready for re-review |
Description
Open endpoint to fetch node information such as cpu, ram, and storage usages.
Breakdown
/common/util
tocommon/interceptor
authorization
header (which is a hex string representation of signed data [requestType+timestamp] *will explain more in wiki later)Reference Issue
Close #159
Step to Test (optional)
GetNodeHardware/client.go
http proxy : POSTMAN
host
value to match the port in yourresource/config.toml:apiHTTPPort
note: