Home > Cloud Cruiser 3 > REST API reference > Budgets and alerts > XML schemas for budgets and alerts > budgetAndUsage schema

budgetAndUsage schema

Table of contents
No headers

This XML schema describes a budget and the usage against it for a particular customer during a particular period.

<xs:element name="budgetAndUsage" type="tns:BudgetAndUsage"/>

<xs:complexType name="BudgetAndUsage">
  <xs:sequence>
    <xs:element name="customer" type="tns:Customer"/>
    <xs:element name="accountingYear" type="xs:short"/>
    <xs:element name="accountingPeriod" type="xs:short"/>
    <xs:element name="accountingStartDate" type="ns1:Date"/>
    <xs:element name="accountingEndDate" type="ns1:Date"/>
    <xs:element name="standardAlertsEnabled" type="xs:boolean"/>
    <xs:element name="projectedAlertsEnabled" type="xs:boolean"/>
    <xs:element name="useDefaultThresholds" type="xs:boolean"/>
    <xs:element name="threshold1Percent" type="xs:short"/>
    <xs:element name="threshold2Percent" type="xs:short"/>
    <xs:element name="threshold3Percent" type="xs:short"/>
    <xs:element maxOccurs="unbounded" minOccurs="0" name="periodBudgetUsage">
      <xs:complexType>
        <xs:sequence>
          <xs:element name="budgetType" type="tns:BudgetAlertType"/>
          <xs:element name="valueType" type="tns:ValueType"/>
          <xs:element minOccurs="0" name="resource" type="tns:Resource"/>
          <xs:element minOccurs="0" name="currencyCode" type="xs:string"/>
          <xs:element name="periodBudgetValue" type="xs:double"/>
          <xs:element name="actualUsage" type="xs:double"/>
          <xs:element name="usagePercent" type="xs:short"/>
          <xs:element name="status" type="tns:AlertStatusType"/>
          <xs:element minOccurs="0" name="overBudgetAmount" type="xs:double"/>
          <xs:element minOccurs="0" name="underBudgetAmount" type="xs:double"/>
        </xs:sequence>
        <xs:attribute name="budgetId" type="xs:int"/>
      </xs:complexType>
    </xs:element>
  </xs:sequence>
</xs:complexType>
Last modified

Tags

This page has no custom tags.

Classifications

This page has no classifications.
© Copyright 2018 Hewlett Packard Enterprise Development LP