---
title: "CaseStats"
url: "https://developers.zinnia.com/apis/policy-service-0-1-0/versions/8306e031-b41c-452a-a7ed-d73d65602086/schemas/CaseStats"
---

> Full API specification: https://developers.zinnia.com/apis/policy-service-0-1-0/versions/8306e031-b41c-452a-a7ed-d73d65602086.md

# CaseStats

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Policy Service
  version: 0.0.21
servers:
  - url: https://qa.api.zinnia.io
components:
  schemas:
    CaseCount:
      type: object
      properties:
        label:
          type: string
          description: Label of the grouped value
          example: IN_PROGRESS
        value:
          type: number
          description: Count for the grouped label
          example: 12
    CaseStats:
      type: object
      properties:
        attribute:
          type: string
          description: Grouping attribute name
          example: caseStatus
        counts:
          description: Counts by label for the attribute
          type: array
          items:
            $ref: "#/components/schemas/CaseCount"
```
