/// <summary>Snippet for CalculateStats</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void CalculateStats() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) string location = "projects/[PROJECT]/locations/[LOCATION]"; // Make the request CalculateStatsResponse response = contactCenterInsightsClient.CalculateStats(location); }
/// <summary>Snippet for CalculateStats</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void CalculateStatsResourceNames() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) LocationName location = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); // Make the request CalculateStatsResponse response = contactCenterInsightsClient.CalculateStats(location); }
/// <summary>Snippet for CalculateStatsAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task CalculateStatsAsync() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = await ContactCenterInsightsClient.CreateAsync(); // Initialize request argument(s) string location = "projects/[PROJECT]/locations/[LOCATION]"; // Make the request CalculateStatsResponse response = await contactCenterInsightsClient.CalculateStatsAsync(location); }
/// <summary>Snippet for CalculateStats</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void CalculateStatsRequestObject() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) CalculateStatsRequest request = new CalculateStatsRequest { LocationAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), Filter = "", }; // Make the request CalculateStatsResponse response = contactCenterInsightsClient.CalculateStats(request); }