File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
compass-data-modeling/src/store Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -204,6 +204,11 @@ export function startAnalysis(
204
204
collections,
205
205
relations : [ ] ,
206
206
} ) ;
207
+
208
+ services . track ( 'Data Modeling Diagram Created' , {
209
+ num_collections : collections . length ,
210
+ } ) ;
211
+
207
212
void services . dataModelStorage . save (
208
213
getCurrentDiagramFromState ( getState ( ) )
209
214
) ;
Original file line number Diff line number Diff line change @@ -2877,6 +2877,18 @@ type CreateIndexStrategiesDocumentationClicked = CommonEvent<{
2877
2877
} ;
2878
2878
} > ;
2879
2879
2880
+ /**
2881
+ * This event is fired when a new data modeling diagram is created
2882
+ *
2883
+ * @category Data Modeling
2884
+ */
2885
+ type DataModelingDiagramCreated = CommonEvent < {
2886
+ name : 'Data Modeling Diagram Created' ;
2887
+ payload : {
2888
+ num_collections : number ;
2889
+ } ;
2890
+ } > ;
2891
+
2880
2892
/**
2881
2893
* This event is fired when user exports data modeling diagram.
2882
2894
*
@@ -2939,6 +2951,7 @@ export type TelemetryEvent =
2939
2951
| ConnectionRemovedEvent
2940
2952
| CurrentOpShowOperationDetailsEvent
2941
2953
| DatabaseCreatedEvent
2954
+ | DataModelingDiagramCreated
2942
2955
| DeleteExportedEvent
2943
2956
| DeleteExportOpenedEvent
2944
2957
| DetailViewHideOperationDetailsEvent
You can’t perform that action at this time.
0 commit comments