public async Task <bool> Trigger() { Console.WriteLine("[ApplicationInsightsIngestion]: Triggering ingestion"); var client = new AnalyticsDataSourceClient(); var settings = new AnalyticsDataSourceIngestionRequestSettings(_configuration); var request = new AnalyticsDataSourceIngestionRequest(settings); return(await client.RequestBlobIngestion(request)); }
public AnalyticsDataSourceIngestionRequest(AnalyticsDataSourceIngestionRequestSettings settings, int version = 1) { Ver = version; IKey = settings.Key.ToString(); Data = new Data { BaseData = new BaseData { Ver = BaseDataRequiredVersion, BlobSasUri = settings.BlobUrlWithSas, SourceName = settings.SourceId.ToString(), SourceVersion = version.ToString() } }; }