Retrieving results of a chargeback model execution

This section contains the following use cases:

Use Case 10 - Retrieve the result of a specific execution

Use Case summary

Description

Retrieve result of a specific Chargeback model execution.

Method

POST

URI Pattern

chargeback/model/execution/{executionId}/result

Parameters

  • executionId: Represents the ID of the execution.

Response Body

<result>
  <ModelResult fromdate="2011-01-01 00:00:00.0" todate="2011-02-01 00:00:00.0">
    <AcbModel acbmodelid="50" name="Cost Model CM1" />
    <CostResult>
      <target>
        <AcbTarget acbtargetid="2452" name="Organization" wkldidassoc="1404906" />
      </target>
      <childCosts>
        <!-- Div Austin costs -->
        <CostResult>
          <target>
            <AcbTarget acbtargetid="2456" name="Div - Austin"
              parentTargets="Organization" wkldidassoc="1406508" />
          </target>
          <coCosts>
            <ByCOCost>
              <costobj>
                <AcbCostObject acbcostobjid="419" acbcostobjkey="BCO-OFFERING-GOLD"
                  acbcostobjtypeid="0" name="BCO-Offering-GOLD" />
              </costobj>
              <coSubkeyCosts />
            </ByCOCost>
            <ByCOCost>
              <costobj>
                <AcbCostObject acbcostobjid="415" acbcostobjkey="DB_INSTANCE"
                  acbcostobjtypeid="2" name="DB Instance"
                  parentCostObjects="BCO-Offering-GOLD" />
              </costobj>
              <coSubkeyCosts>
                <ByCOSubkeyCost acbcosubkey="ALLOCATION" subkey="ALLOCATION"
                  subkeyDetailLabel="Allocation" subkeyLabel="Allocation">
                  <COSubkeyInfo />
                  <coSubkeyVariables />
                  <EntAllocationSummary>
                    <entAllocation maxdate="2011-02-01 00:00:00.0"
                      mindate="2011-01-01 00:00:00.0" value="dbbcogold1 (100%)" />
                  </EntAllocationSummary>
                  <costs>
                    <CostValue allocpct="-1.0" consumption="480.0"
                      consunit="Inst.hour" cost="960.0" costrate="2.0"
                      duration="86400.0" maxdate="2011-02-01 00:00:00.0" mindate="2011-01-01 00:00:00.0"
                      qty="2.0" totalcost="0.0" />
                  </costs>
                </ByCOSubkeyCost>
              </coSubkeyCosts>
            </ByCOCost>
            <ByCOCost>
              <costobj>
                <AcbCostObject acbcostobjid="416" acbcostobjkey="VM_INSTANCE"
                  acbcostobjtypeid="2" name="VM Instance"
                  parentCostObjects="BCO-Offering-GOLD" />
              </costobj>
              <coSubkeyCosts>
                <ByCOSubkeyCost acbcosubkey="CPU_UTIL" subkey="CPU_UTIL"
                  subkeyDetailLabel="CPU Utilization" subkeyLabel="CPU Utilization">
                  <COSubkeyInfo />
                  <coSubkeyVariables />
                  <EntAllocationSummary>
                    <entAllocation maxdate="2011-02-01 00:00:00.0"
                      mindate="2011-01-01 00:00:00.0" value="vmbcog1" />
                    <entAllocation maxdate="2011-02-01 00:00:00.0"
                      mindate="2011-01-01 00:00:00.0" value="vmbcog2" />
                    <entAllocation maxdate="2011-02-01 00:00:00.0"
                      mindate="2011-01-01 00:00:00.0" value="vmbcog3" />
                  </EntAllocationSummary>
                  <costs>
                    <CostValue allocpct="-1.0" consumption="240.0"
                       cost="120.0" costrate="0.5"
                      duration="86400.0" maxdate="2011-02-01 00:00:00.0" mindate="2011-01-01 00:00:00.0"
                      qty="1.0" totalcost="0.0" />
                  </costs>
                </ByCOSubkeyCost>
              </coSubkeyCosts>
            </ByCOCost>
          </coCosts>
        </CostResult>
        <!-- Div Houston costs -->
        <CostResult>
          <target>
            <AcbTarget acbtargetid="2456" name="Div - Houston"
              parentTargets="Organization" wkldidassoc="1406508" />
          </target>
          <coCosts>
            <ByCOCost>
              <costobj>
                <AcbCostObject acbcostobjid="419" acbcostobjkey="BCO-OFFERING-SILVER"
                  acbcostobjtypeid="0" name="BCO-Offering-SILVER" />
              </costobj>
              <coSubkeyCosts />
            </ByCOCost>
            <ByCOCost>
              <costobj>
                <AcbCostObject acbcostobjid="416" acbcostobjkey="VM_INSTANCE"
                  acbcostobjtypeid="2" name="VM Instance"
                  parentCostObjects="BCO-Offering-SILVER" />
              </costobj>
              <coSubkeyCosts>
                <ByCOSubkeyCost acbcosubkey="CPU_UTIL" subkey="CPU_UTIL"
                  subkeyDetailLabel="CPU Utilization" subkeyLabel="CPU Utilization">
                  <COSubkeyInfo />
                  <coSubkeyVariables />
                  <EntAllocationSummary>
                    <entAllocation maxdate="2011-02-01 00:00:00.0"
                      mindate="2011-01-01 00:00:00.0" value="vmbcosh1" />
                    <entAllocation maxdate="2011-02-01 00:00:00.0"
                      mindate="2011-01-01 00:00:00.0" value="vmbcosh2" />
                  </EntAllocationSummary>
                  <costs>
                    <CostValue allocpct="-1.0" consumption="240.0"
                       cost="120.0" costrate="0.5"
                      duration="86400.0" maxdate="2011-02-01 00:00:00.0" mindate="2011-01-01 00:00:00.0"
                      qty="1.0" totalcost="0.0" />
                  </costs>
                </ByCOSubkeyCost>
              </coSubkeyCosts>
            </ByCOCost>
          </coCosts>
        </CostResult>
        <!-- Div Pune costs -->
        <CostResult>
          <target>
            <AcbTarget acbtargetid="2456" name="Div - Pune"
              parentTargets="Organization" wkldidassoc="1406508" />
          </target>
          <coCosts>
            <ByCOCost>
              <costobj>
                <AcbCostObject acbcostobjid="419" acbcostobjkey="BCO-OFFERING-SILVER"
                  acbcostobjtypeid="0" name="BCO-Offering-SILVER" />
              </costobj>
              <coSubkeyCosts />
            </ByCOCost>
            <ByCOCost>
              <costobj>
                <AcbCostObject acbcostobjid="416" acbcostobjkey="VM_INSTANCE"
                  acbcostobjtypeid="2" name="VM Instance"
                  parentCostObjects="BCO-Offering-SILVER" />
              </costobj>
              <coSubkeyCosts>
                <ByCOSubkeyCost acbcosubkey="CPU_UTIL" subkey="CPU_UTIL"
                  subkeyDetailLabel="CPU Utilization" subkeyLabel="CPU Utilization">
                  <COSubkeyInfo />
                  <coSubkeyVariables />
                  <EntAllocationSummary>
                    <entAllocation maxdate="2011-02-01 00:00:00.0"
                      mindate="2011-01-01 00:00:00.0" value="vmbcosp1" />
                    <entAllocation maxdate="2011-02-01 00:00:00.0"
                      mindate="2011-01-01 00:00:00.0" value="vmbcosp2" />
                    <entAllocation maxdate="2011-02-01 00:00:00.0"
                      mindate="2011-01-01 00:00:00.0" value="vmbcosp3" />
                  </EntAllocationSummary>
                  <costs>
                    <CostValue allocpct="-1.0" consumption="240.0"
                       cost="120.0" costrate="0.5"
                      duration="86400.0" maxdate="2011-02-01 00:00:00.0" mindate="2011-01-01 00:00:00.0"
                      qty="1.0" totalcost="0.0" />
                  </costs>
                </ByCOSubkeyCost>
              </coSubkeyCosts>
            </ByCOCost>
          </coCosts>
        </CostResult>

      </childCosts>
    </CostResult>
  </ModelResult>
</result>

Use Case 11 - Retrieve the last calculated result of a model

Use Case summary 

Description

Retrieve the last calculated result of a Chargeback model.

Method

POST

URI Pattern

chargeback/model/{modelid}/lastresult

Parameters

  • modelid: Represents the ID of the chargeback model.

Response Body

<result>
  <ModelResult fromdate="2011-01-01 00:00:00.0" todate="2011-02-01 00:00:00.0">
    <AcbModel acbmodelid="50" name="Cost Model CM1" />
    <CostResult>
      <target>
        <AcbTarget acbtargetid="2452" name="Organization" wkldidassoc="1404906" />
      </target>
      <childCosts>
        <!-- Div Austin costs -->
        <CostResult>
          <target>
            <AcbTarget acbtargetid="2456" name="Div - Austin"
              parentTargets="Organization" wkldidassoc="1406508" />
          </target>
          <coCosts>
            <ByCOCost>
              <costobj>
                <AcbCostObject acbcostobjid="419" acbcostobjkey="BCO-OFFERING-GOLD"
                  acbcostobjtypeid="0" name="BCO-Offering-GOLD" />
              </costobj>
              <coSubkeyCosts />
            </ByCOCost>
            <ByCOCost>
              <costobj>
                <AcbCostObject acbcostobjid="415" acbcostobjkey="DB_INSTANCE"
                  acbcostobjtypeid="2" name="DB Instance"
                  parentCostObjects="BCO-Offering-GOLD" />
              </costobj>
              <coSubkeyCosts>
                <ByCOSubkeyCost acbcosubkey="ALLOCATION" subkey="ALLOCATION"
                  subkeyDetailLabel="Allocation" subkeyLabel="Allocation">
                  <COSubkeyInfo />
                  <coSubkeyVariables />
                  <EntAllocationSummary>
                    <entAllocation maxdate="2011-02-01 00:00:00.0"
                      mindate="2011-01-01 00:00:00.0" value="dbbcogold1 (100%)" />
                  </EntAllocationSummary>
                  <costs>
                    <CostValue allocpct="-1.0" consumption="480.0"
                      consunit="Inst.hour" cost="960.0" costrate="2.0"
                      duration="86400.0" maxdate="2011-02-01 00:00:00.0" mindate="2011-01-01 00:00:00.0"
                      qty="2.0" totalcost="0.0" />
                  </costs>
                </ByCOSubkeyCost>
              </coSubkeyCosts>
            </ByCOCost>
            <ByCOCost>
              <costobj>
                <AcbCostObject acbcostobjid="416" acbcostobjkey="VM_INSTANCE"
                  acbcostobjtypeid="2" name="VM Instance"
                  parentCostObjects="BCO-Offering-GOLD" />
              </costobj>
              <coSubkeyCosts>
                <ByCOSubkeyCost acbcosubkey="CPU_UTIL" subkey="CPU_UTIL"
                  subkeyDetailLabel="CPU Utilization" subkeyLabel="CPU Utilization">
                  <COSubkeyInfo />
                  <coSubkeyVariables />
                  <EntAllocationSummary>
                    <entAllocation maxdate="2011-02-01 00:00:00.0"
                      mindate="2011-01-01 00:00:00.0" value="vmbcog1" />
                    <entAllocation maxdate="2011-02-01 00:00:00.0"
                      mindate="2011-01-01 00:00:00.0" value="vmbcog2" />
                    <entAllocation maxdate="2011-02-01 00:00:00.0"
                      mindate="2011-01-01 00:00:00.0" value="vmbcog3" />
                  </EntAllocationSummary>
                  <costs>
                    <CostValue allocpct="-1.0" consumption="240.0"
                       cost="120.0" costrate="0.5"
                      duration="86400.0" maxdate="2011-02-01 00:00:00.0" mindate="2011-01-01 00:00:00.0"
                      qty="1.0" totalcost="0.0" />
                  </costs>
                </ByCOSubkeyCost>
              </coSubkeyCosts>
            </ByCOCost>
          </coCosts>
        </CostResult>
        <!-- Div Houston costs -->
        <CostResult>
          <target>
            <AcbTarget acbtargetid="2456" name="Div - Houston"
              parentTargets="Organization" wkldidassoc="1406508" />
          </target>
          <coCosts>
            <ByCOCost>
              <costobj>
                <AcbCostObject acbcostobjid="419" acbcostobjkey="BCO-OFFERING-SILVER"
                  acbcostobjtypeid="0" name="BCO-Offering-SILVER" />
              </costobj>
              <coSubkeyCosts />
            </ByCOCost>
            <ByCOCost>
              <costobj>
                <AcbCostObject acbcostobjid="416" acbcostobjkey="VM_INSTANCE"
                  acbcostobjtypeid="2" name="VM Instance"
                  parentCostObjects="BCO-Offering-SILVER" />
              </costobj>
              <coSubkeyCosts>
                <ByCOSubkeyCost acbcosubkey="CPU_UTIL" subkey="CPU_UTIL"
                  subkeyDetailLabel="CPU Utilization" subkeyLabel="CPU Utilization">
                  <COSubkeyInfo />
                  <coSubkeyVariables />
                  <EntAllocationSummary>
                    <entAllocation maxdate="2011-02-01 00:00:00.0"
                      mindate="2011-01-01 00:00:00.0" value="vmbcosh1" />
                    <entAllocation maxdate="2011-02-01 00:00:00.0"
                      mindate="2011-01-01 00:00:00.0" value="vmbcosh2" />
                  </EntAllocationSummary>
                  <costs>
                    <CostValue allocpct="-1.0" consumption="240.0"
                       cost="120.0" costrate="0.5"
                      duration="86400.0" maxdate="2011-02-01 00:00:00.0" mindate="2011-01-01 00:00:00.0"
                      qty="1.0" totalcost="0.0" />
                  </costs>
                </ByCOSubkeyCost>
              </coSubkeyCosts>
            </ByCOCost>
          </coCosts>
        </CostResult>
        <!-- Div Pune costs -->
        <CostResult>
          <target>
            <AcbTarget acbtargetid="2456" name="Div - Pune"
              parentTargets="Organization" wkldidassoc="1406508" />
          </target>
          <coCosts>
            <ByCOCost>
              <costobj>
                <AcbCostObject acbcostobjid="419" acbcostobjkey="BCO-OFFERING-SILVER"
                  acbcostobjtypeid="0" name="BCO-Offering-SILVER" />
              </costobj>
              <coSubkeyCosts />
            </ByCOCost>
            <ByCOCost>
              <costobj>
                <AcbCostObject acbcostobjid="416" acbcostobjkey="VM_INSTANCE"
                  acbcostobjtypeid="2" name="VM Instance"
                  parentCostObjects="BCO-Offering-SILVER" />
              </costobj>
              <coSubkeyCosts>
                <ByCOSubkeyCost acbcosubkey="CPU_UTIL" subkey="CPU_UTIL"
                  subkeyDetailLabel="CPU Utilization" subkeyLabel="CPU Utilization">
                  <COSubkeyInfo />
                  <coSubkeyVariables />
                  <EntAllocationSummary>
                    <entAllocation maxdate="2011-02-01 00:00:00.0"
                      mindate="2011-01-01 00:00:00.0" value="vmbcosp1" />
                    <entAllocation maxdate="2011-02-01 00:00:00.0"
                      mindate="2011-01-01 00:00:00.0" value="vmbcosp2" />
                    <entAllocation maxdate="2011-02-01 00:00:00.0"
                      mindate="2011-01-01 00:00:00.0" value="vmbcosp3" />
                  </EntAllocationSummary>
                  <costs>
                    <CostValue allocpct="-1.0" consumption="240.0"
                       cost="120.0" costrate="0.5"
                      duration="86400.0" maxdate="2011-02-01 00:00:00.0" mindate="2011-01-01 00:00:00.0"
                      qty="1.0" totalcost="0.0" />
                  </costs>
                </ByCOSubkeyCost>
              </coSubkeyCosts>
            </ByCOCost>
          </coCosts>
        </CostResult>

      </childCosts>
    </CostResult>
  </ModelResult>
</result>
Was this page helpful? Yes No Submitting... Thank you

Comments