get_data_sla
Retrieve SLA compliance report for a given month, covering uptime, data completeness, API latency P99, target vs actual comparisons, incident count, and total downtime.
Instructions
Get SLA compliance report for a given month. Returns uptime, data completeness, API latency P99 — each with target vs actual and met/missed status. Also shows incident count and total downtime.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Year (defaults to current year) | |
| month | No | Month 1-12 (defaults to current month) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Result data object |
Implementation Reference
- src/index.ts:2041-2058 (handler)The handler for get_data_sla: takes optional year/month params, passes them to api().dataQuality.sla(), and formats the response.
registerTool( "get_data_sla", "Get SLA compliance report for a given month. Returns uptime, data completeness, API latency P99 — each with target vs actual and met/missed status. Also shows incident count and total downtime.", { year: z.number().optional().describe("Year (defaults to current year)"), month: z.number().optional().describe("Month 1-12 (defaults to current month)"), }, ObjectOutputSchema, async (params) => { const sdkParams: Record<string, unknown> = {}; if (params.year) sdkParams.year = params.year; if (params.month) sdkParams.month = params.month; const data = await api().dataQuality.sla( Object.keys(sdkParams).length > 0 ? sdkParams as any : undefined ); return formatResponse(data); } ); - src/index.ts:2044-2048 (schema)Input schema for get_data_sla: optional year (number) and month (number, 1-12). Output schema is ObjectOutputSchema.
{ year: z.number().optional().describe("Year (defaults to current year)"), month: z.number().optional().describe("Month 1-12 (defaults to current month)"), }, ObjectOutputSchema, - src/index.ts:2041-2058 (registration)Registration of the get_data_sla tool via the registerTool helper. Registered under the 'Data Quality' section.
registerTool( "get_data_sla", "Get SLA compliance report for a given month. Returns uptime, data completeness, API latency P99 — each with target vs actual and met/missed status. Also shows incident count and total downtime.", { year: z.number().optional().describe("Year (defaults to current year)"), month: z.number().optional().describe("Month 1-12 (defaults to current month)"), }, ObjectOutputSchema, async (params) => { const sdkParams: Record<string, unknown> = {}; if (params.year) sdkParams.year = params.year; if (params.month) sdkParams.month = params.month; const data = await api().dataQuality.sla( Object.keys(sdkParams).length > 0 ? sdkParams as any : undefined ); return formatResponse(data); } );