MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / looks_like_ndjson

Function looks_like_ndjson

tests/loadtest/tools/dashboard_parser.py:400–404  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

398
399
400def looks_like_ndjson(text: str) -> bool:
401 for line in text.splitlines()[:10]:
402 if '"type"' in line and ('"Point"' in line or '"Metric"' in line):
403 return True
404 return False
405
406
407def floor_minute(timestamp: str) -> str:

Callers 1

parse_textFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected