@azure/arm-costmanagement package
Classes
| CostManagementClient |
Interfaces
| Alert |
An individual alert. |
| AlertProperties |
Alert properties. |
| AlertPropertiesDefinition |
defines the type of alert |
| AlertPropertiesDetails |
Alert details |
| AlertsDismissOptionalParams |
Optional parameters. |
| AlertsGetOptionalParams |
Optional parameters. |
| AlertsListExternalOptionalParams |
Optional parameters. |
| AlertsListOptionalParams |
Optional parameters. |
| AlertsOperations |
Interface representing a Alerts operations. |
| AlertsResult |
Result of alerts. |
| AllSavingsBenefitDetails |
Benefit recommendation details. |
| AllSavingsList |
The list of all benefit recommendations with the recommendation details. |
| ArmErrorResponse |
Common error response for all Azure Resource Manager APIs to return error details for failed operations. |
| AsyncOperationStatusProperties |
Object representing the report url and valid until date of the async report generated. |
| BenefitRecommendationModel |
benefit plan recommendation details. |
| BenefitRecommendationProperties |
The properties of the benefit recommendations. |
| BenefitRecommendationsListOptionalParams |
Optional parameters. |
| BenefitRecommendationsOperations |
Interface representing a BenefitRecommendations operations. |
| BenefitResource |
The benefit resource model definition. |
| BenefitUtilizationSummariesListByBillingAccountIdOptionalParams |
Optional parameters. |
| BenefitUtilizationSummariesListByBillingProfileIdOptionalParams |
Optional parameters. |
| BenefitUtilizationSummariesListBySavingsPlanIdOptionalParams |
Optional parameters. |
| BenefitUtilizationSummariesListBySavingsPlanOrderOptionalParams |
Optional parameters. |
| BenefitUtilizationSummariesOperationStatus |
Status of a benefit utilization summaries report. Provides Async Benefit Utilization Summaries Request input, status, and report sas url. |
| BenefitUtilizationSummariesOperations |
Interface representing a BenefitUtilizationSummaries operations. |
| BenefitUtilizationSummariesRequest |
Properties of an async benefit utilization summaries request. |
| BenefitUtilizationSummary |
Benefit utilization summary resource. |
| BenefitUtilizationSummaryProperties |
The properties of a benefit utilization summary. |
| BlobInfo |
The blob information generated by this operation. |
| Budget |
A budget resource. |
| BudgetComparisonExpression |
The comparison expression to be used in the budgets. |
| BudgetFilter |
May be used to filter budgets by user-specified dimensions and/or tags. Supported for CategoryType(s): Cost, ReservationUtilization. |
| BudgetFilterProperties |
The Dimensions or Tags to filter a budget by. Supported for CategoryType(s): Cost, ReservationUtilization. |
| BudgetProperties |
The properties of the budget. |
| BudgetTimePeriod |
The time period that defines the active period of the budget. The budget will evaluate data on or after the startDate and will expire on the endDate. Supported for CategoryType(s): Cost, ReservationUtilization. Required for CategoryType(s): Cost, ReservationUtilization. |
| BudgetsCreateOrUpdateOptionalParams |
Optional parameters. |
| BudgetsDeleteOptionalParams |
Optional parameters. |
| BudgetsGetOptionalParams |
Optional parameters. |
| BudgetsListOptionalParams |
Optional parameters. |
| BudgetsOperations |
Interface representing a Budgets operations. |
| CheckNameAvailabilityRequest |
The check availability request body. |
| CheckNameAvailabilityResponse |
The check availability result. |
| CommonExportProperties |
The common properties of the export. |
| CostAllocationProportion |
Target resources and allocation |
| CostAllocationResource |
Common values for resources for cost allocation |
| CostAllocationRuleCheckNameAvailabilityRequest |
The cost allocation rule check name availability request |
| CostAllocationRuleCheckNameAvailabilityResponse |
The cost allocation rule check name availability response |
| CostAllocationRuleDefinition |
The cost allocation rule model definition |
| CostAllocationRuleDetails |
Resource details of the cost allocation rule |
| CostAllocationRuleProperties |
The properties of a cost allocation rule |
| CostAllocationRulesCheckNameAvailabilityOptionalParams |
Optional parameters. |
| CostAllocationRulesCreateOrUpdateOptionalParams |
Optional parameters. |
| CostAllocationRulesDeleteOptionalParams |
Optional parameters. |
| CostAllocationRulesGetOptionalParams |
Optional parameters. |
| CostAllocationRulesListOptionalParams |
Optional parameters. |
| CostAllocationRulesOperations |
Interface representing a CostAllocationRules operations. |
| CostDetailsOperationResults |
The result of the long running operation for cost details Api. |
| CostDetailsTimePeriod |
The start and end date for pulling data for the cost detailed report. API only allows data to be pulled for 1 month or less and no older than 13 months. |
| CostManagementClientOptionalParams |
Optional parameters for the client. |
| CostManagementOperation |
A Cost management REST API operation. |
| CostManagementProxyResource |
The Resource model definition. |
| CostManagementResource |
The Resource model definition. |
| CurrentSpend |
The current amount of cost which is being tracked for a budget. Supported for CategoryType(s): Cost. |
| Dimension |
List of Dimension. |
| DimensionProperties |
Dimension properties. |
| DimensionsListByExternalCloudProviderTypeOptionalParams |
Optional parameters. |
| DimensionsListOptionalParams |
Optional parameters. |
| DimensionsOperations |
Interface representing a Dimensions operations. |
| DismissAlertPayload |
The request payload to update an alert |
| DownloadURL |
The URL to download the generated report. |
| ErrorAdditionalInfo |
The resource management error additional info. |
| ErrorDetail |
The error detail. |
| ErrorDetails |
The details of the error. |
| ErrorDetailsWithNestedDetails |
The details of the error. |
| ErrorResponse |
Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. \n\nSome Error responses: \n\n * 429 TooManyRequests - Request is throttled. Retry after waiting for the time specified in the "x-ms-ratelimit-microsoft.consumption-retry-after" header. \n\n * 503 ServiceUnavailable - Service is temporarily unavailable. Retry after waiting for the time specified in the "Retry-After" header. |
| ErrorResponseWithNestedDetails |
Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. Some Error responses:
|
| Export |
An export resource. |
| ExportDataset |
The definition for data in the export. |
| ExportDatasetConfiguration |
This is on path to deprecation and will not be supported going forward. |
| ExportDefinition |
The definition of an export. |
| ExportDeliveryDestination |
This represents the blob storage account location where exports of costs will be delivered. There are two ways to configure the destination. The approach recommended for most customers is to specify the resourceId of the storage account. This requires a one-time registration of the account's subscription with the Microsoft.CostManagementExports resource provider in order to give Cost Management services access to the storage. When creating an export in the Azure portal this registration is performed automatically but API users may need to register the subscription explicitly (for more information see https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-supported-services ). Another way to configure the destination is available ONLY to Partners with a Microsoft Partner Agreement plan who are global admins of their billing account. These Partners, instead of specifying the resourceId of a storage account, can specify the storage account name along with a SAS token for the account. This allows exports of costs to a storage account in any tenant. The SAS token should be created for the blob service with Service/Container/Object resource types and with Read/Write/Delete/List/Add/Create permissions (for more information see https://docs.microsoft.com/en-us/azure/cost-management-billing/costs/export-cost-data-storage-account-sas-key ). |
| ExportDeliveryInfo |
The delivery information associated with a export. |
| ExportExecutionListResult |
Result of listing the run history of an export. |
| ExportListResult |
Result of listing exports. It contains a list of available exports in the scope provided. |
| ExportProperties |
The properties of the export. |
| ExportRecurrencePeriod |
The start and end date for recurrence schedule. |
| ExportRun |
An export run. |
| ExportRunProperties |
The properties of the export run. |
| ExportRunRequest |
The export run request. |
| ExportSchedule |
The schedule associated with the export. |
| ExportSuspensionContext |
The properties of the export run. This is not populated currently. |
| ExportTimePeriod |
The date range for data in the export. This should only be specified with timeFrame set to 'Custom'. The maximum date range is 1 calendar month. |
| ExportsCreateOrUpdateOptionalParams |
Optional parameters. |
| ExportsDeleteOptionalParams |
Optional parameters. |
| ExportsExecuteOptionalParams |
Optional parameters. |
| ExportsGetExecutionHistoryOptionalParams |
Optional parameters. |
| ExportsGetOptionalParams |
Optional parameters. |
| ExportsListOptionalParams |
Optional parameters. |
| ExportsOperations |
Interface representing a Exports operations. |
| ExtensionResource |
The base extension resource. |
| FileDestination |
Destination of the view data. This is optional. Currently only CSV format is supported. |
| FilterItems |
Will contain the filter name and value to operate on. This is currently only supported for Export Definition type of ReservationRecommendations. |
| ForecastAggregation |
The aggregation expression to be used in the forecast. |
| ForecastColumn |
Forecast column properties |
| ForecastComparisonExpression |
The comparison expression to be used in the forecast. |
| ForecastDataset |
The definition of data present in the forecast. |
| ForecastDatasetConfiguration |
The configuration of dataset in the forecast. |
| ForecastDefinition |
The definition of a forecast. |
| ForecastExternalCloudProviderUsageOptionalParams |
Optional parameters. |
| ForecastFilter |
The filter expression to be used in the export. |
| ForecastOperations |
Interface representing a Forecast operations. |
| ForecastProperties |
Forecast properties |
| ForecastResult |
Result of forecast. It contains all columns listed under groupings and aggregation. |
| ForecastSpend |
The forecasted cost which is being tracked for a budget. Supported for CategoryType(s): Cost. |
| ForecastTimePeriod |
Has time period for pulling data for the forecast. |
| ForecastUsageOptionalParams |
Optional parameters. |
| GenerateBenefitUtilizationSummariesReportGenerateByBillingAccountOptionalParams |
Optional parameters. |
| GenerateBenefitUtilizationSummariesReportGenerateByBillingProfileOptionalParams |
Optional parameters. |
| GenerateBenefitUtilizationSummariesReportGenerateByReservationIdOptionalParams |
Optional parameters. |
| GenerateBenefitUtilizationSummariesReportGenerateByReservationOrderIdOptionalParams |
Optional parameters. |
| GenerateBenefitUtilizationSummariesReportGenerateBySavingsPlanIdOptionalParams |
Optional parameters. |
| GenerateBenefitUtilizationSummariesReportGenerateBySavingsPlanOrderIdOptionalParams |
Optional parameters. |
| GenerateBenefitUtilizationSummariesReportOperations |
Interface representing a GenerateBenefitUtilizationSummariesReport operations. |
| GenerateCostDetailsReportCreateOperationOptionalParams |
Optional parameters. |
| GenerateCostDetailsReportErrorResponse |
Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. Some Error responses:
|
| GenerateCostDetailsReportGetOperationResultsOptionalParams |
Optional parameters. |
| GenerateCostDetailsReportOperations |
Interface representing a GenerateCostDetailsReport operations. |
| GenerateCostDetailsReportRequestDefinition |
The definition of a cost detailed report. |
| GenerateDetailedCostReportCreateOperationOptionalParams |
Optional parameters. |
| GenerateDetailedCostReportDefinition |
The definition of a cost detailed report. |
| GenerateDetailedCostReportErrorResponse |
Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. Some Error responses:
|
| GenerateDetailedCostReportOperationResult |
The result of the long running operation for cost detailed report. |
| GenerateDetailedCostReportOperationResultsGetOptionalParams |
Optional parameters. |
| GenerateDetailedCostReportOperationResultsOperations |
Interface representing a GenerateDetailedCostReportOperationResults operations. |
| GenerateDetailedCostReportOperationStatusGetOptionalParams |
Optional parameters. |
| GenerateDetailedCostReportOperationStatusOperations |
Interface representing a GenerateDetailedCostReportOperationStatus operations. |
| GenerateDetailedCostReportOperationStatuses |
The status of the long running operation for cost detailed report. |
| GenerateDetailedCostReportOperations |
Interface representing a GenerateDetailedCostReport operations. |
| GenerateDetailedCostReportTimePeriod |
The start and end date for pulling data for the cost detailed report. |
| GenerateReservationDetailsReportByBillingAccountIdOptionalParams |
Optional parameters. |
| GenerateReservationDetailsReportByBillingProfileIdOptionalParams |
Optional parameters. |
| GenerateReservationDetailsReportOperations |
Interface representing a GenerateReservationDetailsReport operations. |
| IncludedQuantityUtilizationSummary |
Included Quantity utilization summary resource. |
| IncludedQuantityUtilizationSummaryProperties |
Included Quantity utilization summary properties. |
| KpiProperties |
Each KPI must contain a 'type' and 'enabled' key. |
| MCAPriceSheetProperties |
The properties of the price sheet. |
| Notification |
The notification associated with a budget. Supported for CategoryType(s): Cost, ReservationUtilization. |
| NotificationProperties |
The properties of the scheduled action notification. |
| Operation |
Details of a REST API operation, returned from the Resource Provider Operations API |
| OperationDisplay |
Localized display information for an operation. |
| OperationStatus |
The status of the long running operation. |
| OperationsListOptionalParams |
Optional parameters. |
| OperationsOperations |
Interface representing a Operations operations. |
| PageSettings |
Options for the byPage method |
| PagedAsyncIterableIterator |
An interface that allows async iterable iteration both to completion and by page. |
| PivotProperties |
Each pivot must contain a 'type' and 'name'. |
| PriceSheetDownloadByBillingAccountOptionalParams |
Optional parameters. |
| PriceSheetDownloadByBillingProfileOptionalParams |
Optional parameters. |
| PriceSheetDownloadByInvoiceOptionalParams |
Optional parameters. |
| PriceSheetOperations |
Interface representing a PriceSheet operations. |
| PricesheetDownloadProperties |
The URL to download the generated report. |
| ProxyResource |
The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location |
| QueryAggregation |
The aggregation expression to be used in the query. |
| QueryColumn |
QueryColumn properties |
| QueryComparisonExpression |
The comparison expression to be used in the query. |
| QueryDataset |
The definition of data present in the query. |
| QueryDatasetConfiguration |
The configuration of dataset in the query. |
| QueryDefinition |
The definition of a query. |
| QueryFilter |
The filter expression to be used in the export. |
| QueryGrouping |
The group by expression to be used in the query. |
| QueryOperations |
Interface representing a Query operations. |
| QueryProperties |
Query properties |
| QueryResult |
Result of query. It contains all columns listed under groupings and aggregation. |
| QueryTimePeriod |
The start and end date for pulling data for the query. |
| QueryUsageByExternalCloudProviderTypeOptionalParams |
Optional parameters. |
| QueryUsageOptionalParams |
Optional parameters. |
| RecommendationUsageDetails |
On-demand charges between firstConsumptionDate and lastConsumptionDate that were used for computing benefit recommendations. |
| ReportConfigAggregation |
The aggregation expression to be used in the report. |
| ReportConfigComparisonExpression |
The comparison expression to be used in the report. |
| ReportConfigDataset |
The definition of data present in the report. |
| ReportConfigDatasetConfiguration |
The configuration of dataset in the report. |
| ReportConfigDefinition |
The definition of a report config. |
| ReportConfigFilter |
The filter expression to be used in the report. |
| ReportConfigGrouping |
The group by expression to be used in the report. |
| ReportConfigSorting |
The order by expression to be used in the report. |
| ReportConfigTimePeriod |
The start and end date for pulling data for the report. |
| ReportManifest |
The manifest of the report generated by the operation. |
| ReportURL |
The URL to download the generated report. |
| RequestContext |
The context of the Cost Details request. |
| Resource |
Common fields that are returned in the response for all Azure Resource Manager resources |
| RestorePollerOptions | |
| SavingsPlanUtilizationSummary |
Savings plan utilization summary resource. |
| SavingsPlanUtilizationSummaryProperties |
Savings plan utilization summary properties. |
| ScheduleProperties |
The properties of the schedule. |
| ScheduledAction |
Scheduled action definition. |
| ScheduledActionProperties |
The properties of the scheduled action. |
| ScheduledActionsCheckNameAvailabilityByScopeOptionalParams |
Optional parameters. |
| ScheduledActionsCheckNameAvailabilityOptionalParams |
Optional parameters. |
| ScheduledActionsCreateOrUpdateByScopeOptionalParams |
Optional parameters. |
| ScheduledActionsCreateOrUpdateOptionalParams |
Optional parameters. |
| ScheduledActionsDeleteByScopeOptionalParams |
Optional parameters. |
| ScheduledActionsDeleteOptionalParams |
Optional parameters. |
| ScheduledActionsGetByScopeOptionalParams |
Optional parameters. |
| ScheduledActionsGetOptionalParams |
Optional parameters. |
| ScheduledActionsListByScopeOptionalParams |
Optional parameters. |
| ScheduledActionsListOptionalParams |
Optional parameters. |
| ScheduledActionsOperations |
Interface representing a ScheduledActions operations. |
| ScheduledActionsRunByScopeOptionalParams |
Optional parameters. |
| ScheduledActionsRunOptionalParams |
Optional parameters. |
| Setting |
Setting definition. |
| SettingsCreateOrUpdateByScopeOptionalParams |
Optional parameters. |
| SettingsDeleteByScopeOptionalParams |
Optional parameters. |
| SettingsGetByScopeOptionalParams |
Optional parameters. |
| SettingsListOptionalParams |
Optional parameters. |
| SettingsListResult |
Setting list result. It contains a list of settings. |
| SettingsOperations |
Interface representing a Settings operations. |
| SharedScopeBenefitRecommendationProperties |
The properties of the benefit recommendation when scope is 'Shared'. |
| SimplePollerLike |
A simple poller that can be used to poll a long running operation. |
| SingleScopeBenefitRecommendationProperties |
The properties of the benefit recommendations when scope is 'Single'. |
| SourceCostAllocationResource |
Source resources for cost allocation |
| Status |
The status of the long running operation. |
| SystemAssignedServiceIdentity |
Managed service identity (either system assigned, or none) |
| SystemData |
Metadata pertaining to creation and last modification of the resource. |
| TagInheritanceProperties |
The properties of the tag inheritance setting. |
| TagInheritanceSetting |
Tag Inheritance Setting definition. |
| TargetCostAllocationResource |
Target resources for cost allocation. |
| View |
States and configurations of Cost Analysis. |
| ViewProperties |
The properties of the view. |
| ViewsCreateOrUpdateByScopeOptionalParams |
Optional parameters. |
| ViewsCreateOrUpdateOptionalParams |
Optional parameters. |
| ViewsDeleteByScopeOptionalParams |
Optional parameters. |
| ViewsDeleteOptionalParams |
Optional parameters. |
| ViewsGetByScopeOptionalParams |
Optional parameters. |
| ViewsGetOptionalParams |
Optional parameters. |
| ViewsListByScopeOptionalParams |
Optional parameters. |
| ViewsListOptionalParams |
Optional parameters. |
| ViewsOperations |
Interface representing a Views operations. |
Type Aliases
| AccumulatedType |
Show costs accumulated over time. Known values supported by the servicetrue |
| ActionType |
Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. Known values supported by the serviceInternal: Actions are for internal-only APIs. |
| AlertCategory |
Alert category Known values supported by the serviceCost |
| AlertCriteria |
Criteria that triggered alert Known values supported by the serviceCostThresholdExceeded |
| AlertOperator |
operator used to compare currentSpend with amount Known values supported by the serviceNone |
| AlertSource |
Source of alert Known values supported by the servicePreset |
| AlertStatus |
alert status Known values supported by the serviceNone |
| AlertTimeGrainType |
Type of timegrain cadence Known values supported by the serviceNone |
| AlertType |
type of alert Known values supported by the serviceBudget |
| AzureSupportedClouds |
The supported values for cloud setting as a string literal type |
| BenefitKind |
Kind/type of the benefit. Known values supported by the serviceIncludedQuantity: Benefit is IncludedQuantity. |
| BenefitRecommendationPropertiesUnion |
Alias for BenefitRecommendationPropertiesUnion |
| BenefitUtilizationSummaryReportSchema |
The CSV file from the reportUrl and secondaryReportUrl blob link will consist of the following columns of benefit utilization data. UtilizedPercentage will be 0 for savings plans reports and non data bricks reservations. Utilization percentages will be 0 for data bricks reservations. Known values supported by the serviceKind |
| BenefitUtilizationSummaryUnion |
Alias for BenefitUtilizationSummaryUnion |
| BudgetNotificationOperatorType |
The comparison operator. Supported for CategoryType(s): Cost, ReservationUtilization. Supported operators for CategoryType: Cost
Supported operators for CategoryType: ReservationUtilization
Known values supported by the serviceEqualTo: Notification will be triggered if the evaluated cost is the same as threshold value. Note: It’s not recommended to use this OperatorType as there’s low chance of cost being exactly the same as threshold value, leading to missing of your alert. This OperatorType will be deprecated in future. Supported for CategoryType(s): Cost. Supported for CategoryType(s): Cost. Supported for CategoryType(s): Cost. Supported for CategoryType(s): ReservationUtilization. |
| BudgetOperatorType |
The operator to use for comparison. Known values supported by the serviceIn |
| CategoryType |
The category of the budget.
Known values supported by the serviceCost: A Budget that evaluates monetary cost of Azure resources against an amount, and alerts based on a configured notification threshold. |
| ChartType |
Chart type of the main view in Cost Analysis. Required. Known values supported by the serviceArea |
| CheckNameAvailabilityReason |
Possible reasons for a name not being available. Known values supported by the serviceInvalid: Name is invalid. |
| CompressionModeType |
Allow customers to select compress data for exports. This setting will enable destination file compression scheme at runtime. By default set to None. Gzip is for csv and snappy for parquet. Known values supported by the servicegzip |
| ContinuablePage |
An interface that describes a page of results. |
| CostAllocationPolicyType |
Method to use for allocating cost. FixedProportion indicates that cost will be split based on specified percentage values. Known values supported by the serviceFixedProportion |
| CostAllocationResourceType |
Category of resource to use for allocation. Known values supported by the serviceDimension: Indicates an Azure dimension such as a subscription id or resource group name is being used for allocation. |
| CostDetailsDataFormat |
The data format of the report Known values supported by the serviceCsv: Csv data format. |
| CostDetailsMetricType |
The type of the detailed report. By default ActualCost is provided Known values supported by the serviceActualCost: Actual cost data. |
| CostDetailsStatusType |
The status of the cost details operation Known values supported by the serviceCompleted: Operation is Completed. |
| CreatedByType |
The kind of entity that created the resource. Known values supported by the serviceUser: The entity was created by a user. |
| CultureCode |
Language in which the recipient will receive the notification, Supported for CategoryType(s): Cost, ReservationUtilization. Known values supported by the serviceen-us |
| DataOverwriteBehaviorType |
Allow customers to select overwrite data(OverwritePreviousReport) for exports. This setting will enable overwrite data for the same month in customer storage account. By default set to CreateNewReport. Known values supported by the serviceOverwritePreviousReport |
| DaysOfWeek |
Days of Week. Known values supported by the serviceMonday |
| DestinationType |
The export delivery destination type. Currently only 'AzureBlob' is supported. Known values supported by the serviceAzureBlob |
| ExecutionStatus |
The last known status of the export run. Known values supported by the serviceQueued |
| ExecutionType |
The type of the export run. Known values supported by the serviceOnDemand |
| ExportType |
The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations. Known values supported by the serviceUsage |
| ExternalCloudProviderType |
Type of ExternalCloudProviderType |
| FileFormat |
Destination of the view data. Currently only CSV format is supported. Known values supported by the serviceCsv |
| FilterItemNames |
The name of the filter. This is currently only supported for Export Definition type of ReservationRecommendations. Supported names are ['ReservationScope', 'LookBackPeriod', 'ResourceType'] Known values supported by the serviceReservationScope |
| ForecastOperatorType |
The operator to use for comparison. Known values supported by the serviceIn |
| ForecastTimeframe |
The time frame for pulling data for the forecast. Known values supported by the serviceCustom |
| ForecastType |
The type of the forecast. Known values supported by the serviceUsage |
| FormatType |
The format of the export being delivered. Known values supported by the serviceCsv |
| Frequency |
Frequency of a notification. Represents how long the notification will be silent after triggering an alert for a threshold breach. If not specified, the frequency will be set by default based on the timeGrain (Weekly when timeGrain: Last7Days, Monthly when timeGrain: Last30Days). Supported for CategoryType(s): ReservationUtilization. Known values supported by the serviceDaily: After the threshold breaches and an Alert is fired, no further alerts will be sent until the next calendar day. |
| FunctionName |
The name of the column to aggregate. Known values supported by the servicePreTaxCostUSD |
| FunctionType |
The name of the aggregation function to use. Known values supported by the serviceSum |
| GenerateDetailedCostReportMetricType |
The type of the detailed report. By default ActualCost is provided Known values supported by the serviceActualCost |
| Grain |
Grain which corresponds to value. Known values supported by the serviceHourly: Hourly grain corresponds to value per hour. |
| GrainParameter |
Type of GrainParameter |
| GranularityType |
The granularity of rows in the export. Currently 'Daily' is supported for most cases. Known values supported by the serviceDaily |
| KpiType |
KPI type (Forecast, Budget). Known values supported by the serviceForecast |
| LookBackPeriod |
The number of days used to look back. Known values supported by the serviceLast7Days: 7 days used to look back. |
| MetricType |
Metric to use when displaying costs. Known values supported by the serviceActualCost |
| OperationStatusType |
Enum representing the status of an async operation. Known values supported by the serviceRunning |
| OperatorType |
The operator to use for comparison. Known values supported by the serviceIn |
| Origin |
The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" Known values supported by the serviceuser: Indicates the operation is initiated by a user. |
| PivotType |
Data type to show in view. Known values supported by the serviceDimension |
| QueryColumnType |
The type of the column in the report. Known values supported by the serviceTagKey: The tag associated with the cost data. |
| QueryOperatorType |
The operator to use for comparison. Known values supported by the serviceIn |
| Reason |
The reason this name is not available. Known values supported by the serviceInvalid |
| RecurrenceType |
The schedule recurrence. Known values supported by the serviceDaily |
| ReportConfigSortingType |
Direction of sort. Known values supported by the serviceAscending |
| ReportGranularityType |
The granularity of rows in the report. Known values supported by the serviceDaily |
| ReportOperationStatusType |
The status of the long running operation. Known values supported by the serviceInProgress |
| ReportTimeframeType |
The time frame for pulling data for the report. If custom, then a specific time period must be provided. Known values supported by the serviceWeekToDate |
| ReportType |
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. Known values supported by the serviceUsage |
| ReservationReportSchema |
The CSV file from the reportUrl blob link consists of reservation usage data with the following schema at daily granularity Known values supported by the serviceInstanceFlexibilityGroup |
| RuleStatus |
Current status of the rule. Known values supported by the serviceNotActive: Rule is saved but not used to allocate costs. |
| ScheduleFrequency |
Frequency of the schedule. Known values supported by the serviceDaily: Cost analysis data will be emailed every day. |
| ScheduledActionKind |
Kind of the scheduled action. Known values supported by the serviceEmail: Cost analysis data will be emailed. |
| ScheduledActionStatus |
Status of the scheduled action. Known values supported by the serviceEnabled: Scheduled action is saved and will be run. |
| Scope |
Kind of the recommendation scope. Known values supported by the serviceSingle: Single scope recommendation. |
| SettingType |
Type of SettingType |
| SettingUnion |
Alias for SettingUnion |
| SettingsKind |
Specifies the kind of settings. Known values supported by the servicetaginheritance |
| StatusType |
The status of the export's schedule. If 'Inactive', the export's schedule is paused. To enable export set the status to be Active and then make a PUT request. Known values supported by the serviceActive |
| SystemAssignedServiceIdentityType |
Type of managed service identity (either system assigned, or none). Known values supported by the serviceNone: No managed system identity. |
| Term |
Grain which corresponds to value. Known values supported by the serviceP1Y: Benefit term is 1 year. |
| ThresholdType |
The type of threshold. Supported for CategoryType(s): Cost. Known values supported by the serviceActual: Actual costs budget alerts notify when the actual accrued cost exceeds the allocated budget. |
| TimeGrainType |
The time covered by a budget. Tracking of the amount will be reset based on the time grain. Supported for CategoryType(s): Cost, ReservationUtilization. Supported timeGrainTypes for CategoryType: Cost
*only supported for Web Direct customers. Supported timeGrainTypes for CategoryType: ReservationUtilization
Required for CategoryType(s): Cost, ReservationUtilization. Known values supported by the serviceMonthly: The budget will track costs in the current calendar month against the amount. Supported for CategoryType: Cost only. Supported for CategoryType: Cost only. Supported for CategoryType: Cost only. Supported for CategoryType: Cost and Web Direct customers only. Supported for CategoryType: Cost and Web Direct customers only. Supported for CategoryType: Cost and Web Direct customers only. Supported for CategoryType: ReservationUtilization only. Supported for CategoryType: ReservationUtilization only. |
| TimeframeType |
The time frame for pulling data for the export. If custom, then a specific time period must be provided. Known values supported by the serviceMonthToDate |
| WeeksOfMonth |
Weeks of month. Known values supported by the serviceFirst |
Enums
| AzureClouds |
An enum to describe Azure Cloud environments. |
| KnownAccumulatedType |
Show costs accumulated over time. |
| KnownActionType |
Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. |
| KnownAlertCategory |
Alert category |
| KnownAlertCriteria |
Criteria that triggered alert |
| KnownAlertOperator |
operator used to compare currentSpend with amount |
| KnownAlertSource |
Source of alert |
| KnownAlertStatus |
alert status |
| KnownAlertTimeGrainType |
Type of timegrain cadence |
| KnownAlertType |
type of alert |
| KnownBenefitKind |
Kind/type of the benefit. |
| KnownBenefitUtilizationSummaryReportSchema |
The CSV file from the reportUrl and secondaryReportUrl blob link will consist of the following columns of benefit utilization data. UtilizedPercentage will be 0 for savings plans reports and non data bricks reservations. Utilization percentages will be 0 for data bricks reservations. |
| KnownBudgetNotificationOperatorType |
The comparison operator. Supported for CategoryType(s): Cost, ReservationUtilization. Supported operators for CategoryType: Cost
Supported operators for CategoryType: ReservationUtilization
|
| KnownBudgetOperatorType |
The operator to use for comparison. |
| KnownCategoryType |
The category of the budget.
|
| KnownChartType |
Chart type of the main view in Cost Analysis. Required. |
| KnownCheckNameAvailabilityReason |
Possible reasons for a name not being available. |
| KnownCompressionModeType |
Allow customers to select compress data for exports. This setting will enable destination file compression scheme at runtime. By default set to None. Gzip is for csv and snappy for parquet. |
| KnownCostAllocationPolicyType |
Method to use for allocating cost. FixedProportion indicates that cost will be split based on specified percentage values. |
| KnownCostAllocationResourceType |
Category of resource to use for allocation. |
| KnownCostDetailsDataFormat |
The data format of the report |
| KnownCostDetailsMetricType |
The type of the detailed report. By default ActualCost is provided |
| KnownCostDetailsStatusType |
The status of the cost details operation |
| KnownCreatedByType |
The kind of entity that created the resource. |
| KnownCultureCode |
Language in which the recipient will receive the notification, Supported for CategoryType(s): Cost, ReservationUtilization. |
| KnownDataOverwriteBehaviorType |
Allow customers to select overwrite data(OverwritePreviousReport) for exports. This setting will enable overwrite data for the same month in customer storage account. By default set to CreateNewReport. |
| KnownDaysOfWeek |
Days of Week. |
| KnownDestinationType |
The export delivery destination type. Currently only 'AzureBlob' is supported. |
| KnownExecutionStatus |
The last known status of the export run. |
| KnownExecutionType |
The type of the export run. |
| KnownExportType |
The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations. |
| KnownExternalCloudProviderType |
Known values of ExternalCloudProviderType that the service accepts. |
| KnownFileFormat |
Destination of the view data. Currently only CSV format is supported. |
| KnownFilterItemNames |
The name of the filter. This is currently only supported for Export Definition type of ReservationRecommendations. Supported names are ['ReservationScope', 'LookBackPeriod', 'ResourceType'] |
| KnownForecastOperatorType |
The operator to use for comparison. |
| KnownForecastTimeframe |
The time frame for pulling data for the forecast. |
| KnownForecastType |
The type of the forecast. |
| KnownFormatType |
The format of the export being delivered. |
| KnownFrequency |
Frequency of a notification. Represents how long the notification will be silent after triggering an alert for a threshold breach. If not specified, the frequency will be set by default based on the timeGrain (Weekly when timeGrain: Last7Days, Monthly when timeGrain: Last30Days). Supported for CategoryType(s): ReservationUtilization. |
| KnownFunctionName |
The name of the column to aggregate. |
| KnownFunctionType |
The name of the aggregation function to use. |
| KnownGenerateDetailedCostReportMetricType |
The type of the detailed report. By default ActualCost is provided |
| KnownGrain |
Grain which corresponds to value. |
| KnownGrainParameter |
Known values of GrainParameter that the service accepts. |
| KnownGranularityType |
The granularity of rows in the export. Currently 'Daily' is supported for most cases. |
| KnownKpiType |
KPI type (Forecast, Budget). |
| KnownLookBackPeriod |
The number of days used to look back. |
| KnownMetricType |
Metric to use when displaying costs. |
| KnownOperationStatusType |
Enum representing the status of an async operation. |
| KnownOperatorType |
The operator to use for comparison. |
| KnownOrigin |
The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" |
| KnownPivotType |
Data type to show in view. |
| KnownQueryColumnType |
The type of the column in the report. |
| KnownQueryOperatorType |
The operator to use for comparison. |
| KnownReason |
The reason this name is not available. |
| KnownRecurrenceType |
The schedule recurrence. |
| KnownReportConfigSortingType |
Direction of sort. |
| KnownReportGranularityType |
The granularity of rows in the report. |
| KnownReportOperationStatusType |
The status of the long running operation. |
| KnownReportTimeframeType |
The time frame for pulling data for the report. If custom, then a specific time period must be provided. |
| KnownReportType |
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. |
| KnownReservationReportSchema |
The CSV file from the reportUrl blob link consists of reservation usage data with the following schema at daily granularity |
| KnownRuleStatus |
Current status of the rule. |
| KnownScheduleFrequency |
Frequency of the schedule. |
| KnownScheduledActionKind |
Kind of the scheduled action. |
| KnownScheduledActionStatus |
Status of the scheduled action. |
| KnownScope |
Kind of the recommendation scope. |
| KnownSettingType |
Known values of SettingType that the service accepts. |
| KnownSettingsKind |
Specifies the kind of settings. |
| KnownStatusType |
The status of the export's schedule. If 'Inactive', the export's schedule is paused. To enable export set the status to be Active and then make a PUT request. |
| KnownSystemAssignedServiceIdentityType |
Type of managed service identity (either system assigned, or none). |
| KnownTerm |
Grain which corresponds to value. |
| KnownThresholdType |
The type of threshold. Supported for CategoryType(s): Cost. |
| KnownTimeGrainType |
The time covered by a budget. Tracking of the amount will be reset based on the time grain. Supported for CategoryType(s): Cost, ReservationUtilization. Supported timeGrainTypes for CategoryType: Cost
*only supported for Web Direct customers. Supported timeGrainTypes for CategoryType: ReservationUtilization
Required for CategoryType(s): Cost, ReservationUtilization. |
| KnownTimeframeType |
The time frame for pulling data for the export. If custom, then a specific time period must be provided. |
| KnownVersions |
The available API versions. |
| KnownWeeksOfMonth |
Weeks of month. |
Functions
| is |
Typeguard for RestError |
| restore |
Creates a poller from the serialized state of another poller. This can be useful when you want to create pollers on a different host or a poller needs to be constructed after the original one is not in scope. |
Variables
| Rest |
A custom error type for failed pipeline requests. |
Function Details
isRestError(unknown)
Typeguard for RestError
function isRestError(e: unknown): e
Parameters
- e
-
unknown
Something caught by a catch clause.
Returns
e
restorePoller<TResponse, TResult>(CostManagementClient, string, (args: any[]) => PollerLike<OperationState<TResult>, TResult>, RestorePollerOptions<TResult, PathUncheckedResponse>)
Creates a poller from the serialized state of another poller. This can be useful when you want to create pollers on a different host or a poller needs to be constructed after the original one is not in scope.
function restorePoller<TResponse, TResult>(client: CostManagementClient, serializedState: string, sourceOperation: (args: any[]) => PollerLike<OperationState<TResult>, TResult>, options?: RestorePollerOptions<TResult, PathUncheckedResponse>): PollerLike<OperationState<TResult>, TResult>
Parameters
- client
- CostManagementClient
- serializedState
-
string
- sourceOperation
-
(args: any[]) => PollerLike<OperationState<TResult>, TResult>
- options
-
RestorePollerOptions<TResult, PathUncheckedResponse>
Returns
PollerLike<OperationState<TResult>, TResult>
Variable Details
RestError
A custom error type for failed pipeline requests.
RestError: RestErrorConstructor