nbi: `telemetry` API

6 jobs from noc-telemetry in 58 seconds (queued for 2 seconds)
latest
Status Job ID Name Coverage
  Lint
passed #42526
docker
flake8

00:00:18

passed #42530
docker
futurize

00:00:20

passed #42529
docker
pylint

00:00:19

failed #42528
docker allowed to fail
radon

00:00:19

failed #42527
docker allowed to fail
yapf

00:00:19

 
  Test
failed #42531
docker allowed to fail
test_noc

00:00:37

21.0%
 
Name Stage Failure
failed
test_noc Test
Coverage            : 21%
Coverage Statements : 20673
Coverage Missing : 16239
Coverage Excluded : 1
Uploading artifacts...
./var/coverage: found 378 matching files
./var/report: found 2 matching files
Uploading artifacts to coordinator... ok id=42531 responseStatus=201 Created token=N9cxo7Uy
ERROR: Job failed: exit code 2
failed
radon Lint
++ echo '$ if [ ! -z "$FLIST" ]; then for i in "${FLIST}" ; do (xenon --max-absolute B --max-modules B --max-average B "$i"; let x+=$?); done; fi'
$ if [ ! -z "$FLIST" ]; then for i in "${FLIST}" ; do (xenon --max-absolute B --max-modules B --max-average B "$i"; let x+=$?); done; fi
++ '[' '!' -z 'services/nbi/api/telemetry.py
services/nbi/service.py' ']'
++ for i in "${FLIST}"
++ xenon --max-absolute B --max-modules B --max-average B 'services/nbi/api/telemetry.py
services/nbi/service.py'
++ let x+=0
ERROR: Job failed: exit code 1
failed
yapf Lint
-            remote_ip, user, method, uri, status,
- referer, agent,
- 1000.0 * request.request_time()
+ "%s %s - \"%s %s\" HTTP/1.1 %s \"%s\" %s %.2fms", remote_ip, user, method, uri, status,
+ referer, agent, 1000.0 * request.request_time()
)
metrics["api_requests", ("api", handler.name)] += 1

ERROR: Job failed: exit code 1