Ejemplo n.º 1
0
        /// <summary>
        /// Specify the streamObjects, otherwise we will count them automatically
        /// </summary>
        /// <param name="speckleApiClient"></param>
        /// <param name="streamObjects"></param>
        public static void StreamReceive(this SpeckleApiClient speckleApiClient, int?streamObjects = null)
        {
            int num_streamObjects = streamObjects ?? speckleApiClient.GetNumberOfObjects();

            MatomoTelemetry.TrackWithMetaMatomo(speckleApiClient, "stream", "receive", "object_num", num_streamObjects.ToString());
            speckleApiClient.TrackWithMetaAppInsights("stream-receive");
            speckleApiClient.TrackWithMetaAmplitude("stream-receive");
        }
Ejemplo n.º 2
0
 public static void TrackCustom(string trackName, Dictionary <string, double> metrics, Dictionary <string, string> properties)
 {
     if (!LocalContext.GetTelemetrySettings())
     {
         return;
     }
     AppInsightsTelemetry.TrackCustomAppInsights(trackName, metrics, properties);
     MatomoTelemetry.TrackCustomMatomo(trackName, "", "", "", properties);
     AmplitudeTelemetry.TrackCustomAmplitude(trackName, TelemetryUtilities.UserAgent, properties);
 }