---
title: "Create a SQL statistic"
method: POST
path: "/eclipse-conductor/rest/v1/global/sql-statistics"
tags: ["z.3) SQL Statistics"]
---

# Create a SQL statistic

`POST /eclipse-conductor/rest/v1/global/sql-statistics`

Creates a new SQL statistic configuration entry.

## Request body

- SqlStatisticData
  - `connectionName` string
  - `gapSeconds` integer
  - `lastLatencyMs` integer
  - `lastRan` string, date-time
  - `location` string
  - `sqlQuery` string
  - `sqlStatisticId` integer
  - `type` string

## Response `200`

OK

- SqlStatisticData
  - `connectionName` string
  - `gapSeconds` integer
  - `lastLatencyMs` integer
  - `lastRan` string, date-time
  - `location` string
  - `sqlQuery` string
  - `sqlStatisticId` integer
  - `type` string

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

[API](https://skmtc.dev/eftcorp/apis/eclipse-rest-api.md) · [All operations](https://skmtc.dev/eftcorp/apis/eclipse-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/eftcorp/eclipse-rest-api/revisions/9213d52d49a3/schema)
