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

# Get Counter Time Series

> Get counter time series.



## OpenAPI

````yaml /openapi/api.json get /v1/telemetry/counters/{metric_name}/time_series
openapi: 3.1.0
info:
  title: Vijil Console API (Combined)
  description: Combined OpenAPI specification for all vijil-console microservices.
  version: 0.1.0
servers: []
security: []
tags:
  - name: Teams
    description: Authentication, users, and team management
  - name: Agent Environment
    description: Agent, persona, policy, and harness management
  - name: Diamond
    description: Evaluation management and report retrieval
  - name: Dome
    description: Protection, guardrails, and telemetry
  - name: Red Team
    description: Red team campaigns
paths:
  /v1/telemetry/counters/{metric_name}/time_series:
    get:
      tags:
        - Dome
        - Telemetry
      summary: Get Counter Time Series
      description: Get counter time series.
      operationId: >-
        get_counter_time_series_v1_telemetry_counters__metric_name__time_series_get
      parameters:
        - name: metric_name
          in: path
          required: true
          schema:
            type: string
            title: Metric Name
        - name: time_range
          in: query
          required: false
          schema:
            enum:
              - 15m
              - 30m
              - 1h
              - 2h
              - 6h
              - 1d
              - 7d
              - 30d
            type: string
            description: 'Time range: 15m, 30m, 1h, 2h, 6h, 1d, 7d, 30d'
            default: 1d
            title: Time Range
          description: 'Time range: 15m, 30m, 1h, 2h, 6h, 1d, 7d, 30d'
        - name: evaluation_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by evaluation ID
            title: Evaluation Id
          description: Filter by evaluation ID
        - name: agent_configuration_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by agent configuration ID
            title: Agent Configuration Id
          description: Filter by agent configuration ID
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetricQueryResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    MetricQueryResponse:
      properties:
        metric:
          type: string
          title: Metric
          description: chat_completions_total
        series:
          items:
            $ref: '#/components/schemas/TimeSeries'
          type: array
          title: Series
          description: List of time series data
        labels:
          $ref: '#/components/schemas/MetricLabels'
          description: Structured metric labels
      type: object
      required:
        - metric
        - series
      title: MetricQueryResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TimeSeries:
      properties:
        labels:
          $ref: '#/components/schemas/MetricLabels'
          description: Structured metric labels for this series
        points:
          items:
            $ref: '#/components/schemas/DataPoint'
          type: array
          title: Points
          description: Time-ordered bucket values
      type: object
      required:
        - points
      title: TimeSeries
    MetricLabels:
      properties:
        agent_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Agent Id
          description: Agent ID (same as agent_configuration_id)
        deployment_environment:
          anyOf:
            - type: string
            - type: 'null'
          title: Deployment Environment
          description: Deployment environment (e.g., production, staging)
        exported_job:
          anyOf:
            - type: string
            - type: 'null'
          title: Exported Job
          description: Exported job identifier
        job:
          anyOf:
            - type: string
            - type: 'null'
          title: Job
          description: Job name (e.g., otel-collector)
        service_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Service Name
          description: Service name (e.g., vijil.dome)
        service_namespace:
          anyOf:
            - type: string
            - type: 'null'
          title: Service Namespace
          description: Service namespace
        service_version:
          anyOf:
            - type: string
            - type: 'null'
          title: Service Version
          description: Service version
        team_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Team Id
          description: Team ID
        user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: User Id
          description: User ID
        evaluation_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Evaluation Id
          description: Evaluation ID filter
      type: object
      title: MetricLabels
      description: Structured metric labels for telemetry data
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    DataPoint:
      properties:
        timestamp:
          type: integer
          title: Timestamp
          description: Bucket end timestamp as Unix timestamp (seconds since epoch)
        value:
          type: number
          title: Value
          description: Sum of completions in this bucket
      type: object
      required:
        - timestamp
        - value
      title: DataPoint

````