@@ -150,6 +150,7 @@ pub enum CorrelationVersion {
150
150
#[ serde( rename_all = "camelCase" ) ]
151
151
pub struct CorrelationConfig {
152
152
pub version : CorrelationVersion ,
153
+ pub title : String ,
153
154
pub id : String ,
154
155
pub table_configs : Vec < TableConfig > ,
155
156
pub join_config : JoinConfig ,
@@ -164,6 +165,7 @@ impl CorrelationConfig {}
164
165
#[ serde( rename_all = "camelCase" ) ]
165
166
pub struct CorrelationRequest {
166
167
pub version : CorrelationVersion ,
168
+ pub title : String ,
167
169
pub table_configs : Vec < TableConfig > ,
168
170
pub join_config : JoinConfig ,
169
171
pub filter : Option < FilterQuery > ,
@@ -175,6 +177,7 @@ impl From<CorrelationRequest> for CorrelationConfig {
175
177
fn from ( val : CorrelationRequest ) -> Self {
176
178
Self {
177
179
version : val. version ,
180
+ title : val. title ,
178
181
id : get_hash ( Utc :: now ( ) . timestamp_micros ( ) . to_string ( ) . as_str ( ) ) ,
179
182
table_configs : val. table_configs ,
180
183
join_config : val. join_config ,
@@ -189,6 +192,7 @@ impl CorrelationRequest {
189
192
pub fn generate_correlation_config ( self , id : String ) -> CorrelationConfig {
190
193
CorrelationConfig {
191
194
version : self . version ,
195
+ title : self . title ,
192
196
id,
193
197
table_configs : self . table_configs ,
194
198
join_config : self . join_config ,
0 commit comments