AppDynamics · Capability

AppDynamics Metric and Snapshot API — Metrics

AppDynamics Metric and Snapshot API — Metrics. 2 operations. Lead operation: Get metric data for an application. Self-contained Naftiko capability covering one Appdynamics business surface.

Run with Naftiko AppdynamicsMetrics

What You Can Do

GET
Getmetricdata — Get metric data for an application
/v1/applications/{applicationid}/metric-data
GET
Listmetrichierarchy — List metric hierarchy for an application
/v1/applications/{applicationid}/metrics

MCP Tools

get-metric-data-application

Get metric data for an application

read-only idempotent
list-metric-hierarchy-application

List metric hierarchy for an application

read-only idempotent

Capability Spec

metric-and-snapshot-metrics.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: AppDynamics Metric and Snapshot API — Metrics
  description: 'AppDynamics Metric and Snapshot API — Metrics. 2 operations. Lead operation: Get metric data for an application.
    Self-contained Naftiko capability covering one Appdynamics business surface.'
  tags:
  - Appdynamics
  - Metrics
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    APPDYNAMICS_API_KEY: APPDYNAMICS_API_KEY
capability:
  consumes:
  - type: http
    namespace: metric-and-snapshot-metrics
    baseUri: https://{controller-host}/controller
    description: AppDynamics Metric and Snapshot API — Metrics business capability. Self-contained, no shared references.
    resources:
    - name: rest-applications-applicationId-metric-data
      path: /rest/applications/{applicationId}/metric-data
      operations:
      - name: getmetricdata
        method: GET
        description: Get metric data for an application
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: metric-path
          in: query
          type: string
          description: The full metric path to retrieve data for. Supports wildcard characters using the pipe delimiter for
            path levels.
          required: true
        - name: time-range-type
          in: query
          type: string
          description: The type of time range to use for the query.
          required: true
        - name: duration-in-mins
          in: query
          type: integer
          description: Duration in minutes for BEFORE_NOW and BEFORE_TIME time range types.
        - name: start-time
          in: query
          type: integer
          description: Start time in Unix epoch milliseconds for AFTER_TIME and BETWEEN_TIMES time range types.
        - name: end-time
          in: query
          type: integer
          description: End time in Unix epoch milliseconds for BEFORE_TIME and BETWEEN_TIMES time range types.
        - name: rollup
          in: query
          type: boolean
          description: When true, aggregates data into a single data point. When false, returns individual data points. Defaults
            to true.
    - name: rest-applications-applicationId-metrics
      path: /rest/applications/{applicationId}/metrics
      operations:
      - name: listmetrichierarchy
        method: GET
        description: List metric hierarchy for an application
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: metric-path
          in: query
          type: string
          description: The metric path to browse. Supports wildcard characters. If not specified, returns the top level of
            the metric hierarchy.
    authentication:
      type: bearer
      token: '{{env.APPDYNAMICS_API_KEY}}'
  exposes:
  - type: rest
    namespace: metric-and-snapshot-metrics-rest
    port: 8080
    description: REST adapter for AppDynamics Metric and Snapshot API — Metrics. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/applications/{applicationid}/metric-data
      name: rest-applications-applicationid-metric-data
      description: REST surface for rest-applications-applicationId-metric-data.
      operations:
      - method: GET
        name: getmetricdata
        description: Get metric data for an application
        call: metric-and-snapshot-metrics.getmetricdata
        with:
          metric-path: rest.metric-path
          time-range-type: rest.time-range-type
          duration-in-mins: rest.duration-in-mins
          start-time: rest.start-time
          end-time: rest.end-time
          rollup: rest.rollup
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/applications/{applicationid}/metrics
      name: rest-applications-applicationid-metrics
      description: REST surface for rest-applications-applicationId-metrics.
      operations:
      - method: GET
        name: listmetrichierarchy
        description: List metric hierarchy for an application
        call: metric-and-snapshot-metrics.listmetrichierarchy
        with:
          metric-path: rest.metric-path
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: metric-and-snapshot-metrics-mcp
    port: 9090
    transport: http
    description: MCP adapter for AppDynamics Metric and Snapshot API — Metrics. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: get-metric-data-application
      description: Get metric data for an application
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: metric-and-snapshot-metrics.getmetricdata
      with:
        metric-path: tools.metric-path
        time-range-type: tools.time-range-type
        duration-in-mins: tools.duration-in-mins
        start-time: tools.start-time
        end-time: tools.end-time
        rollup: tools.rollup
      outputParameters:
      - type: object
        mapping: $.
    - name: list-metric-hierarchy-application
      description: List metric hierarchy for an application
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: metric-and-snapshot-metrics.listmetrichierarchy
      with:
        metric-path: tools.metric-path
      outputParameters:
      - type: object
        mapping: $.