-
Notifications
You must be signed in to change notification settings - Fork 6
Update cloud protocol #373
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
base: feature_unification
Are you sure you want to change the base?
Conversation
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.
Reviewed-by: Mykola Kobets <[email protected]>
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.
common: tools: crate core alert structs
=> create
ResourceInfoStaticArray mResources; | ||
RuntimeInfoStaticArray mRuntimes; | ||
ResourceInfoArray mResources; | ||
RuntimeInfoArray mRuntimes; |
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.
I would remove Array suffix as well, eg:
ResourceInfoArary => Resources,
RuntimeInfoArray => Runtimes
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.
Reviewed-by: Mykola Solianko <[email protected]>
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.
Reviewed-by: Mykhailo Lohvynenko <[email protected]>
95ed5c5
to
db9424b
Compare
Signed-off-by: Oleksandr Grytsov <[email protected]>
Signed-off-by: Oleksandr Grytsov <[email protected]>
Signed-off-by: Oleksandr Grytsov <[email protected]>
db9424b
to
f8126ae
Compare
Signed-off-by: Oleksandr Grytsov <[email protected]>
Signed-off-by: Oleksandr Grytsov <[email protected]>
Signed-off-by: Oleksandr Grytsov <[email protected]>
Move common part to types and use local env vars struct in core lib. Signed-off-by: Oleksandr Grytsov <[email protected]>
Move common part to types and use local log struct in core lib. Signed-off-by: Oleksandr Grytsov <[email protected]>
Signed-off-by: Oleksandr Grytsov <[email protected]>
Signed-off-by: Oleksandr Grytsov <[email protected]>
Signed-off-by: Oleksandr Grytsov <[email protected]>
Signed-off-by: Oleksandr Grytsov <[email protected]>
Signed-off-by: Oleksandr Grytsov <[email protected]>
Signed-off-by: Oleksandr Grytsov <[email protected]>
Signed-off-by: Oleksandr Grytsov <[email protected]>
Signed-off-by: Oleksandr Grytsov <[email protected]>
Signed-off-by: Oleksandr Grytsov <[email protected]>
2e4e3dd
to
11107b4
Compare
struct SystemQuotaAlert : AlertItem { | ||
Identity mNode; | ||
StaticString<cAlertParameterLen> mParameter; | ||
size_t mValue; |
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.
size_t mValue; | |
size_t mValue{}; |
*/ | ||
struct InstanceQuotaAlert : AlertItem, InstanceIdent { | ||
StaticString<cAlertParameterLen> mParameter; | ||
size_t mValue; |
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.
size_t mValue; | |
size_t mValue{}; |
src/core/cm/cloudprotocol/alerts.hpp
Outdated
*/ | ||
struct DownloadAlert : AlertItem { | ||
StaticString<cIDLen> mImageID; | ||
size_t mDownloadedBytes; |
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.
size_t mDownloadedBytes; | |
size_t mDownloadedBytes{}; | |
size_t mTotalBytes{}; |
Optional<AlertRules> mAlertRules; | ||
Optional<ResourceRatios> mResourceRatios; | ||
StaticArray<StaticString<cLabelNameLen>, cMaxNumNodeLabels> mLabels; | ||
uint64_t mPriority {0}; |
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.
Quite an optional comment, should discuss with team:
uint64_t mPriority {0}; | |
uint64_t mPriority {}; |
Currently we have the next POD initialization approaches:
- uint64_t mPriority {};
- uint64_t mPriority {0};
- uint64_t mPriority = 0;
- uint64_t mPriority ; // trash - initialized
It seems to me the 1st one approach is the most used
struct InstanceInfo { | ||
Identity mIdentity; | ||
Identity mSubject; | ||
uint64_t mPriority {0}; |
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.
ditto (the same very optional comment)
struct PushLog { | ||
StaticString<cLogIDLen> mLogID; | ||
Identity mNode; | ||
uint64_t mPartsCount; |
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.
uint64_t mPartsCount; | |
uint64_t mPartsCount{}; |
StaticString<cLogIDLen> mLogID; | ||
Identity mNode; | ||
uint64_t mPartsCount; | ||
uint64_t mPart; |
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.
uint64_t mPart; | |
uint64_t mPart{}; |
*/ | ||
struct NodeStateInfo { | ||
Time mTimestamp {}; | ||
bool mProvisioned = false; |
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.
bool mProvisioned = false; | |
bool mProvisioned {}; |
ResourceInfoArray mResources; | ||
RuntimeInfoArray mRuntimes; | ||
NodeAttributeArray mAttrs; | ||
bool mProvisioned = false; |
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.
bool mProvisioned = false; | |
bool mProvisioned {}; |
struct PushLog { | ||
StaticString<cLogIDLen> mLogID; | ||
StaticString<cNodeIDLen> mNodeID; | ||
uint64_t mPartsCount; |
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.
uint64_t mPartsCount; | |
uint64_t mPartsCount{}; |
StaticString<cLogIDLen> mLogID; | ||
StaticString<cNodeIDLen> mNodeID; | ||
uint64_t mPartsCount; | ||
uint64_t mPart; |
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.
uint64_t mPart; | |
uint64_t mPart{}; |
Signed-off-by: Oleksandr Grytsov <[email protected]>
Signed-off-by: Oleksandr Grytsov <[email protected]>
Signed-off-by: Oleksandr Grytsov <[email protected]>
Signed-off-by: Oleksandr Grytsov <[email protected]>
Signed-off-by: Oleksandr Grytsov <[email protected]>
Signed-off-by: Oleksandr Grytsov <[email protected]>
Signed-off-by: Oleksandr Grytsov <[email protected]>
11107b4
to
d08416f
Compare
No description provided.