Download src/models/Logs.ts from lynfera/api: direct link, hf CLI and curl.
- Browser
- Download file 681 Bytes
-
https://huggingface.co/spaces/lynfera/api/resolve/main/src/models/Logs.ts
- Command line
-
hf download hf://spaces/lynfera/api/src/models/Logs.ts
-
curl -L -o Logs.ts https://huggingface.co/spaces/lynfera/api/resolve/main/src/models/Logs.ts
681 Bytes
| export interface ILogs { | |
| event_id: string; | |
| info: string; | |
| log: string; | |
| report_time: Date | number; | |
| deployment_id: string; | |
| project_id: string; | |
| sequence: number; | |
| } | |
| // Table query | |
| /** | |
| * | |
| * | |
| * | |
| * CREATE TABLE log_events | |
| ( | |
| event_id UUID DEFAULT generateUUIDv4(), | |
| deployment_id String, | |
| project_id String, | |
| log String CODEC(ZSTD(6)), | |
| info String, | |
| sequence Int16, | |
| report_time DateTime64(3, 'UTC'), | |
| ) | |
| ENGINE = MergeTree | |
| PARTITION BY toYYYYMM(report_time) | |
| ORDER BY (deployment_id, report_time, sequence) | |
| TTL | |
| toDateTime(report_time) + INTERVAL 25 DAY, | |
| toDateTime(report_time) + INTERVAL 5 DAY DELETE WHERE info = 'DECOR' | |
| SETTINGS index_granularity = 8192; | |
| * | |
| * | |
| * | |
| */ | |