Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
reddyashish committed Feb 14, 2024
1 parent d164575 commit 4431524
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/DynamoMLDataPipeline/DynamoMLDataPipeline.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static string ConstructCreateAssetRequestBody(string schemaNamespaceId, s
parameterComponent.AddParameterFromSchema("<Add dynamo host>", hostSchema);
parameterComponent.AddParameterFromSchema("<Add dynamo version>", dynamoVersionSchema);

Analytics.TrackEvent(Actions.DynamoMLDataPipieline, Categories.DynamoMLDataPipelineOperations, "Host", Convert.ToInt32(hostSchema));
Analytics.TrackEvent(Actions.SendWorkspaceToDynamoML, Categories.DynamoMLDataPipelineOperations, "Host", Convert.ToInt32(hostSchema));

// Construct the base component
var baseComponent = new BaseComponent("DynamoGraphLog");
Expand Down Expand Up @@ -186,7 +186,7 @@ static void DataExchangeToForge(string filePath, RestClient client, string token
// from the response - these will be consumed by the following API calls.
ExchangeContainerId = exchangeRequestResponseBody["id"].Value;

Analytics.TrackEvent(Actions.DynamoMLDataPipieline, Categories.DynamoMLDataPipelineOperations, "ExchangeContainerID", Convert.ToInt32(ExchangeContainerId));
Analytics.TrackEvent(Actions.SendWorkspaceToDynamoML, Categories.DynamoMLDataPipelineOperations, "ExchangeContainerID", Convert.ToInt32(ExchangeContainerId));

var schemaNamespaceId = exchangeRequestResponseBody["components"]["data"]["insert"]["autodesk.data:exchange.source.default-1.0.0"]["source"]["String"]["id"].Value;

Expand Down Expand Up @@ -229,7 +229,7 @@ static void DataExchangeToForge(string filePath, RestClient client, string token
}
LogMessage.Info("Binary upload started!");

Analytics.TrackEvent(Actions.DynamoMLDataPipieline, Categories.DynamoMLDataPipelineOperations, "BinarySize", base64CompressedBuffer.Length);
Analytics.TrackEvent(Actions.SendWorkspaceToDynamoML, Categories.DynamoMLDataPipelineOperations, "BinarySize", base64CompressedBuffer.Length);

// STEP 4b: FINISH BINARY UPLOAD -------------------
// Finish uploading binary assets: Let the system know that the binary assets have been uploaded and are ready for processing.
Expand Down Expand Up @@ -316,7 +316,7 @@ public void DataExchange(string filePath)
// Stage collectionId created for Dynamo
CollectionId = ProductionCollectionID;

Analytics.TrackEvent(Actions.DynamoMLDataPipieline, Categories.DynamoMLDataPipelineOperations, "CollectionID", Convert.ToInt32(CollectionId));
Analytics.TrackEvent(Actions.SendWorkspaceToDynamoML, Categories.DynamoMLDataPipelineOperations, "CollectionID", Convert.ToInt32(CollectionId));
//ExchangeContainerId = "";

var forgeClient = new RestClient(ProductionClientUrl);
Expand Down
4 changes: 2 additions & 2 deletions src/NodeServices/IAnalyticsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,9 @@ public enum Actions
Export,

/// <summary>
/// Dynamo ML data pipeline.
/// Sends workspace info to Dynamo ML.
/// </summary>
DynamoMLDataPipieline
SendWorkspaceToDynamoML
}

public enum HeartBeatType
Expand Down

0 comments on commit 4431524

Please sign in to comment.