예제 #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");
        }
예제 #2
0
        public static void Track(this SpeckleApiClient speckleApiClient, string trackName)
        {
            if (!LocalContext.GetTelemetrySettings())
            {
                return;
            }

            speckleApiClient.TrackWithMetaMatomo(trackName, "");
            speckleApiClient.TrackWithMetaAppInsights(trackName);
            speckleApiClient.TrackWithMetaAmplitude(trackName);
        }