-
-
Notifications
You must be signed in to change notification settings - Fork 51
add a diff field for monitoring usages #71
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: master
Are you sure you want to change the base?
Conversation
@benzino77 |
I have no experience using More information about CEL-SPEC is available here: https://github.com/google/cel-spec |
@benzino77 In my opinion,add a diff field in the response body for some data collectors is much more valuable,as it can reduce client work. |
I'm not super convinced to that idea. The |
So far,the database version is number.It is safe to use Number type to calculate the diff between local and remote. |
Still it can give "NaN" in case of situation when letters are added to the version: > const a = "1234567"
undefined
> const b = "1234567a"
undefined
> const c = Number(a) - Number (b)
undefined
> c
NaN I do believe that having that logic on "consumer" side is better approach. |
if you insist on the type of version,how about the below response.
in this case,if diff is true,it means the version need to be checked. |
it is designed to monitor if the cvd is uptodate.In my cases promethues + Blackbox-exporter.
in other words,if the value of diff is not 0,it means the cvd is required to check in time in case of expiration.