CloudHealth · Capability

CloudHealth REST API — Reports

CloudHealth REST API — Reports. 1 operations. Lead operation: Cost history report. Self-contained Naftiko capability covering one Cloudhealth business surface.

Run with Naftiko CloudhealthReports

What You Can Do

GET
Costhistoryreport — Cost history report
/v1/olap-reports/cost/history

MCP Tools

cost-history-report

Cost history report

read-only idempotent

Capability Spec

cloudhealth-reports.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: CloudHealth REST API — Reports
  description: 'CloudHealth REST API — Reports. 1 operations. Lead operation: Cost history report. Self-contained Naftiko
    capability covering one Cloudhealth business surface.'
  tags:
  - Cloudhealth
  - Reports
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CLOUDHEALTH_API_KEY: CLOUDHEALTH_API_KEY
capability:
  consumes:
  - type: http
    namespace: cloudhealth-reports
    baseUri: https://chapi.cloudhealthtech.com
    description: CloudHealth REST API — Reports business capability. Self-contained, no shared references.
    resources:
    - name: olap_reports-cost-history
      path: /olap_reports/cost/history
      operations:
      - name: costhistoryreport
        method: GET
        description: Cost history report
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dimensions
          in: query
          type: string
        - name: measures
          in: query
          type: string
        - name: interval
          in: query
          type: string
    authentication:
      type: bearer
      token: '{{env.CLOUDHEALTH_API_KEY}}'
  exposes:
  - type: rest
    namespace: cloudhealth-reports-rest
    port: 8080
    description: REST adapter for CloudHealth REST API — Reports. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/olap-reports/cost/history
      name: olap-reports-cost-history
      description: REST surface for olap_reports-cost-history.
      operations:
      - method: GET
        name: costhistoryreport
        description: Cost history report
        call: cloudhealth-reports.costhistoryreport
        with:
          dimensions: rest.dimensions
          measures: rest.measures
          interval: rest.interval
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: cloudhealth-reports-mcp
    port: 9090
    transport: http
    description: MCP adapter for CloudHealth REST API — Reports. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: cost-history-report
      description: Cost history report
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cloudhealth-reports.costhistoryreport
      with:
        dimensions: tools.dimensions
        measures: tools.measures
        interval: tools.interval
      outputParameters:
      - type: object
        mapping: $.