ArmCostManagementModelFactory.CostManagementViewData Method
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 CostManagementViewData.
public static Azure.ResourceManager.CostManagement.CostManagementViewData CostManagementViewData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string displayName = default, Azure.Core.ResourceIdentifier scope = default, DateTimeOffset? createdOn = default, DateTimeOffset? modifiedOn = default, string dateRange = default, string currency = default, Azure.ResourceManager.CostManagement.Models.ViewChartType? chart = default, Azure.ResourceManager.CostManagement.Models.AccumulatedType? accumulated = default, Azure.ResourceManager.CostManagement.Models.ViewMetricType? metric = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.CostManagement.Models.ViewKpiProperties> kpis = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.CostManagement.Models.ViewPivotProperties> pivots = default, Azure.ResourceManager.CostManagement.Models.ViewReportType? typePropertiesQueryType = default, Azure.ResourceManager.CostManagement.Models.ReportTimeframeType? timeframe = default, Azure.ResourceManager.CostManagement.Models.ReportConfigTimePeriod timePeriod = default, Azure.ResourceManager.CostManagement.Models.ReportConfigDataset dataSet = default, bool? includeMonetaryCommitment = default, Azure.ETag? eTag = default);
static member CostManagementViewData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * Azure.Core.ResourceIdentifier * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * string * string * Nullable<Azure.ResourceManager.CostManagement.Models.ViewChartType> * Nullable<Azure.ResourceManager.CostManagement.Models.AccumulatedType> * Nullable<Azure.ResourceManager.CostManagement.Models.ViewMetricType> * seq<Azure.ResourceManager.CostManagement.Models.ViewKpiProperties> * seq<Azure.ResourceManager.CostManagement.Models.ViewPivotProperties> * Nullable<Azure.ResourceManager.CostManagement.Models.ViewReportType> * Nullable<Azure.ResourceManager.CostManagement.Models.ReportTimeframeType> * Azure.ResourceManager.CostManagement.Models.ReportConfigTimePeriod * Azure.ResourceManager.CostManagement.Models.ReportConfigDataset * Nullable<bool> * Nullable<Azure.ETag> -> Azure.ResourceManager.CostManagement.CostManagementViewData
Public Shared Function CostManagementViewData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional displayName As String = Nothing, Optional scope As ResourceIdentifier = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing, Optional modifiedOn As Nullable(Of DateTimeOffset) = Nothing, Optional dateRange As String = Nothing, Optional currency As String = Nothing, Optional chart As Nullable(Of ViewChartType) = Nothing, Optional accumulated As Nullable(Of AccumulatedType) = Nothing, Optional metric As Nullable(Of ViewMetricType) = Nothing, Optional kpis As IEnumerable(Of ViewKpiProperties) = Nothing, Optional pivots As IEnumerable(Of ViewPivotProperties) = Nothing, Optional typePropertiesQueryType As Nullable(Of ViewReportType) = Nothing, Optional timeframe As Nullable(Of ReportTimeframeType) = Nothing, Optional timePeriod As ReportConfigTimePeriod = Nothing, Optional dataSet As ReportConfigDataset = Nothing, Optional includeMonetaryCommitment As Nullable(Of Boolean) = Nothing, Optional eTag As Nullable(Of ETag) = Nothing) As CostManagementViewData
Parameters
The id.
- name
- String
The name.
- resourceType
- ResourceType
The resourceType.
- systemData
- SystemData
The systemData.
- displayName
- String
User input name of the view. Required.
- scope
- ResourceIdentifier
Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.
- createdOn
- Nullable<DateTimeOffset>
Date the user created this view.
- modifiedOn
- Nullable<DateTimeOffset>
Date when the user last modified this view.
- dateRange
- String
Date range of the current view.
- currency
- String
Currency of the current view.
- chart
- Nullable<ViewChartType>
Chart type of the main view in Cost Analysis. Required.
- accumulated
- Nullable<AccumulatedType>
Show costs accumulated over time.
- metric
- Nullable<ViewMetricType>
Metric to use when displaying costs.
- kpis
- IEnumerable<ViewKpiProperties>
List of KPIs to show in Cost Analysis UI.
- pivots
- IEnumerable<ViewPivotProperties>
Configuration of 3 sub-views in the Cost Analysis UI.
- typePropertiesQueryType
- Nullable<ViewReportType>
The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.
- timeframe
- Nullable<ReportTimeframeType>
The time frame for pulling data for the report. If custom, then a specific time period must be provided.
- timePeriod
- ReportConfigTimePeriod
Has time period for pulling data for the report.
- dataSet
- ReportConfigDataset
Has definition for data in this report config.
eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
Returns
A new CostManagementViewData instance for mocking.
Applies to
Azure SDK for .NET