CostManagementViewData Class
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.
A class representing the CostManagementView data model. States and configurations of Cost Analysis.
public class CostManagementViewData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.CostManagement.CostManagementViewData>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.CostManagement.CostManagementViewData>
type CostManagementViewData = class
inherit ResourceData
interface IJsonModel<CostManagementViewData>
interface IPersistableModel<CostManagementViewData>
Public Class CostManagementViewData
Inherits ResourceData
Implements IJsonModel(Of CostManagementViewData), IPersistableModel(Of CostManagementViewData)
- Inheritance
- Implements
Constructors
CostManagementViewData() |
Initializes a new instance of CostManagementViewData. |
Properties
Accumulated |
Show costs accumulated over time. |
Chart |
Chart type of the main view in Cost Analysis. Required. |
CreatedOn |
Date the user created this view. |
Currency |
Currency of the current view. |
DataSet |
Has definition for data in this report config. |
DateRange |
Date range of the current view. |
DisplayName |
User input name of the view. Required. |
ETag |
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. |
Id |
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. (Inherited from ResourceData) |
IncludeMonetaryCommitment |
If true, report includes monetary commitment. |
Kpis |
List of KPIs to show in Cost Analysis UI. |
Metric |
Metric to use when displaying costs. |
ModifiedOn |
Date when the user last modified this view. |
Name |
The name of the resource. (Inherited from ResourceData) |
Pivots |
Configuration of 3 sub-views in the Cost Analysis UI. |
ResourceType |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". (Inherited from ResourceData) |
Scope |
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. |
SystemData |
Azure Resource Manager metadata containing createdBy and modifiedBy information. (Inherited from ResourceData) |
Timeframe |
The time frame for pulling data for the report. If custom, then a specific time period must be provided. |
TimePeriod |
Has time period for pulling data for the report. |
TypePropertiesQueryType |
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. |
Methods
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) |
Explicit Interface Implementations
IJsonModel<CostManagementViewData>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJsonModel<CostManagementViewData>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
IPersistableModel<CostManagementViewData>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
IPersistableModel<CostManagementViewData>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistableModel<CostManagementViewData>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |
Applies to
Azure SDK for .NET