main
ts 111 lines 2.43 KB
Raw
1 import type { CollectResult } from "@/types/flow.d"
2
3 export const flow_results = [
4 {
5 id: "sedrftg",
6 client_id: "client_12345",
7 session_id: "session_abc123",
8 request: {
9 creator: "user123",
10 user_data: "some_user_data",
11 client_id: "client_12345",
12 flow_id: "flow_xyz789",
13 urgent: true,
14 artifacts: ["artifact_1", "artifact_2"],
15 specs: [
16 {
17 artifactstring: "artifact_spec_1",
18 parameters: [
19 {
20 key: "param1",
21 value: "value1",
22 comment: "Parameter 1"
23 },
24 {
25 key: "param2",
26 value: "value2",
27 comment: "Parameter 2"
28 }
29 ]
30 }
31 ],
32 cpu_limit: 4,
33 iops_limit: 1000,
34 progress_timeout: 30,
35 timeout: 600,
36 max_rows: 1000,
37 max_upload_bytes: 10485760,
38 trace_freq_sec: 60,
39 allow_custom_overrides: true,
40 log_batch_time: 5,
41 compiled_collector_args: ["arg1", "arg2"],
42 ops_per_second: 100
43 },
44 backtrace: "no_errors_backtrace",
45 create_time: 1732726302185900,
46 start_time: 173272630218590,
47 active_time: 1732726302185900,
48 total_uploaded_files: 5,
49 total_expected_uploaded_bytes: 5242880,
50 total_uploaded_bytes: 4194304,
51 total_collected_rows: 2000,
52 total_logs: 15,
53 total_requests: 10,
54 outstanding_requests: 2,
55 next_response_id: 11,
56 execution_duration: 3600,
57 state: "running",
58 status: "active",
59 artifacts_with_results: ["artifact_result_1", "artifact_result_2"],
60 query_stats: [
61 {
62 status: "complete",
63 error_message: "",
64 backtrace: "",
65 duration: 200,
66 last_active: 1697885000,
67 first_active: 1697884800,
68 names_with_response: ["name1", "name2"],
69 Artifact: "artifact_1",
70 log_rows: 50,
71 uploaded_files: 3,
72 uploaded_bytes: 2097152,
73 expected_uploaded_bytes: 3145728,
74 result_rows: 500,
75 query_id: 1,
76 total_queries: 3
77 },
78 {
79 status: "in_progress",
80 error_message: "",
81 backtrace: "",
82 duration: 150,
83 last_active: 1697885100,
84 first_active: 1697884900,
85 names_with_response: ["name3", "name4"],
86 Artifact: "artifact_2",
87 log_rows: 30,
88 uploaded_files: 2,
89 uploaded_bytes: 1048576,
90 expected_uploaded_bytes: 2097152,
91 result_rows: 300,
92 query_id: 2,
93 total_queries: 5
94 }
95 ],
96 uploaded_files: ["file1.txt", "file2.txt"],
97 user_notified: true,
98 logs: ["log1", "log2", "log3"],
99 dirty: false,
100 total_loads: 20
101 }
102 ]
103
104 export const collect_result: CollectResult[] = [
105 {
106 ___id: "2345678",
107 uno: 1,
108 due: Date.now(),
109 tre: "tre"
110 }
111 ]