コード例 #1
0
        /// <summary>Snippet for RunRealtimeReportAsync</summary>
        public async Task RunRealtimeReportRequestObjectAsync()
        {
            // Snippet: RunRealtimeReportAsync(RunRealtimeReportRequest, CallSettings)
            // Additional: RunRealtimeReportAsync(RunRealtimeReportRequest, CancellationToken)
            // Create client
            AlphaAnalyticsDataClient alphaAnalyticsDataClient = await AlphaAnalyticsDataClient.CreateAsync();

            // Initialize request argument(s)
            RunRealtimeReportRequest request = new RunRealtimeReportRequest
            {
                Property           = "",
                Dimensions         = { new Dimension(), },
                Metrics            = { new Metric(), },
                Limit              = 0L,
                DimensionFilter    = new FilterExpression(),
                MetricFilter       = new FilterExpression(),
                MetricAggregations =
                {
                    MetricAggregation.Unspecified,
                },
                OrderBys            = { new OrderBy(), },
                ReturnPropertyQuota = false,
            };
            // Make the request
            RunRealtimeReportResponse response = await alphaAnalyticsDataClient.RunRealtimeReportAsync(request);

            // End snippet
        }
コード例 #2
0
        /// <summary>Snippet for RunReportAsync</summary>
        public async Task RunReportRequestObjectAsync()
        {
            // Snippet: RunReportAsync(RunReportRequest, CallSettings)
            // Additional: RunReportAsync(RunReportRequest, CancellationToken)
            // Create client
            AlphaAnalyticsDataClient alphaAnalyticsDataClient = await AlphaAnalyticsDataClient.CreateAsync();

            // Initialize request argument(s)
            RunReportRequest request = new RunReportRequest
            {
                Entity             = new Entity(),
                Dimensions         = { new Dimension(), },
                Metrics            = { new Metric(), },
                DateRanges         = { new DateRange(), },
                Offset             = 0L,
                Limit              = 0L,
                MetricAggregations =
                {
                    MetricAggregation.Unspecified,
                },
                DimensionFilter     = new FilterExpression(),
                MetricFilter        = new FilterExpression(),
                OrderBys            = { new OrderBy(), },
                CurrencyCode        = "",
                CohortSpec          = new CohortSpec(),
                KeepEmptyRows       = false,
                ReturnPropertyQuota = false,
            };
            // Make the request
            RunReportResponse response = await alphaAnalyticsDataClient.RunReportAsync(request);

            // End snippet
        }
        /// <summary>Snippet for GetMetadataAsync</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 GetMetadataAsync()
        {
            // Create client
            AlphaAnalyticsDataClient alphaAnalyticsDataClient = await AlphaAnalyticsDataClient.CreateAsync();

            // Initialize request argument(s)
            string name = "properties/[PROPERTY]/metadata";
            // Make the request
            Metadata response = await alphaAnalyticsDataClient.GetMetadataAsync(name);
        }
        /// <summary>Snippet for GetMetadataAsync</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 GetMetadataResourceNamesAsync()
        {
            // Create client
            AlphaAnalyticsDataClient alphaAnalyticsDataClient = await AlphaAnalyticsDataClient.CreateAsync();

            // Initialize request argument(s)
            MetadataName name = MetadataName.FromProperty("[PROPERTY]");
            // Make the request
            Metadata response = await alphaAnalyticsDataClient.GetMetadataAsync(name);
        }
コード例 #5
0
        /// <summary>Snippet for GetMetadataAsync</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 GetMetadataRequestObjectAsync()
        {
            // Create client
            AlphaAnalyticsDataClient alphaAnalyticsDataClient = await AlphaAnalyticsDataClient.CreateAsync();

            // Initialize request argument(s)
            GetMetadataRequest request = new GetMetadataRequest
            {
                MetadataName = MetadataName.FromProperty("[PROPERTY]"),
            };
            // Make the request
            Metadata response = await alphaAnalyticsDataClient.GetMetadataAsync(request);
        }
        /// <summary>Snippet for BatchRunReportsAsync</summary>
        public async Task BatchRunReportsAsync_RequestObject()
        {
            // Snippet: BatchRunReportsAsync(BatchRunReportsRequest,CallSettings)
            // Additional: BatchRunReportsAsync(BatchRunReportsRequest,CancellationToken)
            // Create client
            AlphaAnalyticsDataClient alphaAnalyticsDataClient = await AlphaAnalyticsDataClient.CreateAsync();

            // Initialize request argument(s)
            BatchRunReportsRequest request = new BatchRunReportsRequest();
            // Make the request
            BatchRunReportsResponse response = await alphaAnalyticsDataClient.BatchRunReportsAsync(request);

            // End snippet
        }
        /// <summary>Snippet for RunPivotReportAsync</summary>
        public async Task RunPivotReportAsync_RequestObject()
        {
            // Snippet: RunPivotReportAsync(RunPivotReportRequest,CallSettings)
            // Additional: RunPivotReportAsync(RunPivotReportRequest,CancellationToken)
            // Create client
            AlphaAnalyticsDataClient alphaAnalyticsDataClient = await AlphaAnalyticsDataClient.CreateAsync();

            // Initialize request argument(s)
            RunPivotReportRequest request = new RunPivotReportRequest();
            // Make the request
            RunPivotReportResponse response = await alphaAnalyticsDataClient.RunPivotReportAsync(request);

            // End snippet
        }
コード例 #8
0
        /// <summary>Snippet for GetMetadataAsync</summary>
        public async Task GetMetadataResourceNamesAsync()
        {
            // Snippet: GetMetadataAsync(MetadataName, CallSettings)
            // Additional: GetMetadataAsync(MetadataName, CancellationToken)
            // Create client
            AlphaAnalyticsDataClient alphaAnalyticsDataClient = await AlphaAnalyticsDataClient.CreateAsync();

            // Initialize request argument(s)
            MetadataName name = MetadataName.FromProperty("[PROPERTY]");
            // Make the request
            Metadata response = await alphaAnalyticsDataClient.GetMetadataAsync(name);

            // End snippet
        }
コード例 #9
0
        /// <summary>Snippet for GetMetadataAsync</summary>
        public async Task GetMetadataAsync()
        {
            // Snippet: GetMetadataAsync(string, CallSettings)
            // Additional: GetMetadataAsync(string, CancellationToken)
            // Create client
            AlphaAnalyticsDataClient alphaAnalyticsDataClient = await AlphaAnalyticsDataClient.CreateAsync();

            // Initialize request argument(s)
            string name = "properties/[PROPERTY]/metadata";
            // Make the request
            Metadata response = await alphaAnalyticsDataClient.GetMetadataAsync(name);

            // End snippet
        }
        /// <summary>Snippet for GetUniversalMetadataAsync</summary>
        public async Task GetUniversalMetadataRequestObjectAsync()
        {
            // Snippet: GetUniversalMetadataAsync(GetUniversalMetadataRequest, CallSettings)
            // Additional: GetUniversalMetadataAsync(GetUniversalMetadataRequest, CancellationToken)
            // Create client
            AlphaAnalyticsDataClient alphaAnalyticsDataClient = await AlphaAnalyticsDataClient.CreateAsync();

            // Initialize request argument(s)
            GetUniversalMetadataRequest request = new GetUniversalMetadataRequest {
            };
            // Make the request
            UniversalMetadata response = await alphaAnalyticsDataClient.GetUniversalMetadataAsync(request);

            // End snippet
        }
コード例 #11
0
        /// <summary>Snippet for GetMetadataAsync</summary>
        public async Task GetMetadataRequestObjectAsync()
        {
            // Snippet: GetMetadataAsync(GetMetadataRequest, CallSettings)
            // Additional: GetMetadataAsync(GetMetadataRequest, CancellationToken)
            // Create client
            AlphaAnalyticsDataClient alphaAnalyticsDataClient = await AlphaAnalyticsDataClient.CreateAsync();

            // Initialize request argument(s)
            GetMetadataRequest request = new GetMetadataRequest
            {
                MetadataName = MetadataName.FromProperty("[PROPERTY]"),
            };
            // Make the request
            Metadata response = await alphaAnalyticsDataClient.GetMetadataAsync(request);

            // End snippet
        }
        /// <summary>Snippet for BatchRunReportsAsync</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 BatchRunReportsRequestObjectAsync()
        {
            // Create client
            AlphaAnalyticsDataClient alphaAnalyticsDataClient = await AlphaAnalyticsDataClient.CreateAsync();

            // Initialize request argument(s)
            BatchRunReportsRequest request = new BatchRunReportsRequest
            {
                Entity   = new Entity(),
                Requests =
                {
                    new RunReportRequest(),
                },
            };
            // Make the request
            BatchRunReportsResponse response = await alphaAnalyticsDataClient.BatchRunReportsAsync(request);
        }
コード例 #13
0
        /// <summary>Snippet for RunPivotReportAsync</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 RunPivotReportRequestObjectAsync()
        {
            // Create client
            AlphaAnalyticsDataClient alphaAnalyticsDataClient = await AlphaAnalyticsDataClient.CreateAsync();

            // Initialize request argument(s)
            RunPivotReportRequest request = new RunPivotReportRequest
            {
                Entity              = new Entity(),
                Dimensions          = { new Dimension(), },
                Metrics             = { new Metric(), },
                DimensionFilter     = new FilterExpression(),
                MetricFilter        = new FilterExpression(),
                Pivots              = { new Pivot(), },
                DateRanges          = { new DateRange(), },
                CurrencyCode        = "",
                CohortSpec          = new CohortSpec(),
                KeepEmptyRows       = false,
                ReturnPropertyQuota = false,
            };
            // Make the request
            RunPivotReportResponse response = await alphaAnalyticsDataClient.RunPivotReportAsync(request);
        }