(text: str)
| 398 | |
| 399 | |
| 400 | def 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 | |
| 407 | def floor_minute(timestamp: str) -> str: |