CarbonEmissionQueryFilter Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of CarbonEmissionQueryFilter.
protected CarbonEmissionQueryFilter(Azure.ResourceManager.CarbonOptimization.Models.CarbonEmissionQueryDateRange dateRange, System.Collections.Generic.IEnumerable<string> subscriptionList, System.Collections.Generic.IEnumerable<Azure.ResourceManager.CarbonOptimization.Models.CarbonEmissionScope> carbonScopeList);
new Azure.ResourceManager.CarbonOptimization.Models.CarbonEmissionQueryFilter : Azure.ResourceManager.CarbonOptimization.Models.CarbonEmissionQueryDateRange * seq<string> * seq<Azure.ResourceManager.CarbonOptimization.Models.CarbonEmissionScope> -> Azure.ResourceManager.CarbonOptimization.Models.CarbonEmissionQueryFilter
Protected Sub New (dateRange As CarbonEmissionQueryDateRange, subscriptionList As IEnumerable(Of String), carbonScopeList As IEnumerable(Of CarbonEmissionScope))
Parameters
- dateRange
- CarbonEmissionQueryDateRange
The start and end dates for carbon emissions data. Required. For ItemDetailsReport and TopItemsSummaryReport, only one month of data is supported at a time, so start and end dates should be equal within DateRange (e.g., start: 2024-06-01 and end: 2024-06-01).
- subscriptionList
- IEnumerable<String>
List of subscription IDs for which carbon emissions data is requested. Required. Each subscription ID should be in lowercase format. The max length of list is 100.
- carbonScopeList
- IEnumerable<CarbonEmissionScope>
List of carbon emission scopes. Required. Accepts one or more values from EmissionScopeEnum (e.g., Scope1, Scope2, Scope3) in list form. The output will include the total emissions for the specified scopes.
Exceptions
dateRange, subscriptionList or carbonScopeList is null.