> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cachethq.io/llms.txt
> Use this file to discover all available pages before exploring further.

# List Metric Points



## OpenAPI

````yaml api-reference/openapi.json get /metrics/{metric}/points
openapi: 3.1.0
info:
  title: Cachet
  version: 0.0.1
  description: >-
    API documentation for Cachet, the open-source, self-hosted status page
    system.
servers:
  - url: http://localhost/api
  - url: https://v3.cachethq.io/api
    description: The Cachet v3 demo server.
security:
  - http: []
tags:
  - name: Cachet
  - name: Components
  - name: Component Groups
  - name: Incidents
  - name: Incident Updates
  - name: Incident Templates
  - name: Metrics
  - name: Metric Points
  - name: Schedules
  - name: Schedule Updates
paths:
  /metrics/{metric}/points:
    get:
      tags:
        - Metric Points
      summary: List Metric Points
      operationId: cachet.api.metrics.points.index
      parameters:
        - name: metric
          in: path
          required: true
          description: The metric ID
          schema:
            type: integer
        - name: sort
          in: query
          description: >-
            Available sorts are `name`, `order`, `id`. You can sort by multiple
            options by separating them with a comma. To sort in descending
            order, use `-` sign in front of the sort, for example: `-name`.
          schema:
            type: string
        - name: include
          in: query
          description: >-
            Available includes are `metric`, `metricCount`, `metricExists`. You
            can include multiple options by separating them with a comma.
          schema:
            type: string
        - name: per_page
          in: query
          description: How many items to show per page.
          schema:
            type: integer
            default: 15
          example: 20
        - name: page
          in: query
          description: Which page to show.
          schema:
            type: integer
          example: 2
      responses:
        '200':
          description: Paginated set of `MetricPoint`
          content:
            application/vnd.api+json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/MetricPoint'
                  links:
                    type: object
                    properties:
                      first:
                        type: string
                      last:
                        type: string
                      prev:
                        type: string
                      next:
                        type: string
                  meta:
                    type: object
                    properties:
                      current_page:
                        type: integer
                      from:
                        type:
                          - integer
                          - 'null'
                      path:
                        type:
                          - string
                          - 'null'
                        description: Base path for paginator generated URLs.
                      per_page:
                        type: integer
                        description: Number of items shown per page.
                      to:
                        type:
                          - integer
                          - 'null'
                        description: Number of the last item in the slice.
                    required:
                      - current_page
                      - from
                      - path
                      - per_page
                      - to
                  included:
                    type: array
                    items:
                      $ref: '#/components/schemas/Metric'
                required:
                  - data
                  - links
                  - meta
        '404':
          $ref: '#/components/responses/ModelNotFoundException'
      security: []
components:
  schemas:
    MetricPoint:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
          enum:
            - metricPoints
        attributes:
          type: object
          properties:
            id:
              type: integer
            metric_id:
              type: integer
            calculated_value:
              type: string
            value:
              type: number
            counter:
              type: integer
            created:
              type: object
              properties:
                human:
                  type: string
                string:
                  type: string
              required:
                - human
                - string
            updated:
              type: object
              properties:
                human:
                  type: string
                string:
                  type: string
              required:
                - human
                - string
          required:
            - id
            - metric_id
            - calculated_value
            - value
            - counter
            - created
            - updated
        relationships:
          type: object
          properties:
            metric:
              type: object
              properties:
                data:
                  anyOf:
                    - $ref: '#/components/schemas/MetricIdentifier'
                    - type: 'null'
              required:
                - data
      required:
        - id
        - type
      title: MetricPoint
    Metric:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
          enum:
            - metrics
        attributes:
          type: object
          properties:
            id:
              type: integer
            name:
              type: string
            suffix:
              type: string
            description:
              type:
                - string
                - 'null'
            default_value:
              type:
                - string
                - 'null'
            calc_type:
              $ref: '#/components/schemas/MetricTypeEnum'
            display_chart:
              type: boolean
            places:
              type: integer
            default_view:
              $ref: '#/components/schemas/MetricViewEnum'
            threshold:
              type: integer
            order:
              type: integer
            visible:
              $ref: '#/components/schemas/ResourceVisibilityEnum'
            created:
              type: object
              properties:
                human:
                  type: string
                string:
                  type: string
              required:
                - human
                - string
            updated:
              type: object
              properties:
                human:
                  type: string
                string:
                  type: string
              required:
                - human
                - string
          required:
            - id
            - name
            - suffix
            - description
            - default_value
            - calc_type
            - display_chart
            - places
            - default_view
            - threshold
            - order
            - visible
            - created
            - updated
        relationships:
          type: object
          properties:
            points:
              type: object
              properties:
                data:
                  type: array
                  items:
                    $ref: '#/components/schemas/MetricPointIdentifier'
              required:
                - data
      required:
        - id
        - type
      title: Metric
    MetricIdentifier:
      type: object
      properties:
        type:
          type: string
          enum:
            - metrics
        id:
          type: string
      required:
        - type
        - id
      title: MetricIdentifier
    MetricTypeEnum:
      type: integer
      enum:
        - 0
        - 1
      title: MetricTypeEnum
    MetricViewEnum:
      type: integer
      enum:
        - 0
        - 1
        - 2
        - 3
      title: MetricViewEnum
    ResourceVisibilityEnum:
      type: integer
      enum:
        - 0
        - 1
        - 2
      title: ResourceVisibilityEnum
    MetricPointIdentifier:
      type: object
      properties:
        type:
          type: string
          enum:
            - metricPoints
        id:
          type: string
      required:
        - type
        - id
      title: MetricPointIdentifier
  responses:
    ModelNotFoundException:
      description: Not found
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
  securitySchemes:
    http:
      type: http
      scheme: bearer

````