-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
FrontDoorExperimentResource.cs
73 lines (68 loc) · 4.21 KB
/
FrontDoorExperimentResource.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Collections.Generic;
using System.Text;
using Azure.ResourceManager.FrontDoor.Models;
using System.Threading.Tasks;
using System.Threading;
namespace Azure.ResourceManager.FrontDoor
{
public partial class FrontDoorExperimentResource
{
/// <summary>
/// Gets a Timeseries for a given Experiment
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}/Timeseries</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>Reports_GetTimeseries</description>
/// </item>
/// </list>
/// </summary>
/// <param name="startOn"> The start DateTime of the Timeseries in UTC. </param>
/// <param name="endOn"> The end DateTime of the Timeseries in UTC. </param>
/// <param name="aggregationInterval"> The aggregation interval of the Timeseries. </param>
/// <param name="timeSeriesType"> The type of Timeseries. </param>
/// <param name="endpoint"> The specific endpoint. </param>
/// <param name="country"> The country associated with the Timeseries. Values are country ISO codes as specified here- https://www.iso.org/iso-3166-country-codes.html. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
public virtual async Task<Response<FrontDoorTimeSeriesInfo>> GetTimeSeriesReportAsync(DateTimeOffset startOn, DateTimeOffset endOn, FrontDoorTimeSeriesAggregationInterval aggregationInterval, FrontDoorTimeSeriesType timeSeriesType, string endpoint = null, string country = null, CancellationToken cancellationToken = default)
{
FrontDoorExperimentResourceGetTimeSeriesReportOptions options = new FrontDoorExperimentResourceGetTimeSeriesReportOptions(startOn, endOn, aggregationInterval, timeSeriesType);
options.Endpoint = endpoint;
options.Country = country;
return await GetTimeSeriesReportAsync(options, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Gets a Timeseries for a given Experiment
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}/Timeseries</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>Reports_GetTimeseries</description>
/// </item>
/// </list>
/// </summary>
/// <param name="startOn"> The start DateTime of the Timeseries in UTC. </param>
/// <param name="endOn"> The end DateTime of the Timeseries in UTC. </param>
/// <param name="aggregationInterval"> The aggregation interval of the Timeseries. </param>
/// <param name="timeSeriesType"> The type of Timeseries. </param>
/// <param name="endpoint"> The specific endpoint. </param>
/// <param name="country"> The country associated with the Timeseries. Values are country ISO codes as specified here- https://www.iso.org/iso-3166-country-codes.html. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
public virtual Response<FrontDoorTimeSeriesInfo> GetTimeSeriesReport(DateTimeOffset startOn, DateTimeOffset endOn, FrontDoorTimeSeriesAggregationInterval aggregationInterval, FrontDoorTimeSeriesType timeSeriesType, string endpoint = null, string country = null, CancellationToken cancellationToken = default)
{
FrontDoorExperimentResourceGetTimeSeriesReportOptions options = new FrontDoorExperimentResourceGetTimeSeriesReportOptions(startOn, endOn, aggregationInterval, timeSeriesType);
options.Endpoint = endpoint;
options.Country = country;
return GetTimeSeriesReport(options, cancellationToken);
}
}
}