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

budgets schema

Table of contents
No headers

​This XML schema describes a list of customer budgets.

<xs:complexType name="Budgets">
  <xs:sequence>
    <xs:element maxOccurs="unbounded" minOccurs="0" ref="tns:customerBudget"/>
  </xs:sequence>
  <xs:attribute name="count" type="xs:int"/>
</xs:complexType>

<xs:element name="customerBudget" type="tns:CustomerBudget"/>

<xs:complexType name="CustomerBudget">
  <xs:sequence>
    <xs:element name="customer" type="tns:Customer"/>
    <xs:element minOccurs="0" name="resource" type="tns:Resource"/>
    <xs:element name="accountingYear" type="xs:short"/>
    <xs:element name="currencyCode" type="xs:string"/>
    <xs:element name="description" type="xs:string"/>
    <xs:element name="standardAlertsEnabled" type="xs:boolean"/>
    <xs:element name="projectedAlertsEnabled" type="xs:boolean"/>
    <xs:element name="useDefaultThresholds" type="xs:boolean"/>
    <xs:element minOccurs="0" name="threshold1Percent" type="xs:short"/>
    <xs:element minOccurs="0" name="threshold2Percent" type="xs:short"/>
    <xs:element minOccurs="0" name="threshold3Percent" type="xs:short"/>
    <xs:element name="costPeriods" type="tns:BudgetPeriods"/>
    <xs:element minOccurs="0" name="unitsPeriods" type="tns:BudgetPeriods"/>
  </xs:sequence>
  <xs:attribute name="budgetId" type="xs:int"/>
  <xs:attribute name="budgetType" type="tns:BudgetAlertType" use="required"/>
</xs:complexType>

<xs:simpleType name="BudgetAlertType">
  <xs:restriction base="xs:string">
    <xs:enumeration value="COST"/>
    <xs:enumeration value="RESOURCE"/>
    <xs:enumeration value="ALL"/>
  </xs:restriction>
</xs:simpleType>

<xs:complexType name="Customer">
  <xs:attribute name="id" type="xs:int"/>
  <xs:attribute name="accountId" type="xs:string"/>
  <xs:attribute name="accountingDay" type="xs:short"/>
</xs:complexType>

<xs:complexType name="Resource">
  <xs:attribute name="headerId" type="xs:int"/>
  <xs:attribute name="resourceid" type="xs:string" use="required"/>
</xs:complexType>
Last modified

Tags

This page has no custom tags.

Classifications

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