- Notifications
You must be signed in to change notification settings - Fork6.3k
API v3 / v2 returns fractional values for absolute dimensions — how to get raw integer samples?#21171
-
SummaryI’m developing a custom However, when I query the data via Netdata’s API ( [1760926238, [689,0,0,1]],[1760926237, [687,0,0,1]],[1760926236, [686.0026,0,0,1]],[1760926235, [686,0,0,1]],[1760926234, [685,0,0,1]],[1760926233, [684,0,0,1]],[1760926232, [683,0,0,1]],[1760926231, [681,0,0,1]],[1760926230, [680.002,0,0,1]],[1760926229, [680,0,0,1]],[1760926228, [679,0,0,1]], frombases.FrameworkServices.SimpleServiceimportSimpleServiceupdate_every=1priority=2ORDER= ['test']CHARTS= {'test': {'options': [None,'Bandwidth','bytes/s','traffic','test.test','line'],'lines': [ ['test','test','absolute'] ] }}classService(SimpleService):def__init__(self,configuration=None,name=None):SimpleService.__init__(self,configuration=configuration,name=name)self.counter=0defcheck(self):returnTruedef_get_data(self):self.counter+=1data= {'test':int(self.counter) }returndata Expected BehaviorFor absolute dimensions, I would like the API to return exact raw integer samples Actual Behavior Occasionally small fractional offsets appear in the API results,
|
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 0 comments
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment