@@ -161,7 +161,7 @@ static public string ConvertDynToBase64(string filePath)
161
161
byte [ ] compressedBuffer = DataUtilities . Compress ( stringBuffer ) ;
162
162
163
163
string base64CompressedBuffer = Convert . ToBase64String ( compressedBuffer ) ;
164
- LogMessage . Info ( $ "BASE64 string buffer has { base64CompressedBuffer . Length } bytes") ;
164
+ LogMessage . Info ( $ "BASE64 string buffer has { base64CompressedBuffer . Length } bytes") ;
165
165
166
166
// Write to file for testing purposes
167
167
File . WriteAllText ( savePath , base64CompressedBuffer ) ;
@@ -184,6 +184,8 @@ static void DataExchangeToForge(string filePath, RestClient client, string token
184
184
// from the response - these will be consumed by the following API calls.
185
185
ExchangeContainerId = exchangeRequestResponseBody [ "id" ] . Value ;
186
186
187
+ Analytics . TrackEvent ( Actions . Export , Categories . DynamoMLDataPipelineOperations , "ExchangeContainerID" , Convert . ToInt32 ( ExchangeContainerId ) ) ;
188
+
187
189
var schemaNamespaceId = exchangeRequestResponseBody [ "components" ] [ "data" ] [ "insert" ] [ "autodesk.data:exchange.source.default-1.0.0" ] [ "source" ] [ "String" ] [ "id" ] . Value ;
188
190
189
191
// STEP 2: START A FULLFILLMENT ---------------------
@@ -225,6 +227,8 @@ static void DataExchangeToForge(string filePath, RestClient client, string token
225
227
}
226
228
LogMessage . Info ( "Binary upload started!" ) ;
227
229
230
+ Analytics . TrackEvent ( Actions . Export , Categories . DynamoMLDataPipelineOperations , "BinarySize" , base64CompressedBuffer . Length ) ;
231
+
228
232
// STEP 4b: FINISH BINARY UPLOAD -------------------
229
233
// Finish uploading binary assets: Let the system know that the binary assets have been uploaded and are ready for processing.
230
234
// This call can be made for a single binary or a batch of 25 binaries.
@@ -310,6 +314,7 @@ public void DataExchange(string filePath)
310
314
// Stage collectionId created for Dynamo
311
315
CollectionId = ProductionCollectionID ;
312
316
317
+ Analytics . TrackEvent ( Actions . Export , Categories . DynamoMLDataPipelineOperations , "CollectionID" , Convert . ToInt32 ( CollectionId ) ) ;
313
318
//ExchangeContainerId = "";
314
319
315
320
var forgeClient = new RestClient ( ProductionClientUrl ) ;
0 commit comments