SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
chore: add OpenAPI spec for /v5/query_range (#10239)
Srikanth Chekuri5c86b806820e
diff --git a/docs/api/openapi.yml b/docs/api/openapi.ymlindex b7a97a58c1..d7214433a8 100644--- a/docs/api/openapi.yml+++ b/docs/api/openapi.yml@@ -1,4701 +1,5837 @@-openapi: 3.0.3-info:- description: OpenTelemetry-Native Logs, Metrics and Traces in a single pane- title: SigNoz- version: ""-paths:- /api/v1/changePassword/{id}:- post:- deprecated: false- description: This endpoint changes the password by id- operationId: ChangePassword- parameters:- - in: path- name: id- required: true- schema:+components:+ schemas:+ AuthtypesAttributeMapping:+ properties:+ email:type: string- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/TypesChangePasswordRequest'- responses:- "204":- description: No Content- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "404":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Not Found- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Change password- tags:- - users- /api/v1/complete/google:- get:- deprecated: false- description: This endpoint creates a session for a user using google callback- operationId: CreateSessionByGoogleCallback- responses:- "303":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/AuthtypesGettableToken'- status:- type: string- type: object- description: See Other- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "404":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Not Found- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- summary: Create session by google callback- tags:- - sessions- /api/v1/complete/oidc:- get:- deprecated: false- description: This endpoint creates a session for a user using oidc callback- operationId: CreateSessionByOIDCCallback- responses:- "303":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/AuthtypesGettableToken'- status:- type: string- type: object- description: See Other- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "404":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Not Found- "451":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unavailable For Legal Reasons- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- summary: Create session by oidc callback- tags:- - sessions- /api/v1/complete/saml:- post:- deprecated: false- description: This endpoint creates a session for a user using saml callback- operationId: CreateSessionBySAMLCallback- parameters:- - in: query- name: RelayState- schema:+ groups:type: string- - in: query- name: SAMLResponse- schema:+ name:type: string- requestBody:- content:- application/x-www-form-urlencoded:- schema:- properties:- RelayState:- type: string- SAMLResponse:- type: string- type: object- responses:- "303":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/AuthtypesGettableToken'- status:- type: string- type: object- description: See Other- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "404":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Not Found- "451":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unavailable For Legal Reasons- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- summary: Create session by saml callback- tags:- - sessions- /api/v1/dashboards/{id}/public:- delete:- deprecated: false- description: This endpoint deletes the public sharing config and disables the- public sharing of a dashboard- operationId: DeletePublicDashboard- parameters:- - in: path- name: id- required: true- schema:+ role:type: string- responses:- "204":- content:- application/json:- schema:- type: string- description: No Content- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Delete public dashboard- tags:- - dashboard- get:- deprecated: false- description: This endpoint returns public sharing config for a dashboard- operationId: GetPublicDashboard- parameters:- - in: path- name: id- required: true- schema:+ type: object+ AuthtypesAuthDomainConfig:+ properties:+ googleAuthConfig:+ $ref: '#/components/schemas/AuthtypesGoogleConfig'+ oidcConfig:+ $ref: '#/components/schemas/AuthtypesOIDCConfig'+ roleMapping:+ $ref: '#/components/schemas/AuthtypesRoleMapping'+ samlConfig:+ $ref: '#/components/schemas/AuthtypesSamlConfig'+ ssoEnabled:+ type: boolean+ ssoType:type: string- responses:- "200":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/DashboardtypesGettablePublicDasbhboard'- status:- type: string- type: object- description: OK- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Get public dashboard- tags:- - dashboard- post:- deprecated: false- description: This endpoint creates public sharing config and enables public- sharing of the dashboard- operationId: CreatePublicDashboard- parameters:- - in: path- name: id- required: true- schema:+ type: object+ AuthtypesAuthNProviderInfo:+ properties:+ relayStatePath:+ nullable: truetype: string- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/DashboardtypesPostablePublicDashboard'- responses:- "201":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/TypesIdentifiable'- status:- type: string- type: object- description: Created- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Create public dashboard- tags:- - dashboard- put:- deprecated: false- description: This endpoint updates the public sharing config for a dashboard- operationId: UpdatePublicDashboard- parameters:- - in: path- name: id- required: true- schema:+ type: object+ AuthtypesAuthNSupport:+ properties:+ callback:+ items:+ $ref: '#/components/schemas/AuthtypesCallbackAuthNSupport'+ nullable: true+ type: array+ password:+ items:+ $ref: '#/components/schemas/AuthtypesPasswordAuthNSupport'+ nullable: true+ type: array+ type: object+ AuthtypesCallbackAuthNSupport:+ properties:+ provider:type: string- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/DashboardtypesUpdatablePublicDashboard'- responses:- "204":- content:- application/json:- schema:- type: string- description: No Content- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Update public dashboard- tags:- - dashboard- /api/v1/domains:- get:- deprecated: false- description: This endpoint lists all auth domains- operationId: ListAuthDomains- responses:- "200":- content:- application/json:- schema:- properties:- data:- items:- $ref: '#/components/schemas/AuthtypesGettableAuthDomain'- type: array- status:- type: string- type: object- description: OK- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: List all auth domains- tags:- - authdomains- post:- deprecated: false- description: This endpoint creates an auth domain- operationId: CreateAuthDomain- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/AuthtypesPostableAuthDomain'- responses:- "200":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/AuthtypesGettableAuthDomain'- status:- type: string- type: object- description: OK- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "409":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Conflict- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Create auth domain- tags:- - authdomains- /api/v1/domains/{id}:- delete:- deprecated: false- description: This endpoint deletes an auth domain- operationId: DeleteAuthDomain- parameters:- - in: path- name: id- required: true- schema:+ url:type: string- responses:- "204":- description: No Content- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Delete auth domain- tags:- - authdomains- put:- deprecated: false- description: This endpoint updates an auth domain- operationId: UpdateAuthDomain- parameters:- - in: path- name: id- required: true- schema:+ type: object+ AuthtypesGettableAuthDomain:+ properties:+ authNProviderInfo:+ $ref: '#/components/schemas/AuthtypesAuthNProviderInfo'+ createdAt:+ format: date-timetype: string- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/AuthtypesUpdateableAuthDomain'- responses:- "204":- description: No Content- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "409":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Conflict- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Update auth domain- tags:- - authdomains- /api/v1/fields/keys:- get:- deprecated: false- description: This endpoint returns field keys- operationId: GetFieldsKeys- parameters:- - in: query- name: signal- schema:+ googleAuthConfig:+ $ref: '#/components/schemas/AuthtypesGoogleConfig'+ id:type: string- - in: query- name: source- schema:+ name:type: string- - in: query- name: limit- schema:- type: integer- - in: query- name: startUnixMilli- schema:- format: int64- type: integer- - in: query- name: endUnixMilli- schema:- format: int64- type: integer- - in: query- name: fieldContext- schema:+ oidcConfig:+ $ref: '#/components/schemas/AuthtypesOIDCConfig'+ orgId:type: string- - in: query- name: fieldDataType- schema:+ roleMapping:+ $ref: '#/components/schemas/AuthtypesRoleMapping'+ samlConfig:+ $ref: '#/components/schemas/AuthtypesSamlConfig'+ ssoEnabled:+ type: boolean+ ssoType:type: string- - in: query- name: metricName- schema:+ updatedAt:+ format: date-timetype: string- - in: query- name: searchText- schema:+ type: object+ AuthtypesGettableToken:+ properties:+ accessToken:type: string- responses:- "200":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/TelemetrytypesGettableFieldKeys'- status:- type: string- type: object- description: OK- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - VIEWER- - tokenizer:- - VIEWER- summary: Get field keys- tags:- - fields- /api/v1/fields/values:- get:- deprecated: false- description: This endpoint returns field values- operationId: GetFieldsValues- parameters:- - in: query- name: signal- schema:+ expiresIn:+ type: integer+ refreshToken:type: string- - in: query- name: source- schema:+ tokenType:type: string- - in: query- name: limit- schema:- type: integer- - in: query- name: startUnixMilli- schema:- format: int64- type: integer- - in: query- name: endUnixMilli- schema:- format: int64- type: integer- - in: query- name: fieldContext- schema:+ type: object+ AuthtypesGoogleConfig:+ properties:+ allowedGroups:+ items:+ type: string+ type: array+ clientId:type: string- - in: query- name: fieldDataType- schema:+ clientSecret:type: string- - in: query- name: metricName- schema:+ domainToAdminEmail:+ additionalProperties:+ type: string+ type: object+ fetchGroups:+ type: boolean+ fetchTransitiveGroupMembership:+ type: boolean+ insecureSkipEmailVerified:+ type: boolean+ redirectURI:type: string- - in: query- name: searchText- schema:+ serviceAccountJson:type: string- - in: query- name: name- schema:+ type: object+ AuthtypesOIDCConfig:+ properties:+ claimMapping:+ $ref: '#/components/schemas/AuthtypesAttributeMapping'+ clientId:type: string- - in: query- name: existingQuery- schema:+ clientSecret:type: string- responses:- "200":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/TelemetrytypesGettableFieldValues'- status:- type: string- type: object- description: OK- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - VIEWER- - tokenizer:- - VIEWER- summary: Get field values- tags:- - fields- /api/v1/getResetPasswordToken/{id}:- get:- deprecated: false- description: This endpoint returns the reset password token by id- operationId: GetResetPasswordToken- parameters:- - in: path- name: id- required: true- schema:+ getUserInfo:+ type: boolean+ insecureSkipEmailVerified:+ type: boolean+ issuer:type: string- responses:- "200":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/TypesResetPasswordToken'- status:- type: string- type: object- description: OK- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "404":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Not Found- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Get reset password token- tags:- - users- /api/v1/global/config:- get:- deprecated: false- description: This endpoint returns global config- operationId: GetGlobalConfig- responses:- "200":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/TypesGettableGlobalConfig'- status:- type: string- type: object- description: OK- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - EDITOR- - tokenizer:- - EDITOR- summary: Get global config- tags:- - global- /api/v1/invite:- get:- deprecated: false- description: This endpoint lists all invites- operationId: ListInvite- responses:- "200":- content:- application/json:- schema:- properties:- data:- items:- $ref: '#/components/schemas/TypesInvite'- type: array- status:- type: string- type: object- description: OK- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: List invites- tags:- - users- post:- deprecated: false- description: This endpoint creates an invite for a user- operationId: CreateInvite- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/TypesPostableInvite'- responses:- "201":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/TypesInvite'- status:- type: string- type: object- description: Created- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "409":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Conflict- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Create invite- tags:- - users- /api/v1/invite/{id}:- delete:- deprecated: false- description: This endpoint deletes an invite by id- operationId: DeleteInvite- parameters:- - in: path- name: id- required: true- schema:+ issuerAlias:type: string- responses:- "204":- description: No Content- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "404":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Not Found- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Delete invite- tags:- - users- /api/v1/invite/{token}:- get:- deprecated: false- description: This endpoint gets an invite by token- operationId: GetInvite- parameters:- - in: path- name: token- required: true- schema:+ type: object+ AuthtypesOrgSessionContext:+ properties:+ authNSupport:+ $ref: '#/components/schemas/AuthtypesAuthNSupport'+ id:type: string- responses:- "200":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/TypesInvite'- status:- type: string- type: object- description: OK- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "404":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Not Found- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- summary: Get invite- tags:- - users- /api/v1/invite/accept:- post:- deprecated: false- description: This endpoint accepts an invite by token- operationId: AcceptInvite- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/TypesPostableAcceptInvite'- responses:- "201":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/TypesUser'- status:- type: string- type: object- description: Created- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "404":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Not Found- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- summary: Accept invite- tags:- - users- /api/v1/invite/bulk:- post:- deprecated: false- description: This endpoint creates a bulk invite for a user- operationId: CreateBulkInvite- requestBody:- content:- application/json:- schema:- items:- $ref: '#/components/schemas/TypesPostableInvite'- type: array- responses:- "201":- description: Created- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "409":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Conflict- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Create bulk invite- tags:- - users- /api/v1/logs/promote_paths:- get:- deprecated: false- description: This endpoints promotes and indexes paths- operationId: ListPromotedAndIndexedPaths- responses:- "200":- content:- application/json:- schema:- properties:- data:- items:- $ref: '#/components/schemas/PromotetypesPromotePath'- nullable: true- type: array- status:- type: string- type: object- description: OK- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- summary: Promote and index paths- tags:- - logs- post:- deprecated: false- description: This endpoints promotes and indexes paths- operationId: HandlePromoteAndIndexPaths- requestBody:- content:- application/json:- schema:- items:- $ref: '#/components/schemas/PromotetypesPromotePath'- nullable: true- type: array- responses:- "201":- description: Created- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- summary: Promote and index paths- tags:- - logs- /api/v1/org/preferences:- get:- deprecated: false- description: This endpoint lists all org preferences- operationId: ListOrgPreferences- responses:- "200":- content:- application/json:- schema:- properties:- data:- items:- $ref: '#/components/schemas/PreferencetypesPreference'- type: array- status:- type: string- type: object- description: OK- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: List org preferences- tags:- - preferences- /api/v1/org/preferences/{name}:- get:- deprecated: false- description: This endpoint returns the org preference by name- operationId: GetOrgPreference- parameters:- - in: path- name: name- required: true- schema:+ name:type: string- responses:- "200":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/PreferencetypesPreference'- status:- type: string- type: object- description: OK- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "404":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Not Found- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Get org preference- tags:- - preferences- put:- deprecated: false- description: This endpoint updates the org preference by name- operationId: UpdateOrgPreference- parameters:- - in: path- name: name- required: true- schema:+ warning:+ $ref: '#/components/schemas/ErrorsJSON'+ type: object+ AuthtypesPasswordAuthNSupport:+ properties:+ provider:type: string- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/PreferencetypesUpdatablePreference'- responses:- "204":- description: No Content- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "404":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Not Found- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Update org preference- tags:- - preferences- /api/v1/pats:- get:- deprecated: false- description: This endpoint lists all api keys- operationId: ListAPIKeys- responses:- "200":- content:- application/json:- schema:- properties:- data:- items:- $ref: '#/components/schemas/TypesGettableAPIKey'- type: array- status:- type: string- type: object- description: OK- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: List api keys- tags:- - users- post:- deprecated: false- description: This endpoint creates an api key- operationId: CreateAPIKey- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/TypesPostableAPIKey'- responses:- "201":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/TypesGettableAPIKey'- status:- type: string- type: object- description: Created- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "409":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Conflict- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Create api key- tags:- - users- /api/v1/pats/{id}:- delete:- deprecated: false- description: This endpoint revokes an api key- operationId: RevokeAPIKey- parameters:- - in: path- name: id- required: true- schema:+ type: object+ AuthtypesPostableAuthDomain:+ properties:+ config:+ $ref: '#/components/schemas/AuthtypesAuthDomainConfig'+ name:type: string- responses:- "204":- description: No Content- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "404":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Not Found- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Revoke api key- tags:- - users- put:- deprecated: false- description: This endpoint updates an api key- operationId: UpdateAPIKey- parameters:- - in: path- name: id- required: true- schema:+ type: object+ AuthtypesPostableEmailPasswordSession:+ properties:+ email:type: string- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/TypesStorableAPIKey'- responses:- "204":- content:- application/json:- schema:- type: string- description: No Content- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "404":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Not Found- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Update api key- tags:- - users- /api/v1/public/dashboards/{id}:- get:- deprecated: false- description: This endpoint returns the sanitized dashboard data for public access- operationId: GetPublicDashboardData- parameters:- - in: path- name: id- required: true- schema:+ orgId:type: string- responses:- "200":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/DashboardtypesGettablePublicDashboardData'- status:- type: string- type: object- description: OK- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - anonymous:- - public-dashboard:read- summary: Get public dashboard data- tags:- - dashboard- /api/v1/public/dashboards/{id}/widgets/{idx}/query_range:- get:- deprecated: false- description: This endpoint return query range results for a widget of public- dashboard- operationId: GetPublicDashboardWidgetQueryRange- parameters:- - in: path- name: id- required: true- schema:+ password:type: string- - in: path- name: idx- required: true- schema:+ type: object+ AuthtypesPostableRotateToken:+ properties:+ refreshToken:type: string- responses:- "200":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/Querybuildertypesv5QueryRangeResponse'- status:- type: string- type: object- description: OK- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - anonymous:- - public-dashboard:read- summary: Get query range result- tags:- - dashboard- /api/v1/resetPassword:- post:- deprecated: false- description: This endpoint resets the password by token- operationId: ResetPassword- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/TypesPostableResetPassword'- responses:- "204":- description: No Content- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "409":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Conflict- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- summary: Reset password- tags:- - users- /api/v1/roles:- get:- deprecated: false- description: This endpoint lists all roles- operationId: ListRoles- responses:- "200":- content:- application/json:- schema:- properties:- data:- items:- $ref: '#/components/schemas/RoletypesRole'- type: array- status:- type: string- type: object- description: OK- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: List roles- tags:- - role- post:- deprecated: false- description: This endpoint creates a role- operationId: CreateRole- responses:- "201":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/TypesIdentifiable'- status:- type: string- type: object- description: Created- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Create role- tags:- - role- /api/v1/roles/{id}:- delete:- deprecated: false- description: This endpoint deletes a role- operationId: DeleteRole- parameters:- - in: path- name: id- required: true- schema:+ type: object+ AuthtypesRoleMapping:+ properties:+ defaultRole:type: string- responses:- "204":- content:- application/json:- schema:- type: string- description: No Content- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Delete role- tags:- - role- get:- deprecated: false- description: This endpoint gets a role- operationId: GetRole- parameters:- - in: path- name: id- required: true- schema:+ groupMappings:+ additionalProperties:+ type: string+ nullable: true+ type: object+ useRoleAttribute:+ type: boolean+ type: object+ AuthtypesSamlConfig:+ properties:+ attributeMapping:+ $ref: '#/components/schemas/AuthtypesAttributeMapping'+ insecureSkipAuthNRequestsSigned:+ type: boolean+ samlCert:type: string- responses:- "200":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/RoletypesRole'- status:- type: string- type: object- description: OK- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Get role- tags:- - role- patch:- deprecated: false- description: This endpoint patches a role- operationId: PatchRole- parameters:- - in: path- name: id- required: true- schema:+ samlEntity:type: string- responses:- "204":- content:- application/json:- schema:- type: string- description: No Content- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Patch role- tags:- - role- /api/v1/user:- get:- deprecated: false- description: This endpoint lists all users- operationId: ListUsers- responses:- "200":- content:- application/json:- schema:- properties:- data:- items:- $ref: '#/components/schemas/TypesUser'- type: array- status:- type: string- type: object- description: OK- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: List users- tags:- - users- /api/v1/user/{id}:- delete:- deprecated: false- description: This endpoint deletes the user by id- operationId: DeleteUser- parameters:- - in: path- name: id- required: true- schema:+ samlIdp:type: string- responses:- "204":- description: No Content- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "404":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Not Found- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Delete user- tags:- - users- get:- deprecated: false- description: This endpoint returns the user by id- operationId: GetUser- parameters:- - in: path- name: id- required: true- schema:+ type: object+ AuthtypesSessionContext:+ properties:+ exists:+ type: boolean+ orgs:+ items:+ $ref: '#/components/schemas/AuthtypesOrgSessionContext'+ nullable: true+ type: array+ type: object+ AuthtypesUpdateableAuthDomain:+ properties:+ config:+ $ref: '#/components/schemas/AuthtypesAuthDomainConfig'+ type: object+ DashboardtypesDashboard:+ properties:+ createdAt:+ format: date-timetype: string- responses:- "200":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/TypesUser'- status:- type: string- type: object- description: OK- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "404":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Not Found- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Get user- tags:- - users- put:- deprecated: false- description: This endpoint updates the user by id- operationId: UpdateUser- parameters:- - in: path- name: id- required: true- schema:+ createdBy:type: string- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/TypesUser'- responses:- "200":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/TypesUser'- status:- type: string- type: object- description: OK- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "404":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Not Found- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Update user- tags:- - users- /api/v1/user/me:- get:- deprecated: false- description: This endpoint returns the user I belong to- operationId: GetMyUser- responses:- "200":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/TypesUser'- status:- type: string- type: object- description: OK- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - tokenizer: []- summary: Get my user- tags:- - users- /api/v1/user/preferences:- get:- deprecated: false- description: This endpoint lists all user preferences- operationId: ListUserPreferences- responses:- "200":- content:- application/json:- schema:- properties:- data:- items:- $ref: '#/components/schemas/PreferencetypesPreference'- type: array- status:- type: string- type: object- description: OK- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - VIEWER- - tokenizer:- - VIEWER- summary: List user preferences- tags:- - preferences- /api/v1/user/preferences/{name}:- get:- deprecated: false- description: This endpoint returns the user preference by name- operationId: GetUserPreference- parameters:- - in: path- name: name- required: true- schema:+ data:+ $ref: '#/components/schemas/DashboardtypesStorableDashboardData'+ id:type: string- responses:- "200":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/PreferencetypesPreference'- status:- type: string- type: object- description: OK- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "404":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Not Found- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - VIEWER- - tokenizer:- - VIEWER- summary: Get user preference- tags:- - preferences- put:- deprecated: false- description: This endpoint updates the user preference by name- operationId: UpdateUserPreference- parameters:- - in: path- name: name- required: true- schema:+ locked:+ type: boolean+ org_id:type: string- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/PreferencetypesUpdatablePreference'- responses:- "204":- description: No Content- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "404":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Not Found- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - VIEWER- - tokenizer:- - VIEWER- summary: Update user preference- tags:- - preferences- /api/v2/factor_password/forgot:- post:- deprecated: false- description: This endpoint initiates the forgot password flow by sending a reset- password email- operationId: ForgotPassword- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/TypesPostableForgotPassword'- responses:- "204":- description: No Content- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "422":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unprocessable Entity- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- summary: Forgot password- tags:- - users- /api/v2/features:- get:- deprecated: false- description: This endpoint returns the supported features and their details- operationId: GetFeatures- responses:- "200":- content:- application/json:- schema:- properties:- data:- items:- $ref: '#/components/schemas/FeaturetypesGettableFeature'- type: array- status:- type: string- type: object- description: OK- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - VIEWER- - tokenizer:- - VIEWER- summary: Get features- tags:- - features- /api/v2/gateway/ingestion_keys:- get:- deprecated: false- description: This endpoint returns the ingestion keys for a workspace- operationId: GetIngestionKeys- parameters:- - in: query- name: page- schema:- type: integer- - in: query- name: per_page- schema:- type: integer- responses:- "200":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/GatewaytypesGettableIngestionKeys'- status:- type: string- type: object- description: OK- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Get ingestion keys for workspace- tags:- - gateway- post:- deprecated: false- description: This endpoint creates an ingestion key for the workspace- operationId: CreateIngestionKey- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/GatewaytypesPostableIngestionKey'- responses:- "200":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/GatewaytypesGettableCreatedIngestionKey'- status:- type: string- type: object- description: OK- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Create ingestion key for workspace- tags:- - gateway- /api/v2/gateway/ingestion_keys/{keyId}:- delete:- deprecated: false- description: This endpoint deletes an ingestion key for the workspace- operationId: DeleteIngestionKey- parameters:- - in: path- name: keyId- required: true- schema:+ updatedAt:+ format: date-timetype: string- responses:- "204":- description: No Content- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Delete ingestion key for workspace- tags:- - gateway- patch:- deprecated: false- description: This endpoint updates an ingestion key for the workspace- operationId: UpdateIngestionKey- parameters:- - in: path- name: keyId- required: true- schema:+ updatedBy:type: string- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/GatewaytypesPostableIngestionKey'- responses:- "204":- description: No Content- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Update ingestion key for workspace- tags:- - gateway- /api/v2/gateway/ingestion_keys/{keyId}/limits:- post:- deprecated: false- description: This endpoint creates an ingestion key limit- operationId: CreateIngestionKeyLimit- parameters:- - in: path- name: keyId- required: true- schema:+ type: object+ DashboardtypesGettablePublicDasbhboard:+ properties:+ defaultTimeRange:type: string- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/GatewaytypesPostableIngestionKeyLimit'- responses:- "201":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/GatewaytypesGettableCreatedIngestionKeyLimit'- status:- type: string- type: object- description: Created- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Create limit for the ingestion key- tags:- - gateway- /api/v2/gateway/ingestion_keys/limits/{limitId}:- delete:- deprecated: false- description: This endpoint deletes an ingestion key limit- operationId: DeleteIngestionKeyLimit- parameters:- - in: path- name: limitId- required: true- schema:+ publicPath:type: string- responses:- "204":- description: No Content- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Delete limit for the ingestion key- tags:- - gateway- patch:- deprecated: false- description: This endpoint updates an ingestion key limit- operationId: UpdateIngestionKeyLimit- parameters:- - in: path- name: limitId- required: true- schema:+ timeRangeEnabled:+ type: boolean+ type: object+ DashboardtypesGettablePublicDashboardData:+ properties:+ dashboard:+ $ref: '#/components/schemas/DashboardtypesDashboard'+ publicDashboard:+ $ref: '#/components/schemas/DashboardtypesGettablePublicDasbhboard'+ type: object+ DashboardtypesPostablePublicDashboard:+ properties:+ defaultTimeRange:type: string- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/GatewaytypesUpdatableIngestionKeyLimit'- responses:- "204":- description: No Content- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Update limit for the ingestion key- tags:- - gateway- /api/v2/gateway/ingestion_keys/search:- get:- deprecated: false- description: This endpoint returns the ingestion keys for a workspace- operationId: SearchIngestionKeys- parameters:- - in: query- name: name- schema:+ timeRangeEnabled:+ type: boolean+ type: object+ DashboardtypesStorableDashboardData:+ additionalProperties: {}+ type: object+ DashboardtypesUpdatablePublicDashboard:+ properties:+ defaultTimeRange:type: string- - in: query- name: page- schema:- type: integer- - in: query- name: per_page- schema:- type: integer- responses:- "200":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/GatewaytypesGettableIngestionKeys'- status:- type: string- type: object- description: OK- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Search ingestion keys for workspace- tags:- - gateway- /api/v2/metric/alerts:- get:- deprecated: false- description: This endpoint returns associated alerts for a specified metric- operationId: GetMetricAlerts- parameters:- - in: query- name: metricName- required: true- schema:+ timeRangeEnabled:+ type: boolean+ type: object+ ErrorsJSON:+ properties:+ code:type: string- responses:- "200":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/MetricsexplorertypesMetricAlertsResponse'- status:- type: string- type: object- description: OK- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - VIEWER- - tokenizer:- - VIEWER- summary: Get metric alerts- tags:- - metrics- /api/v2/metric/dashboards:- get:- deprecated: false- description: This endpoint returns associated dashboards for a specified metric- operationId: GetMetricDashboards- parameters:- - in: query- name: metricName- required: true- schema:+ errors:+ items:+ $ref: '#/components/schemas/ErrorsResponseerroradditional'+ type: array+ message:type: string- responses:- "200":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/MetricsexplorertypesMetricDashboardsResponse'- status:- type: string- type: object- description: OK- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - VIEWER- - tokenizer:- - VIEWER- summary: Get metric dashboards- tags:- - metrics- /api/v2/metric/highlights:- get:- deprecated: false- description: This endpoint returns highlights like number of datapoints, totaltimeseries,- active time series, last received time for a specified metric- operationId: GetMetricHighlights- parameters:- - in: query- name: metricName- required: true- schema:+ url:type: string- responses:- "200":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/MetricsexplorertypesMetricHighlightsResponse'- status:- type: string- type: object- description: OK- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - VIEWER- - tokenizer:- - VIEWER- summary: Get metric highlights- tags:- - metrics- /api/v2/metrics/{metric_name}/metadata:- post:- deprecated: false- description: This endpoint helps to update metadata information like metric- description, unit, type, temporality, monotonicity for a specified metric- operationId: UpdateMetricMetadata- parameters:- - in: path- name: metric_name- required: true- schema:+ type: object+ ErrorsResponseerroradditional:+ properties:+ message:type: string- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/MetricsexplorertypesUpdateMetricMetadataRequest'- responses:- "200":- content:- application/json:- schema:- type: string- description: OK- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - EDITOR- - tokenizer:- - EDITOR- summary: Update metric metadata- tags:- - metrics- /api/v2/metrics/attributes:- post:- deprecated: false- description: This endpoint returns attribute keys and their unique values for- a specified metric- operationId: GetMetricAttributes- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/MetricsexplorertypesMetricAttributesRequest'- responses:- "200":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/MetricsexplorertypesMetricAttributesResponse'- status:- type: string- type: object- description: OK- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - VIEWER- - tokenizer:- - VIEWER- summary: Get metric attributes- tags:- - metrics- /api/v2/metrics/metadata:- get:- deprecated: false- description: This endpoint returns metadata information like metric description,- unit, type, temporality, monotonicity for a specified metric- operationId: GetMetricMetadata- parameters:- - in: query- name: metricName- required: true- schema:+ type: object+ FeaturetypesGettableFeature:+ properties:+ defaultVariant:type: string- responses:- "200":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/MetricsexplorertypesMetricMetadata'- status:- type: string- type: object- description: OK- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "404":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Not Found- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - VIEWER- - tokenizer:- - VIEWER- summary: Get metric metadata- tags:- - metrics- /api/v2/metrics/stats:- post:- deprecated: false- description: This endpoint provides list of metrics with their number of samples- and timeseries for the given time range- operationId: GetMetricsStats- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/MetricsexplorertypesStatsRequest'- responses:- "200":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/MetricsexplorertypesStatsResponse'- status:- type: string- type: object- description: OK- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - VIEWER- - tokenizer:- - VIEWER- summary: Get metrics statistics- tags:- - metrics- /api/v2/metrics/treemap:- post:- deprecated: false- description: This endpoint returns a treemap visualization showing the proportional- distribution of metrics by sample count or time series count- operationId: GetMetricsTreemap- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/MetricsexplorertypesTreemapRequest'- responses:- "200":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/MetricsexplorertypesTreemapResponse'- status:- type: string- type: object- description: OK- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - VIEWER- - tokenizer:- - VIEWER- summary: Get metrics treemap- tags:- - metrics- /api/v2/orgs/me:- get:- deprecated: false- description: This endpoint returns the organization I belong to- operationId: GetMyOrganization- responses:- "200":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/TypesOrganization'- status:- type: string- type: object- description: OK- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Get my organization- tags:- - orgs- put:- deprecated: false- description: This endpoint updates the organization I belong to- operationId: UpdateMyOrganization- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/TypesOrganization'- responses:- "204":- description: No Content- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "409":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Conflict- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - api_key:- - ADMIN- - tokenizer:- - ADMIN- summary: Update my organization- tags:- - orgs- /api/v2/sessions:- delete:- deprecated: false- description: This endpoint deletes the session- operationId: DeleteSession- responses:- "204":- description: No Content- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "401":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Unauthorized- "403":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Forbidden- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- security:- - tokenizer: []- summary: Delete session- tags:- - sessions- /api/v2/sessions/context:- get:- deprecated: false- description: This endpoint returns the context for the session- operationId: GetSessionContext- responses:- "200":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/AuthtypesSessionContext'- status:- type: string- type: object- description: OK- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- summary: Get session context- tags:- - sessions- /api/v2/sessions/email_password:- post:- deprecated: false- description: This endpoint creates a session for a user using email and password.- operationId: CreateSessionByEmailPassword- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/AuthtypesPostableEmailPasswordSession'- responses:- "200":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/AuthtypesGettableToken'- status:- type: string- type: object- description: OK- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "404":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Not Found- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- summary: Create session by email and password- tags:- - sessions- /api/v2/sessions/rotate:- post:- deprecated: false- description: This endpoint rotates the session- operationId: RotateSession- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/AuthtypesPostableRotateToken'- responses:- "200":- content:- application/json:- schema:- properties:- data:- $ref: '#/components/schemas/AuthtypesGettableToken'- status:- type: string- type: object- description: OK- "400":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Bad Request- "500":- content:- application/json:- schema:- $ref: '#/components/schemas/RenderErrorResponse'- description: Internal Server Error- summary: Rotate session- tags:- - sessions-components:- schemas:- AuthtypesAttributeMapping:+ description:+ type: string+ kind:+ type: string+ name:+ type: string+ resolvedValue: {}+ stage:+ type: string+ variants:+ additionalProperties: {}+ nullable: true+ type: object+ type: object+ GatewaytypesGettableCreatedIngestionKey:+ properties:+ id:+ type: string+ value:+ type: string+ type: object+ GatewaytypesGettableCreatedIngestionKeyLimit:+ properties:+ id:+ type: string+ type: object+ GatewaytypesGettableIngestionKeys:+ properties:+ _pagination:+ $ref: '#/components/schemas/GatewaytypesPagination'+ keys:+ items:+ $ref: '#/components/schemas/GatewaytypesIngestionKey'+ nullable: true+ type: array+ type: object+ GatewaytypesIngestionKey:+ properties:+ created_at:+ format: date-time+ type: string+ expires_at:+ format: date-time+ type: string+ id:+ type: string+ limits:+ items:+ $ref: '#/components/schemas/GatewaytypesLimit'+ nullable: true+ type: array+ name:+ type: string+ tags:+ items:+ type: string+ nullable: true+ type: array+ updated_at:+ format: date-time+ type: string+ value:+ type: string+ workspace_id:+ type: string+ type: object+ GatewaytypesLimit:+ properties:+ config:+ $ref: '#/components/schemas/GatewaytypesLimitConfig'+ created_at:+ format: date-time+ type: string+ id:+ type: string+ key_id:+ type: string+ metric:+ $ref: '#/components/schemas/GatewaytypesLimitMetric'+ signal:+ type: string+ tags:+ items:+ type: string+ nullable: true+ type: array+ updated_at:+ format: date-time+ type: string+ type: object+ GatewaytypesLimitConfig:+ properties:+ day:+ $ref: '#/components/schemas/GatewaytypesLimitValue'+ second:+ $ref: '#/components/schemas/GatewaytypesLimitValue'+ type: object+ GatewaytypesLimitMetric:+ properties:+ day:+ $ref: '#/components/schemas/GatewaytypesLimitMetricValue'+ second:+ $ref: '#/components/schemas/GatewaytypesLimitMetricValue'+ type: object+ GatewaytypesLimitMetricValue:+ properties:+ count:+ format: int64+ type: integer+ size:+ format: int64+ type: integer+ type: object+ GatewaytypesLimitValue:+ properties:+ count:+ format: int64+ type: integer+ size:+ format: int64+ type: integer+ type: object+ GatewaytypesPagination:+ properties:+ page:+ type: integer+ pages:+ type: integer+ per_page:+ type: integer+ total:+ type: integer+ type: object+ GatewaytypesPostableIngestionKey:+ properties:+ expires_at:+ format: date-time+ type: string+ name:+ type: string+ tags:+ items:+ type: string+ nullable: true+ type: array+ type: object+ GatewaytypesPostableIngestionKeyLimit:+ properties:+ config:+ $ref: '#/components/schemas/GatewaytypesLimitConfig'+ signal:+ type: string+ tags:+ items:+ type: string+ nullable: true+ type: array+ type: object+ GatewaytypesUpdatableIngestionKeyLimit:+ properties:+ config:+ $ref: '#/components/schemas/GatewaytypesLimitConfig'+ tags:+ items:+ type: string+ nullable: true+ type: array+ type: object+ MetricsexplorertypesMetricAlert:+ properties:+ alertId:+ type: string+ alertName:+ type: string+ required:+ - alertName+ - alertId+ type: object+ MetricsexplorertypesMetricAlertsResponse:+ properties:+ alerts:+ items:+ $ref: '#/components/schemas/MetricsexplorertypesMetricAlert'+ nullable: true+ type: array+ required:+ - alerts+ type: object+ MetricsexplorertypesMetricAttribute:+ properties:+ key:+ type: string+ valueCount:+ minimum: 0+ type: integer+ values:+ items:+ type: string+ nullable: true+ type: array+ required:+ - key+ - values+ - valueCount+ type: object+ MetricsexplorertypesMetricAttributesRequest:+ properties:+ end:+ nullable: true+ type: integer+ metricName:+ type: string+ start:+ nullable: true+ type: integer+ required:+ - metricName+ type: object+ MetricsexplorertypesMetricAttributesResponse:+ properties:+ attributes:+ items:+ $ref: '#/components/schemas/MetricsexplorertypesMetricAttribute'+ nullable: true+ type: array+ totalKeys:+ format: int64+ type: integer+ required:+ - attributes+ - totalKeys+ type: object+ MetricsexplorertypesMetricDashboard:properties:- email:+ dashboardId:type: string- groups:+ dashboardName:type: string- name:+ widgetId:type: string- role:+ widgetName:type: string+ required:+ - dashboardName+ - dashboardId+ - widgetId+ - widgetNametype: object- AuthtypesAuthDomainConfig:+ MetricsexplorertypesMetricDashboardsResponse:properties:- googleAuthConfig:- $ref: '#/components/schemas/AuthtypesGoogleConfig'- oidcConfig:- $ref: '#/components/schemas/AuthtypesOIDCConfig'- roleMapping:- $ref: '#/components/schemas/AuthtypesRoleMapping'- samlConfig:- $ref: '#/components/schemas/AuthtypesSamlConfig'- ssoEnabled:+ dashboards:+ items:+ $ref: '#/components/schemas/MetricsexplorertypesMetricDashboard'+ nullable: true+ type: array+ required:+ - dashboards+ type: object+ MetricsexplorertypesMetricHighlightsResponse:+ properties:+ activeTimeSeries:+ minimum: 0+ type: integer+ dataPoints:+ minimum: 0+ type: integer+ lastReceived:+ minimum: 0+ type: integer+ totalTimeSeries:+ minimum: 0+ type: integer+ required:+ - dataPoints+ - lastReceived+ - totalTimeSeries+ - activeTimeSeries+ type: object+ MetricsexplorertypesMetricMetadata:+ properties:+ description:+ type: string+ isMonotonic:type: boolean- ssoType:+ temporality:+ $ref: '#/components/schemas/MetrictypesTemporality'+ type:+ $ref: '#/components/schemas/MetrictypesType'+ unit:type: string+ required:+ - description+ - type+ - unit+ - temporality+ - isMonotonictype: object- AuthtypesAuthNProviderInfo:+ MetricsexplorertypesStat:properties:- relayStatePath:+ description:+ type: string+ metricName:+ type: string+ samples:+ minimum: 0+ type: integer+ timeseries:+ minimum: 0+ type: integer+ type:+ $ref: '#/components/schemas/MetrictypesType'+ unit:+ type: string+ required:+ - metricName+ - description+ - type+ - unit+ - timeseries+ - samples+ type: object+ MetricsexplorertypesStatsRequest:+ properties:+ end:+ format: int64+ type: integer+ filter:+ $ref: '#/components/schemas/Querybuildertypesv5Filter'+ limit:+ type: integer+ offset:+ type: integer+ orderBy:+ $ref: '#/components/schemas/Querybuildertypesv5OrderBy'+ start:+ format: int64+ type: integer+ required:+ - start+ - end+ - limit+ type: object+ MetricsexplorertypesStatsResponse:+ properties:+ metrics:+ items:+ $ref: '#/components/schemas/MetricsexplorertypesStat'nullable: true+ type: array+ total:+ minimum: 0+ type: integer+ required:+ - metrics+ - total+ type: object+ MetricsexplorertypesTreemapEntry:+ properties:+ metricName:type: string+ percentage:+ format: double+ type: number+ totalValue:+ minimum: 0+ type: integer+ required:+ - metricName+ - percentage+ - totalValuetype: object- AuthtypesAuthNSupport:+ MetricsexplorertypesTreemapMode:+ enum:+ - timeseries+ - samples+ type: string+ MetricsexplorertypesTreemapRequest:properties:- callback:+ end:+ format: int64+ type: integer+ filter:+ $ref: '#/components/schemas/Querybuildertypesv5Filter'+ limit:+ type: integer+ mode:+ $ref: '#/components/schemas/MetricsexplorertypesTreemapMode'+ start:+ format: int64+ type: integer+ required:+ - start+ - end+ - limit+ - mode+ type: object+ MetricsexplorertypesTreemapResponse:+ properties:+ samples:items:- $ref: '#/components/schemas/AuthtypesCallbackAuthNSupport'+ $ref: '#/components/schemas/MetricsexplorertypesTreemapEntry'nullable: truetype: array- password:+ timeseries:items:- $ref: '#/components/schemas/AuthtypesPasswordAuthNSupport'+ $ref: '#/components/schemas/MetricsexplorertypesTreemapEntry'nullable: truetype: array+ required:+ - timeseries+ - samplestype: object- AuthtypesCallbackAuthNSupport:+ MetricsexplorertypesUpdateMetricMetadataRequest:properties:- provider:+ description:type: string- url:+ isMonotonic:+ type: boolean+ metricName:type: string+ temporality:+ $ref: '#/components/schemas/MetrictypesTemporality'+ type:+ $ref: '#/components/schemas/MetrictypesType'+ unit:+ type: string+ required:+ - metricName+ - type+ - description+ - unit+ - temporality+ - isMonotonictype: object- AuthtypesGettableAuthDomain:+ MetrictypesSpaceAggregation:+ enum:+ - sum+ - avg+ - min+ - max+ - count+ - p50+ - p75+ - p90+ - p95+ - p99+ type: string+ MetrictypesTemporality:+ enum:+ - delta+ - cumulative+ - unspecified+ type: string+ MetrictypesTimeAggregation:+ enum:+ - latest+ - sum+ - avg+ - min+ - max+ - count+ - count_distinct+ - rate+ - increase+ type: string+ MetrictypesType:+ enum:+ - gauge+ - sum+ - histogram+ - summary+ - exponentialhistogram+ type: string+ PreferencetypesPreference:properties:- authNProviderInfo:- $ref: '#/components/schemas/AuthtypesAuthNProviderInfo'- createdAt:- format: date-time- type: string- googleAuthConfig:- $ref: '#/components/schemas/AuthtypesGoogleConfig'- id:+ allowedScopes:+ items:+ type: string+ nullable: true+ type: array+ allowedValues:+ items:+ type: string+ nullable: true+ type: array+ defaultValue:+ $ref: '#/components/schemas/PreferencetypesValue'+ description:type: stringname:type: string- oidcConfig:- $ref: '#/components/schemas/AuthtypesOIDCConfig'- orgId:- type: string- roleMapping:- $ref: '#/components/schemas/AuthtypesRoleMapping'- samlConfig:- $ref: '#/components/schemas/AuthtypesSamlConfig'- ssoEnabled:- type: boolean- ssoType:- type: string- updatedAt:- format: date-time+ value:+ $ref: '#/components/schemas/PreferencetypesValue'+ valueType:type: stringtype: object- AuthtypesGettableToken:+ PreferencetypesUpdatablePreference:properties:- accessToken:- type: string- expiresIn:- type: integer- refreshToken:- type: string- tokenType:- type: string+ value: {}type: object- AuthtypesGoogleConfig:+ PreferencetypesValue:+ type: object+ PromotetypesPromotePath:properties:- allowedGroups:+ indexes:items:- type: string+ $ref: '#/components/schemas/PromotetypesWrappedIndex'type: array- clientId:- type: string- clientSecret:+ path:type: string- domainToAdminEmail:- additionalProperties:- type: string- type: object- fetchGroups:- type: boolean- fetchTransitiveGroupMembership:- type: boolean- insecureSkipEmailVerified:+ promote:type: boolean- redirectURI:- type: string- serviceAccountJson:- type: stringtype: object- AuthtypesOIDCConfig:+ PromotetypesWrappedIndex:properties:- claimMapping:- $ref: '#/components/schemas/AuthtypesAttributeMapping'- clientId:- type: string- clientSecret:- type: string- getUserInfo:- type: boolean- insecureSkipEmailVerified:- type: boolean- issuer:+ column_type:type: string- issuerAlias:+ granularity:+ type: integer+ type:type: stringtype: object- AuthtypesOrgSessionContext:+ Querybuildertypesv5AggregationBucket:properties:- authNSupport:- $ref: '#/components/schemas/AuthtypesAuthNSupport'- id:- type: string- name:+ alias:type: string- warning:- $ref: '#/components/schemas/ErrorsJSON'+ anomalyScores:+ items:+ $ref: '#/components/schemas/Querybuildertypesv5TimeSeries'+ type: array+ index:+ type: integer+ lowerBoundSeries:+ items:+ $ref: '#/components/schemas/Querybuildertypesv5TimeSeries'+ type: array+ meta:+ properties:+ unit:+ type: string+ type: object+ predictedSeries:+ items:+ $ref: '#/components/schemas/Querybuildertypesv5TimeSeries'+ type: array+ series:+ items:+ $ref: '#/components/schemas/Querybuildertypesv5TimeSeries'+ nullable: true+ type: array+ upperBoundSeries:+ items:+ $ref: '#/components/schemas/Querybuildertypesv5TimeSeries'+ type: arraytype: object- AuthtypesPasswordAuthNSupport:+ Querybuildertypesv5Bucket:properties:- provider:- type: string+ step:+ format: double+ type: numbertype: object- AuthtypesPostableAuthDomain:+ Querybuildertypesv5ClickHouseQuery:properties:- config:- $ref: '#/components/schemas/AuthtypesAuthDomainConfig'+ disabled:+ type: boolean+ legend:+ type: stringname:type: string+ query:+ type: stringtype: object- AuthtypesPostableEmailPasswordSession:+ Querybuildertypesv5ColumnDescriptor:properties:- email:+ aggregationIndex:+ format: int64+ type: integer+ columnType:+ $ref: '#/components/schemas/Querybuildertypesv5ColumnType'+ description:type: string- orgId:+ fieldContext:+ $ref: '#/components/schemas/TelemetrytypesFieldContext'+ fieldDataType:+ $ref: '#/components/schemas/TelemetrytypesFieldDataType'+ meta:+ properties:+ unit:+ type: string+ type: object+ name:type: string- password:+ queryName:+ type: string+ signal:+ $ref: '#/components/schemas/TelemetrytypesSignal'+ unit:type: string+ required:+ - nametype: object- AuthtypesPostableRotateToken:+ Querybuildertypesv5ColumnType:+ enum:+ - group+ - aggregation+ type: string+ Querybuildertypesv5CompositeQuery:+ description: Composite query containing one or more query envelopes. Each query+ envelope specifies its type and corresponding spec.properties:- refreshToken:- type: string+ queries:+ items:+ $ref: '#/components/schemas/Querybuildertypesv5QueryEnvelope'+ nullable: true+ type: arraytype: object- AuthtypesRoleMapping:+ Querybuildertypesv5ExecStats:+ description: Execution statistics for the query, including rows scanned, bytes+ scanned, and duration.properties:- defaultRole:- type: string- groupMappings:+ bytesScanned:+ minimum: 0+ type: integer+ durationMs:+ minimum: 0+ type: integer+ rowsScanned:+ minimum: 0+ type: integer+ stepIntervals:additionalProperties:- type: string- nullable: true+ minimum: 0+ type: integertype: object- useRoleAttribute:- type: booleantype: object- AuthtypesSamlConfig:+ Querybuildertypesv5Filter:properties:- attributeMapping:- $ref: '#/components/schemas/AuthtypesAttributeMapping'- insecureSkipAuthNRequestsSigned:- type: boolean- samlCert:- type: string- samlEntity:- type: string- samlIdp:+ expression:type: stringtype: object- AuthtypesSessionContext:+ Querybuildertypesv5FormatOptions:properties:- exists:+ fillGaps:type: boolean- orgs:+ formatTableResultForUI:+ type: boolean+ type: object+ Querybuildertypesv5Function:+ properties:+ args:items:- $ref: '#/components/schemas/AuthtypesOrgSessionContext'- nullable: true+ $ref: '#/components/schemas/Querybuildertypesv5FunctionArg'type: array+ name:+ $ref: '#/components/schemas/Querybuildertypesv5FunctionName'type: object- AuthtypesUpdateableAuthDomain:+ Querybuildertypesv5FunctionArg:properties:- config:- $ref: '#/components/schemas/AuthtypesAuthDomainConfig'+ name:+ type: string+ value: {}type: object- DashboardtypesDashboard:+ Querybuildertypesv5FunctionName:+ enum:+ - cutoffmin+ - cutoffmax+ - clampmin+ - clampmax+ - absolute+ - runningdiff+ - log2+ - log10+ - cumulativesum+ - ewma3+ - ewma5+ - ewma7+ - median3+ - median5+ - median7+ - timeshift+ - anomaly+ - fillzero+ type: string+ Querybuildertypesv5GroupByKey:properties:- createdAt:- format: date-time- type: string- createdBy:- type: string- data:- $ref: '#/components/schemas/DashboardtypesStorableDashboardData'- id:- type: string- locked:- type: boolean- org_id:+ description:type: string- updatedAt:- format: date-time+ fieldContext:+ $ref: '#/components/schemas/TelemetrytypesFieldContext'+ fieldDataType:+ $ref: '#/components/schemas/TelemetrytypesFieldDataType'+ name:type: string- updatedBy:+ signal:+ $ref: '#/components/schemas/TelemetrytypesSignal'+ unit:type: string+ required:+ - nametype: object- DashboardtypesGettablePublicDasbhboard:+ Querybuildertypesv5Having:properties:- defaultTimeRange:- type: string- publicPath:+ expression:type: string- timeRangeEnabled:- type: booleantype: object- DashboardtypesGettablePublicDashboardData:+ Querybuildertypesv5Label:properties:- dashboard:- $ref: '#/components/schemas/DashboardtypesDashboard'- publicDashboard:- $ref: '#/components/schemas/DashboardtypesGettablePublicDasbhboard'+ key:+ $ref: '#/components/schemas/TelemetrytypesTelemetryFieldKey'+ value: {}type: object- DashboardtypesPostablePublicDashboard:+ Querybuildertypesv5LimitBy:properties:- defaultTimeRange:+ keys:+ items:+ type: string+ nullable: true+ type: array+ value:type: string- timeRangeEnabled:- type: boolean- type: object- DashboardtypesStorableDashboardData:- additionalProperties: {}type: object- DashboardtypesUpdatablePublicDashboard:+ Querybuildertypesv5LogAggregation:properties:- defaultTimeRange:+ alias:+ type: string+ expression:type: string- timeRangeEnabled:- type: booleantype: object- ErrorsJSON:+ Querybuildertypesv5MetricAggregation:properties:- code:- type: string- errors:- items:- $ref: '#/components/schemas/ErrorsResponseerroradditional'- type: array- message:- type: string- url:+ metricName:type: string+ reduceTo:+ $ref: '#/components/schemas/Querybuildertypesv5ReduceTo'+ spaceAggregation:+ $ref: '#/components/schemas/MetrictypesSpaceAggregation'+ temporality:+ $ref: '#/components/schemas/MetrictypesTemporality'+ timeAggregation:+ $ref: '#/components/schemas/MetrictypesTimeAggregation'type: object- ErrorsResponseerroradditional:+ Querybuildertypesv5OrderBy:properties:- message:- type: string+ direction:+ $ref: '#/components/schemas/Querybuildertypesv5OrderDirection'+ key:+ $ref: '#/components/schemas/Querybuildertypesv5OrderByKey'type: object- FeaturetypesGettableFeature:+ Querybuildertypesv5OrderByKey:properties:- defaultVariant:- type: stringdescription:type: string- kind:- type: string+ fieldContext:+ $ref: '#/components/schemas/TelemetrytypesFieldContext'+ fieldDataType:+ $ref: '#/components/schemas/TelemetrytypesFieldDataType'name:type: string- resolvedValue: {}- stage:+ signal:+ $ref: '#/components/schemas/TelemetrytypesSignal'+ unit:type: string- variants:- additionalProperties: {}- nullable: true- type: object+ required:+ - nametype: object- GatewaytypesGettableCreatedIngestionKey:+ Querybuildertypesv5OrderDirection:+ enum:+ - asc+ - desc+ type: string+ Querybuildertypesv5PromQuery:properties:- id:+ disabled:+ type: boolean+ legend:type: string- value:+ name:type: string- type: object- GatewaytypesGettableCreatedIngestionKeyLimit:- properties:- id:+ query:type: string+ stats:+ type: boolean+ step:+ $ref: '#/components/schemas/Querybuildertypesv5Step'type: object- GatewaytypesGettableIngestionKeys:- properties:- _pagination:- $ref: '#/components/schemas/GatewaytypesPagination'- keys:- items:- $ref: '#/components/schemas/GatewaytypesIngestionKey'- nullable: true- type: array- type: object- GatewaytypesIngestionKey:+ Querybuildertypesv5QueryBuilderFormula:properties:- created_at:- format: date-time- type: string- expires_at:- format: date-time- type: string- id:+ disabled:+ type: boolean+ expression:type: string- limits:+ functions:items:- $ref: '#/components/schemas/GatewaytypesLimit'- nullable: true+ $ref: '#/components/schemas/Querybuildertypesv5Function'type: array+ having:+ $ref: '#/components/schemas/Querybuildertypesv5Having'+ legend:+ type: string+ limit:+ type: integername:type: string- tags:+ order:items:- type: string- nullable: true+ $ref: '#/components/schemas/Querybuildertypesv5OrderBy'type: array- updated_at:- format: date-time- type: string- value:- type: string- workspace_id:- type: stringtype: object- GatewaytypesLimit:+ Querybuildertypesv5QueryBuilderQueryGithubComSigNozSignozPkgTypesQuerybuildertypesQuerybuildertypesv5LogAggregation:properties:- config:- $ref: '#/components/schemas/GatewaytypesLimitConfig'- created_at:- format: date-time- type: string- id:- type: string- key_id:- type: string- metric:- $ref: '#/components/schemas/GatewaytypesLimitMetric'- signal:+ aggregations:+ items:+ $ref: '#/components/schemas/Querybuildertypesv5LogAggregation'+ type: array+ cursor:type: string- tags:+ disabled:+ type: boolean+ filter:+ $ref: '#/components/schemas/Querybuildertypesv5Filter'+ functions:items:- type: string- nullable: true+ $ref: '#/components/schemas/Querybuildertypesv5Function'type: array- updated_at:- format: date-time+ groupBy:+ items:+ $ref: '#/components/schemas/Querybuildertypesv5GroupByKey'+ type: array+ having:+ $ref: '#/components/schemas/Querybuildertypesv5Having'+ legend:type: string- type: object- GatewaytypesLimitConfig:- properties:- day:- $ref: '#/components/schemas/GatewaytypesLimitValue'- second:- $ref: '#/components/schemas/GatewaytypesLimitValue'- type: object- GatewaytypesLimitMetric:- properties:- day:- $ref: '#/components/schemas/GatewaytypesLimitMetricValue'- second:- $ref: '#/components/schemas/GatewaytypesLimitMetricValue'- type: object- GatewaytypesLimitMetricValue:- properties:- count:- format: int64+ limit:type: integer- size:- format: int64+ limitBy:+ $ref: '#/components/schemas/Querybuildertypesv5LimitBy'+ name:+ type: string+ offset:type: integer+ order:+ items:+ $ref: '#/components/schemas/Querybuildertypesv5OrderBy'+ type: array+ secondaryAggregations:+ items:+ $ref: '#/components/schemas/Querybuildertypesv5SecondaryAggregation'+ type: array+ selectFields:+ items:+ $ref: '#/components/schemas/TelemetrytypesTelemetryFieldKey'+ type: array+ signal:+ $ref: '#/components/schemas/TelemetrytypesSignal'+ source:+ $ref: '#/components/schemas/TelemetrytypesSource'+ stepInterval:+ $ref: '#/components/schemas/Querybuildertypesv5Step'type: object- GatewaytypesLimitValue:+ Querybuildertypesv5QueryBuilderQueryGithubComSigNozSignozPkgTypesQuerybuildertypesQuerybuildertypesv5MetricAggregation:properties:- count:- format: int64+ aggregations:+ items:+ $ref: '#/components/schemas/Querybuildertypesv5MetricAggregation'+ type: array+ cursor:+ type: string+ disabled:+ type: boolean+ filter:+ $ref: '#/components/schemas/Querybuildertypesv5Filter'+ functions:+ items:+ $ref: '#/components/schemas/Querybuildertypesv5Function'+ type: array+ groupBy:+ items:+ $ref: '#/components/schemas/Querybuildertypesv5GroupByKey'+ type: array+ having:+ $ref: '#/components/schemas/Querybuildertypesv5Having'+ legend:+ type: string+ limit:type: integer- size:- format: int64+ limitBy:+ $ref: '#/components/schemas/Querybuildertypesv5LimitBy'+ name:+ type: string+ offset:type: integer+ order:+ items:+ $ref: '#/components/schemas/Querybuildertypesv5OrderBy'+ type: array+ secondaryAggregations:+ items:+ $ref: '#/components/schemas/Querybuildertypesv5SecondaryAggregation'+ type: array+ selectFields:+ items:+ $ref: '#/components/schemas/TelemetrytypesTelemetryFieldKey'+ type: array+ signal:+ $ref: '#/components/schemas/TelemetrytypesSignal'+ source:+ $ref: '#/components/schemas/TelemetrytypesSource'+ stepInterval:+ $ref: '#/components/schemas/Querybuildertypesv5Step'type: object- GatewaytypesPagination:+ Querybuildertypesv5QueryBuilderQueryGithubComSigNozSignozPkgTypesQuerybuildertypesQuerybuildertypesv5TraceAggregation:properties:- page:- type: integer- pages:- type: integer- per_page:+ aggregations:+ items:+ $ref: '#/components/schemas/Querybuildertypesv5TraceAggregation'+ type: array+ cursor:+ type: string+ disabled:+ type: boolean+ filter:+ $ref: '#/components/schemas/Querybuildertypesv5Filter'+ functions:+ items:+ $ref: '#/components/schemas/Querybuildertypesv5Function'+ type: array+ groupBy:+ items:+ $ref: '#/components/schemas/Querybuildertypesv5GroupByKey'+ type: array+ having:+ $ref: '#/components/schemas/Querybuildertypesv5Having'+ legend:+ type: string+ limit:type: integer- total:+ limitBy:+ $ref: '#/components/schemas/Querybuildertypesv5LimitBy'+ name:+ type: string+ offset:type: integer+ order:+ items:+ $ref: '#/components/schemas/Querybuildertypesv5OrderBy'+ type: array+ secondaryAggregations:+ items:+ $ref: '#/components/schemas/Querybuildertypesv5SecondaryAggregation'+ type: array+ selectFields:+ items:+ $ref: '#/components/schemas/TelemetrytypesTelemetryFieldKey'+ type: array+ signal:+ $ref: '#/components/schemas/TelemetrytypesSignal'+ source:+ $ref: '#/components/schemas/TelemetrytypesSource'+ stepInterval:+ $ref: '#/components/schemas/Querybuildertypesv5Step'type: object- GatewaytypesPostableIngestionKey:+ Querybuildertypesv5QueryBuilderTraceOperator:properties:- expires_at:- format: date-time+ aggregations:+ items:+ $ref: '#/components/schemas/Querybuildertypesv5TraceAggregation'+ type: array+ cursor:+ type: string+ disabled:+ type: boolean+ expression:+ type: string+ filter:+ $ref: '#/components/schemas/Querybuildertypesv5Filter'+ functions:+ items:+ $ref: '#/components/schemas/Querybuildertypesv5Function'+ type: array+ groupBy:+ items:+ $ref: '#/components/schemas/Querybuildertypesv5GroupByKey'+ type: array+ having:+ $ref: '#/components/schemas/Querybuildertypesv5Having'+ legend:type: string+ limit:+ type: integername:type: string- tags:+ offset:+ type: integer+ order:items:- type: string- nullable: true+ $ref: '#/components/schemas/Querybuildertypesv5OrderBy'type: array- type: object- GatewaytypesPostableIngestionKeyLimit:- properties:- config:- $ref: '#/components/schemas/GatewaytypesLimitConfig'- signal:+ returnSpansFrom:type: string- tags:+ selectFields:items:- type: string- nullable: true+ $ref: '#/components/schemas/TelemetrytypesTelemetryFieldKey'type: array+ stepInterval:+ $ref: '#/components/schemas/Querybuildertypesv5Step'type: object- GatewaytypesUpdatableIngestionKeyLimit:+ Querybuildertypesv5QueryData:+ oneOf:+ - $ref: '#/components/schemas/Querybuildertypesv5TimeSeriesData'+ - $ref: '#/components/schemas/Querybuildertypesv5ScalarData'+ - $ref: '#/components/schemas/Querybuildertypesv5RawData'properties:- config:- $ref: '#/components/schemas/GatewaytypesLimitConfig'- tags:- items:- type: string+ results:+ items: {}nullable: truetype: arraytype: object- MetricsexplorertypesMetricAlert:+ Querybuildertypesv5QueryEnvelope:+ oneOf:+ - $ref: '#/components/schemas/Querybuildertypesv5QueryEnvelopeBuilderTrace'+ - $ref: '#/components/schemas/Querybuildertypesv5QueryEnvelopeBuilderLog'+ - $ref: '#/components/schemas/Querybuildertypesv5QueryEnvelopeBuilderMetric'+ - $ref: '#/components/schemas/Querybuildertypesv5QueryEnvelopeFormula'+ - $ref: '#/components/schemas/Querybuildertypesv5QueryEnvelopeTraceOperator'+ - $ref: '#/components/schemas/Querybuildertypesv5QueryEnvelopePromQL'+ - $ref: '#/components/schemas/Querybuildertypesv5QueryEnvelopeClickHouseSQL'properties:- alertId:- type: string- alertName:- type: string- required:- - alertName- - alertId+ spec: {}+ type:+ $ref: '#/components/schemas/Querybuildertypesv5QueryType'type: object- MetricsexplorertypesMetricAlertsResponse:+ Querybuildertypesv5QueryEnvelopeBuilderLog:properties:- alerts:- items:- $ref: '#/components/schemas/MetricsexplorertypesMetricAlert'- nullable: true- type: array- required:- - alerts+ spec:+ $ref: '#/components/schemas/Querybuildertypesv5QueryBuilderQueryGithubComSigNozSignozPkgTypesQuerybuildertypesQuerybuildertypesv5LogAggregation'+ type:+ $ref: '#/components/schemas/Querybuildertypesv5QueryType'type: object- MetricsexplorertypesMetricAttribute:+ Querybuildertypesv5QueryEnvelopeBuilderMetric:properties:- key:- type: string- valueCount:- minimum: 0- type: integer- values:- items:- type: string- nullable: true- type: array- required:- - key- - values- - valueCount+ spec:+ $ref: '#/components/schemas/Querybuildertypesv5QueryBuilderQueryGithubComSigNozSignozPkgTypesQuerybuildertypesQuerybuildertypesv5MetricAggregation'+ type:+ $ref: '#/components/schemas/Querybuildertypesv5QueryType'type: object- MetricsexplorertypesMetricAttributesRequest:+ Querybuildertypesv5QueryEnvelopeBuilderTrace:properties:- end:- nullable: true- type: integer- metricName:- type: string- start:- nullable: true- type: integer- required:- - metricName+ spec:+ $ref: '#/components/schemas/Querybuildertypesv5QueryBuilderQueryGithubComSigNozSignozPkgTypesQuerybuildertypesQuerybuildertypesv5TraceAggregation'+ type:+ $ref: '#/components/schemas/Querybuildertypesv5QueryType'type: object- MetricsexplorertypesMetricAttributesResponse:+ Querybuildertypesv5QueryEnvelopeClickHouseSQL:properties:- attributes:- items:- $ref: '#/components/schemas/MetricsexplorertypesMetricAttribute'- nullable: true- type: array- totalKeys:- format: int64- type: integer- required:- - attributes- - totalKeys+ spec:+ $ref: '#/components/schemas/Querybuildertypesv5ClickHouseQuery'+ type:+ $ref: '#/components/schemas/Querybuildertypesv5QueryType'type: object- MetricsexplorertypesMetricDashboard:+ Querybuildertypesv5QueryEnvelopeFormula:properties:- dashboardId:- type: string- dashboardName:- type: string- widgetId:- type: string- widgetName:- type: string- required:- - dashboardName- - dashboardId- - widgetId- - widgetName+ spec:+ $ref: '#/components/schemas/Querybuildertypesv5QueryBuilderFormula'+ type:+ $ref: '#/components/schemas/Querybuildertypesv5QueryType'type: object- MetricsexplorertypesMetricDashboardsResponse:+ Querybuildertypesv5QueryEnvelopePromQL:properties:- dashboards:- items:- $ref: '#/components/schemas/MetricsexplorertypesMetricDashboard'- nullable: true- type: array- required:- - dashboards+ spec:+ $ref: '#/components/schemas/Querybuildertypesv5PromQuery'+ type:+ $ref: '#/components/schemas/Querybuildertypesv5QueryType'type: object- MetricsexplorertypesMetricHighlightsResponse:+ Querybuildertypesv5QueryEnvelopeTraceOperator:properties:- activeTimeSeries:- minimum: 0- type: integer- dataPoints:- minimum: 0- type: integer- lastReceived:+ spec:+ $ref: '#/components/schemas/Querybuildertypesv5QueryBuilderTraceOperator'+ type:+ $ref: '#/components/schemas/Querybuildertypesv5QueryType'+ type: object+ Querybuildertypesv5QueryRangeRequest:+ description: Request body for the v5 query range endpoint. Supports builder+ queries (traces, logs, metrics), formulas, joins, trace operators, PromQL,+ and ClickHouse SQL queries.+ properties:+ compositeQuery:+ $ref: '#/components/schemas/Querybuildertypesv5CompositeQuery'+ end:minimum: 0type: integer- totalTimeSeries:+ formatOptions:+ $ref: '#/components/schemas/Querybuildertypesv5FormatOptions'+ noCache:+ type: boolean+ requestType:+ $ref: '#/components/schemas/Querybuildertypesv5RequestType'+ schemaVersion:+ type: string+ start:minimum: 0type: integer- required:- - dataPoints- - lastReceived- - totalTimeSeries- - activeTimeSeries+ variables:+ additionalProperties:+ $ref: '#/components/schemas/Querybuildertypesv5VariableItem'+ type: objecttype: object- MetricsexplorertypesMetricMetadata:+ Querybuildertypesv5QueryRangeResponse:+ description: 'Response from the v5 query range endpoint. The data.results array+ contains typed results depending on the requestType: TimeSeriesData for time_series,+ ScalarData for scalar, or RawData for raw requests.'properties:- description:- type: string- isMonotonic:- type: boolean- temporality:- $ref: '#/components/schemas/MetrictypesTemporality'+ data:+ $ref: '#/components/schemas/Querybuildertypesv5QueryData'+ meta:+ $ref: '#/components/schemas/Querybuildertypesv5ExecStats'type:- $ref: '#/components/schemas/MetrictypesType'- unit:- type: string- required:- - description- - type- - unit- - temporality- - isMonotonic+ $ref: '#/components/schemas/Querybuildertypesv5RequestType'+ warning:+ $ref: '#/components/schemas/Querybuildertypesv5QueryWarnData'type: object- MetricsexplorertypesStat:+ Querybuildertypesv5QueryType:+ enum:+ - builder_query+ - builder_formula+ - builder_trace_operator+ - clickhouse_sql+ - promql+ type: string+ Querybuildertypesv5QueryWarnData:properties:- description:- type: string- metricName:+ message:type: string- samples:- minimum: 0- type: integer- timeseries:- minimum: 0- type: integer- type:- $ref: '#/components/schemas/MetrictypesType'- unit:+ url:type: string- required:- - metricName- - description- - type- - unit- - timeseries- - samples+ warnings:+ items:+ $ref: '#/components/schemas/Querybuildertypesv5QueryWarnDataAdditional'+ type: arraytype: object- MetricsexplorertypesStatsRequest:+ Querybuildertypesv5QueryWarnDataAdditional:properties:- end:- format: int64- type: integer- filter:- $ref: '#/components/schemas/Querybuildertypesv5Filter'- limit:- type: integer- offset:- type: integer- orderBy:- $ref: '#/components/schemas/Querybuildertypesv5OrderBy'- start:- format: int64- type: integer- required:- - start- - end- - limit+ message:+ type: stringtype: object- MetricsexplorertypesStatsResponse:+ Querybuildertypesv5RawData:properties:- metrics:+ nextCursor:+ type: string+ queryName:+ type: string+ rows:items:- $ref: '#/components/schemas/MetricsexplorertypesStat'+ $ref: '#/components/schemas/Querybuildertypesv5RawRow'nullable: truetype: array- total:- minimum: 0- type: integer- required:- - metrics- - totaltype: object- MetricsexplorertypesTreemapEntry:+ Querybuildertypesv5RawRow:properties:- metricName:+ data:+ additionalProperties: {}+ nullable: true+ type: object+ timestamp:+ format: date-timetype: string- percentage:- format: double- type: number- totalValue:- minimum: 0- type: integer- required:- - metricName- - percentage- - totalValuetype: object- MetricsexplorertypesTreemapMode:+ Querybuildertypesv5ReduceTo:enum:- - timeseries- - samples+ - sum+ - count+ - avg+ - min+ - max+ - last+ - mediantype: string- MetricsexplorertypesTreemapRequest:+ Querybuildertypesv5RequestType:+ enum:+ - scalar+ - time_series+ - raw+ - raw_stream+ - trace+ type: string+ Querybuildertypesv5ScalarData:properties:- end:- format: int64- type: integer- filter:- $ref: '#/components/schemas/Querybuildertypesv5Filter'+ columns:+ items:+ $ref: '#/components/schemas/Querybuildertypesv5ColumnDescriptor'+ nullable: true+ type: array+ data:+ items:+ items: {}+ type: array+ nullable: true+ type: array+ queryName:+ type: string+ type: object+ Querybuildertypesv5SecondaryAggregation:+ properties:+ alias:+ type: string+ expression:+ type: string+ groupBy:+ items:+ $ref: '#/components/schemas/Querybuildertypesv5GroupByKey'+ type: arraylimit:type: integer- mode:- $ref: '#/components/schemas/MetricsexplorertypesTreemapMode'- start:- format: int64- type: integer- required:- - start- - end- - limit- - mode+ limitBy:+ $ref: '#/components/schemas/Querybuildertypesv5LimitBy'+ order:+ items:+ $ref: '#/components/schemas/Querybuildertypesv5OrderBy'+ type: array+ stepInterval:+ $ref: '#/components/schemas/Querybuildertypesv5Step'type: object- MetricsexplorertypesTreemapResponse:+ Querybuildertypesv5Step:+ description: Step interval. Accepts a Go duration string (e.g., "60s", "1m",+ "1h") or a number representing seconds (e.g., 60).+ oneOf:+ - description: Duration string (e.g., "60s", "5m", "1h").+ example: 60s+ type: string+ - description: Duration in seconds.+ example: 60+ type: number+ Querybuildertypesv5TimeSeries:properties:- samples:+ labels:items:- $ref: '#/components/schemas/MetricsexplorertypesTreemapEntry'+ $ref: '#/components/schemas/Querybuildertypesv5Label'+ type: array+ values:+ items:+ $ref: '#/components/schemas/Querybuildertypesv5TimeSeriesValue'nullable: truetype: array- timeseries:+ type: object+ Querybuildertypesv5TimeSeriesData:+ properties:+ aggregations:items:- $ref: '#/components/schemas/MetricsexplorertypesTreemapEntry'+ $ref: '#/components/schemas/Querybuildertypesv5AggregationBucket'nullable: truetype: array- required:- - timeseries- - samples+ queryName:+ type: string+ type: object+ Querybuildertypesv5TimeSeriesValue:+ properties:+ bucket:+ $ref: '#/components/schemas/Querybuildertypesv5Bucket'+ partial:+ type: boolean+ timestamp:+ format: int64+ type: integer+ value:+ format: double+ type: number+ values:+ items:+ format: double+ type: number+ type: array+ type: object+ Querybuildertypesv5TraceAggregation:+ properties:+ alias:+ type: string+ expression:+ type: string+ type: object+ Querybuildertypesv5VariableItem:+ properties:+ type:+ $ref: '#/components/schemas/Querybuildertypesv5VariableType'+ value: {}+ type: object+ Querybuildertypesv5VariableType:+ enum:+ - query+ - dynamic+ - custom+ - text+ type: string+ RenderErrorResponse:+ properties:+ error:+ $ref: '#/components/schemas/ErrorsJSON'+ status:+ type: stringtype: object- MetricsexplorertypesUpdateMetricMetadataRequest:+ RoletypesRole:properties:+ createdAt:+ format: date-time+ type: stringdescription:type: string- isMonotonic:- type: boolean- metricName:+ id:+ type: string+ name:+ type: string+ orgId:type: string- temporality:- $ref: '#/components/schemas/MetrictypesTemporality'type:- $ref: '#/components/schemas/MetrictypesType'- unit:type: string+ updatedAt:+ format: date-time+ type: string+ type: object+ TelemetrytypesFieldContext:+ enum:+ - metric+ - log+ - span+ - resource+ - attribute+ - body+ type: string+ TelemetrytypesFieldDataType:+ enum:+ - string+ - bool+ - float64+ - int64+ - number+ type: string+ TelemetrytypesGettableFieldKeys:+ properties:+ complete:+ type: boolean+ keys:+ additionalProperties:+ items:+ $ref: '#/components/schemas/TelemetrytypesTelemetryFieldKey'+ type: array+ nullable: true+ type: objectrequired:- - metricName- - type- - description- - unit- - temporality- - isMonotonic+ - keys+ - completetype: object- MetrictypesTemporality:+ TelemetrytypesGettableFieldValues:+ properties:+ complete:+ type: boolean+ values:+ $ref: '#/components/schemas/TelemetrytypesTelemetryFieldValues'+ required:+ - values+ - complete+ type: object+ TelemetrytypesSignal:enum:- - delta- - cumulative- - unspecified+ - traces+ - logs+ - metricstype: string- MetrictypesType:+ TelemetrytypesSource:enum:- - gauge- - sum- - histogram- - summary- - exponentialhistogram+ - metertype: string- PreferencetypesPreference:+ TelemetrytypesTelemetryFieldKey:properties:- allowedScopes:+ description:+ type: string+ fieldContext:+ $ref: '#/components/schemas/TelemetrytypesFieldContext'+ fieldDataType:+ $ref: '#/components/schemas/TelemetrytypesFieldDataType'+ name:+ type: string+ signal:+ $ref: '#/components/schemas/TelemetrytypesSignal'+ unit:+ type: string+ required:+ - name+ type: object+ TelemetrytypesTelemetryFieldValues:+ properties:+ boolValues:+ items:+ type: boolean+ type: array+ numberValues:+ items:+ format: double+ type: number+ type: array+ relatedValues:items:type: string- nullable: truetype: array- allowedValues:+ stringValues:items:type: string- nullable: truetype: array- defaultValue:- $ref: '#/components/schemas/PreferencetypesValue'- description:+ type: object+ TypesChangePasswordRequest:+ properties:+ newPassword:type: string- name:+ oldPassword:type: string- value:- $ref: '#/components/schemas/PreferencetypesValue'- valueType:+ userId:type: stringtype: object- PreferencetypesUpdatablePreference:+ TypesGettableAPIKey:properties:- value: {}+ createdAt:+ format: date-time+ type: string+ createdBy:+ type: string+ createdByUser:+ $ref: '#/components/schemas/TypesUser'+ expiresAt:+ format: int64+ type: integer+ id:+ type: string+ lastUsed:+ format: int64+ type: integer+ name:+ type: string+ revoked:+ type: boolean+ role:+ type: string+ token:+ type: string+ updatedAt:+ format: date-time+ type: string+ updatedBy:+ type: string+ updatedByUser:+ $ref: '#/components/schemas/TypesUser'+ userId:+ type: stringtype: object- PreferencetypesValue:+ TypesGettableGlobalConfig:+ properties:+ external_url:+ type: string+ ingestion_url:+ type: stringtype: object- PromotetypesPromotePath:+ TypesIdentifiable:properties:- indexes:- items:- $ref: '#/components/schemas/PromotetypesWrappedIndex'- type: array- path:+ id:type: string- promote:- type: booleantype: object- PromotetypesWrappedIndex:+ TypesInvite:properties:- column_type:+ createdAt:+ format: date-timetype: string- granularity:- type: integer- type:+ email:+ type: string+ id:+ type: string+ inviteLink:+ type: string+ name:+ type: string+ orgId:+ type: string+ role:+ type: string+ token:+ type: string+ updatedAt:+ format: date-timetype: stringtype: object- Querybuildertypesv5ExecStats:+ TypesOrganization:properties:- bytesScanned:- minimum: 0- type: integer- durationMs:- minimum: 0- type: integer- rowsScanned:+ alias:+ type: string+ createdAt:+ format: date-time+ type: string+ displayName:+ type: string+ id:+ type: string+ key:minimum: 0type: integer- stepIntervals:- additionalProperties:- minimum: 0- type: integer- type: object+ name:+ type: string+ updatedAt:+ format: date-time+ type: stringtype: object- Querybuildertypesv5Filter:+ TypesPostableAPIKey:properties:- expression:+ expiresInDays:+ format: int64+ type: integer+ name:+ type: string+ role:type: stringtype: object- Querybuildertypesv5OrderBy:+ TypesPostableAcceptInvite:properties:- direction:+ displayName:+ type: string+ password:+ type: string+ sourceUrl:+ type: string+ token:type: string- key:- $ref: '#/components/schemas/Querybuildertypesv5OrderByKey'type: object- Querybuildertypesv5OrderByKey:+ TypesPostableForgotPassword:properties:- description:+ email:type: string- fieldContext:+ frontendBaseURL:+ type: string+ orgId:+ type: string+ required:+ - orgId+ type: object+ TypesPostableInvite:+ properties:+ email:type: string- fieldDataType:+ frontendBaseUrl:type: stringname:type: string- signal:- type: string- unit:+ role:type: string- required:- - name- type: object- Querybuildertypesv5QueryData:- properties:- results:- items: {}- nullable: true- type: arraytype: object- Querybuildertypesv5QueryRangeResponse:+ TypesPostableResetPassword:properties:- data:- $ref: '#/components/schemas/Querybuildertypesv5QueryData'- meta:- $ref: '#/components/schemas/Querybuildertypesv5ExecStats'- type:+ password:+ type: string+ token:type: string- warning:- $ref: '#/components/schemas/Querybuildertypesv5QueryWarnData'type: object- Querybuildertypesv5QueryWarnData:+ TypesResetPasswordToken:properties:- message:+ expiresAt:+ format: date-timetype: string- url:+ id:type: string- warnings:- items:- $ref: '#/components/schemas/Querybuildertypesv5QueryWarnDataAdditional'- type: array- type: object- Querybuildertypesv5QueryWarnDataAdditional:- properties:- message:+ passwordId:type: string- type: object- RenderErrorResponse:- properties:- error:- $ref: '#/components/schemas/ErrorsJSON'- status:+ token:type: stringtype: object- RoletypesRole:+ TypesStorableAPIKey:properties:createdAt:format: date-timetype: string- description:+ createdBy:type: stringid:type: stringname:type: string- orgId:+ revoked:+ type: boolean+ role:type: string- type:+ token:type: stringupdatedAt:format: date-timetype: string+ updatedBy:+ type: string+ userId:+ type: stringtype: object- TelemetrytypesGettableFieldKeys:- properties:- complete:- type: boolean- keys:- additionalProperties:- items:- $ref: '#/components/schemas/TelemetrytypesTelemetryFieldKey'- type: array- nullable: true- type: object- required:- - keys- - complete- type: object- TelemetrytypesGettableFieldValues:+ TypesUser:properties:- complete:+ createdAt:+ format: date-time+ type: string+ displayName:+ type: string+ email:+ type: string+ id:+ type: string+ isRoot:type: boolean- values:- $ref: '#/components/schemas/TelemetrytypesTelemetryFieldValues'- required:- - values- - complete+ orgId:+ type: string+ role:+ type: string+ updatedAt:+ format: date-time+ type: stringtype: object- TelemetrytypesTelemetryFieldKey:- properties:- description:+ securitySchemes:+ api_key:+ description: API Keys+ in: header+ name: SigNoz-Api-Key+ type: apiKey+ tokenizer:+ bearerFormat: Tokenizer+ description: Tokens generated by the tokenizer+ scheme: bearer+ type: http+info:+ description: OpenTelemetry-Native Logs, Metrics and Traces in a single pane+ title: SigNoz+ version: ""+openapi: 3.0.3+paths:+ /api/v1/changePassword/{id}:+ post:+ deprecated: false+ description: This endpoint changes the password by id+ operationId: ChangePassword+ parameters:+ - in: path+ name: id+ required: true+ schema:type: string- fieldContext:+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/TypesChangePasswordRequest'+ responses:+ "204":+ description: No Content+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "404":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Not Found+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Change password+ tags:+ - users+ /api/v1/complete/google:+ get:+ deprecated: false+ description: This endpoint creates a session for a user using google callback+ operationId: CreateSessionByGoogleCallback+ responses:+ "303":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/AuthtypesGettableToken'+ status:+ type: string+ type: object+ description: See Other+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "404":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Not Found+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ summary: Create session by google callback+ tags:+ - sessions+ /api/v1/complete/oidc:+ get:+ deprecated: false+ description: This endpoint creates a session for a user using oidc callback+ operationId: CreateSessionByOIDCCallback+ responses:+ "303":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/AuthtypesGettableToken'+ status:+ type: string+ type: object+ description: See Other+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "404":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Not Found+ "451":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unavailable For Legal Reasons+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ summary: Create session by oidc callback+ tags:+ - sessions+ /api/v1/complete/saml:+ post:+ deprecated: false+ description: This endpoint creates a session for a user using saml callback+ operationId: CreateSessionBySAMLCallback+ parameters:+ - in: query+ name: RelayState+ schema:type: string- fieldDataType:+ - in: query+ name: SAMLResponse+ schema:type: string- name:+ requestBody:+ content:+ application/x-www-form-urlencoded:+ schema:+ properties:+ RelayState:+ type: string+ SAMLResponse:+ type: string+ type: object+ responses:+ "303":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/AuthtypesGettableToken'+ status:+ type: string+ type: object+ description: See Other+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "404":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Not Found+ "451":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unavailable For Legal Reasons+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ summary: Create session by saml callback+ tags:+ - sessions+ /api/v1/dashboards/{id}/public:+ delete:+ deprecated: false+ description: This endpoint deletes the public sharing config and disables the+ public sharing of a dashboard+ operationId: DeletePublicDashboard+ parameters:+ - in: path+ name: id+ required: true+ schema:type: string- signal:+ responses:+ "204":+ content:+ application/json:+ schema:+ type: string+ description: No Content+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Delete public dashboard+ tags:+ - dashboard+ get:+ deprecated: false+ description: This endpoint returns public sharing config for a dashboard+ operationId: GetPublicDashboard+ parameters:+ - in: path+ name: id+ required: true+ schema:type: string- unit:+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/DashboardtypesGettablePublicDasbhboard'+ status:+ type: string+ type: object+ description: OK+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Get public dashboard+ tags:+ - dashboard+ post:+ deprecated: false+ description: This endpoint creates public sharing config and enables public+ sharing of the dashboard+ operationId: CreatePublicDashboard+ parameters:+ - in: path+ name: id+ required: true+ schema:type: string- required:- - name- type: object- TelemetrytypesTelemetryFieldValues:- properties:- boolValues:- items:- type: boolean- type: array- numberValues:- items:- format: double- type: number- type: array- relatedValues:- items:- type: string- type: array- stringValues:- items:- type: string- type: array- type: object- TypesChangePasswordRequest:- properties:- newPassword:+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/DashboardtypesPostablePublicDashboard'+ responses:+ "201":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/TypesIdentifiable'+ status:+ type: string+ type: object+ description: Created+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Create public dashboard+ tags:+ - dashboard+ put:+ deprecated: false+ description: This endpoint updates the public sharing config for a dashboard+ operationId: UpdatePublicDashboard+ parameters:+ - in: path+ name: id+ required: true+ schema:type: string- oldPassword:+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/DashboardtypesUpdatablePublicDashboard'+ responses:+ "204":+ content:+ application/json:+ schema:+ type: string+ description: No Content+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Update public dashboard+ tags:+ - dashboard+ /api/v1/domains:+ get:+ deprecated: false+ description: This endpoint lists all auth domains+ operationId: ListAuthDomains+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ items:+ $ref: '#/components/schemas/AuthtypesGettableAuthDomain'+ type: array+ status:+ type: string+ type: object+ description: OK+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: List all auth domains+ tags:+ - authdomains+ post:+ deprecated: false+ description: This endpoint creates an auth domain+ operationId: CreateAuthDomain+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/AuthtypesPostableAuthDomain'+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/AuthtypesGettableAuthDomain'+ status:+ type: string+ type: object+ description: OK+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "409":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Conflict+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Create auth domain+ tags:+ - authdomains+ /api/v1/domains/{id}:+ delete:+ deprecated: false+ description: This endpoint deletes an auth domain+ operationId: DeleteAuthDomain+ parameters:+ - in: path+ name: id+ required: true+ schema:type: string- userId:+ responses:+ "204":+ description: No Content+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Delete auth domain+ tags:+ - authdomains+ put:+ deprecated: false+ description: This endpoint updates an auth domain+ operationId: UpdateAuthDomain+ parameters:+ - in: path+ name: id+ required: true+ schema:type: string- type: object- TypesGettableAPIKey:- properties:- createdAt:- format: date-time+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/AuthtypesUpdateableAuthDomain'+ responses:+ "204":+ description: No Content+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "409":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Conflict+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Update auth domain+ tags:+ - authdomains+ /api/v1/fields/keys:+ get:+ deprecated: false+ description: This endpoint returns field keys+ operationId: GetFieldsKeys+ parameters:+ - in: query+ name: signal+ schema:+ $ref: '#/components/schemas/TelemetrytypesSignal'+ - in: query+ name: source+ schema:+ $ref: '#/components/schemas/TelemetrytypesSource'+ - in: query+ name: limit+ schema:+ type: integer+ - in: query+ name: startUnixMilli+ schema:+ format: int64+ type: integer+ - in: query+ name: endUnixMilli+ schema:+ format: int64+ type: integer+ - in: query+ name: fieldContext+ schema:+ $ref: '#/components/schemas/TelemetrytypesFieldContext'+ - in: query+ name: fieldDataType+ schema:+ $ref: '#/components/schemas/TelemetrytypesFieldDataType'+ - in: query+ name: metricName+ schema:type: string- createdBy:+ - in: query+ name: searchText+ schema:type: string- createdByUser:- $ref: '#/components/schemas/TypesUser'- expiresAt:+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/TelemetrytypesGettableFieldKeys'+ status:+ type: string+ type: object+ description: OK+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - VIEWER+ - tokenizer:+ - VIEWER+ summary: Get field keys+ tags:+ - fields+ /api/v1/fields/values:+ get:+ deprecated: false+ description: This endpoint returns field values+ operationId: GetFieldsValues+ parameters:+ - in: query+ name: signal+ schema:+ $ref: '#/components/schemas/TelemetrytypesSignal'+ - in: query+ name: source+ schema:+ $ref: '#/components/schemas/TelemetrytypesSource'+ - in: query+ name: limit+ schema:+ type: integer+ - in: query+ name: startUnixMilli+ schema:format: int64type: integer- id:- type: string- lastUsed:+ - in: query+ name: endUnixMilli+ schema:format: int64type: integer- name:+ - in: query+ name: fieldContext+ schema:+ $ref: '#/components/schemas/TelemetrytypesFieldContext'+ - in: query+ name: fieldDataType+ schema:+ $ref: '#/components/schemas/TelemetrytypesFieldDataType'+ - in: query+ name: metricName+ schema:type: string- revoked:- type: boolean- role:+ - in: query+ name: searchText+ schema:type: string- token:+ - in: query+ name: name+ schema:type: string- updatedAt:- format: date-time+ - in: query+ name: existingQuery+ schema:type: string- updatedBy:+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/TelemetrytypesGettableFieldValues'+ status:+ type: string+ type: object+ description: OK+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - VIEWER+ - tokenizer:+ - VIEWER+ summary: Get field values+ tags:+ - fields+ /api/v1/getResetPasswordToken/{id}:+ get:+ deprecated: false+ description: This endpoint returns the reset password token by id+ operationId: GetResetPasswordToken+ parameters:+ - in: path+ name: id+ required: true+ schema:type: string- updatedByUser:- $ref: '#/components/schemas/TypesUser'- userId:+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/TypesResetPasswordToken'+ status:+ type: string+ type: object+ description: OK+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "404":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Not Found+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Get reset password token+ tags:+ - users+ /api/v1/global/config:+ get:+ deprecated: false+ description: This endpoint returns global config+ operationId: GetGlobalConfig+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/TypesGettableGlobalConfig'+ status:+ type: string+ type: object+ description: OK+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - EDITOR+ - tokenizer:+ - EDITOR+ summary: Get global config+ tags:+ - global+ /api/v1/invite:+ get:+ deprecated: false+ description: This endpoint lists all invites+ operationId: ListInvite+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ items:+ $ref: '#/components/schemas/TypesInvite'+ type: array+ status:+ type: string+ type: object+ description: OK+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: List invites+ tags:+ - users+ post:+ deprecated: false+ description: This endpoint creates an invite for a user+ operationId: CreateInvite+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/TypesPostableInvite'+ responses:+ "201":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/TypesInvite'+ status:+ type: string+ type: object+ description: Created+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "409":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Conflict+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Create invite+ tags:+ - users+ /api/v1/invite/{id}:+ delete:+ deprecated: false+ description: This endpoint deletes an invite by id+ operationId: DeleteInvite+ parameters:+ - in: path+ name: id+ required: true+ schema:type: string- type: object- TypesGettableGlobalConfig:- properties:- external_url:+ responses:+ "204":+ description: No Content+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "404":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Not Found+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Delete invite+ tags:+ - users+ /api/v1/invite/{token}:+ get:+ deprecated: false+ description: This endpoint gets an invite by token+ operationId: GetInvite+ parameters:+ - in: path+ name: token+ required: true+ schema:type: string- ingestion_url:+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/TypesInvite'+ status:+ type: string+ type: object+ description: OK+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "404":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Not Found+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ summary: Get invite+ tags:+ - users+ /api/v1/invite/accept:+ post:+ deprecated: false+ description: This endpoint accepts an invite by token+ operationId: AcceptInvite+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/TypesPostableAcceptInvite'+ responses:+ "201":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/TypesUser'+ status:+ type: string+ type: object+ description: Created+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "404":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Not Found+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ summary: Accept invite+ tags:+ - users+ /api/v1/invite/bulk:+ post:+ deprecated: false+ description: This endpoint creates a bulk invite for a user+ operationId: CreateBulkInvite+ requestBody:+ content:+ application/json:+ schema:+ items:+ $ref: '#/components/schemas/TypesPostableInvite'+ type: array+ responses:+ "201":+ description: Created+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "409":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Conflict+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Create bulk invite+ tags:+ - users+ /api/v1/logs/promote_paths:+ get:+ deprecated: false+ description: This endpoints promotes and indexes paths+ operationId: ListPromotedAndIndexedPaths+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ items:+ $ref: '#/components/schemas/PromotetypesPromotePath'+ nullable: true+ type: array+ status:+ type: string+ type: object+ description: OK+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ summary: Promote and index paths+ tags:+ - logs+ post:+ deprecated: false+ description: This endpoints promotes and indexes paths+ operationId: HandlePromoteAndIndexPaths+ requestBody:+ content:+ application/json:+ schema:+ items:+ $ref: '#/components/schemas/PromotetypesPromotePath'+ nullable: true+ type: array+ responses:+ "201":+ description: Created+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ summary: Promote and index paths+ tags:+ - logs+ /api/v1/org/preferences:+ get:+ deprecated: false+ description: This endpoint lists all org preferences+ operationId: ListOrgPreferences+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ items:+ $ref: '#/components/schemas/PreferencetypesPreference'+ type: array+ status:+ type: string+ type: object+ description: OK+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: List org preferences+ tags:+ - preferences+ /api/v1/org/preferences/{name}:+ get:+ deprecated: false+ description: This endpoint returns the org preference by name+ operationId: GetOrgPreference+ parameters:+ - in: path+ name: name+ required: true+ schema:type: string- type: object- TypesIdentifiable:- properties:- id:+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/PreferencetypesPreference'+ status:+ type: string+ type: object+ description: OK+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "404":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Not Found+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Get org preference+ tags:+ - preferences+ put:+ deprecated: false+ description: This endpoint updates the org preference by name+ operationId: UpdateOrgPreference+ parameters:+ - in: path+ name: name+ required: true+ schema:type: string- type: object- TypesInvite:- properties:- createdAt:- format: date-time+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/PreferencetypesUpdatablePreference'+ responses:+ "204":+ description: No Content+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "404":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Not Found+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Update org preference+ tags:+ - preferences+ /api/v1/pats:+ get:+ deprecated: false+ description: This endpoint lists all api keys+ operationId: ListAPIKeys+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ items:+ $ref: '#/components/schemas/TypesGettableAPIKey'+ type: array+ status:+ type: string+ type: object+ description: OK+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: List api keys+ tags:+ - users+ post:+ deprecated: false+ description: This endpoint creates an api key+ operationId: CreateAPIKey+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/TypesPostableAPIKey'+ responses:+ "201":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/TypesGettableAPIKey'+ status:+ type: string+ type: object+ description: Created+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "409":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Conflict+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Create api key+ tags:+ - users+ /api/v1/pats/{id}:+ delete:+ deprecated: false+ description: This endpoint revokes an api key+ operationId: RevokeAPIKey+ parameters:+ - in: path+ name: id+ required: true+ schema:type: string- email:+ responses:+ "204":+ description: No Content+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "404":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Not Found+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Revoke api key+ tags:+ - users+ put:+ deprecated: false+ description: This endpoint updates an api key+ operationId: UpdateAPIKey+ parameters:+ - in: path+ name: id+ required: true+ schema:type: string- id:+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/TypesStorableAPIKey'+ responses:+ "204":+ content:+ application/json:+ schema:+ type: string+ description: No Content+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "404":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Not Found+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Update api key+ tags:+ - users+ /api/v1/public/dashboards/{id}:+ get:+ deprecated: false+ description: This endpoint returns the sanitized dashboard data for public access+ operationId: GetPublicDashboardData+ parameters:+ - in: path+ name: id+ required: true+ schema:type: string- inviteLink:+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/DashboardtypesGettablePublicDashboardData'+ status:+ type: string+ type: object+ description: OK+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - anonymous:+ - public-dashboard:read+ summary: Get public dashboard data+ tags:+ - dashboard+ /api/v1/public/dashboards/{id}/widgets/{idx}/query_range:+ get:+ deprecated: false+ description: This endpoint return query range results for a widget of public+ dashboard+ operationId: GetPublicDashboardWidgetQueryRange+ parameters:+ - in: path+ name: id+ required: true+ schema:type: string- name:+ - in: path+ name: idx+ required: true+ schema:type: string- orgId:+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/Querybuildertypesv5QueryRangeResponse'+ status:+ type: string+ type: object+ description: OK+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - anonymous:+ - public-dashboard:read+ summary: Get query range result+ tags:+ - dashboard+ /api/v1/resetPassword:+ post:+ deprecated: false+ description: This endpoint resets the password by token+ operationId: ResetPassword+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/TypesPostableResetPassword'+ responses:+ "204":+ description: No Content+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "409":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Conflict+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ summary: Reset password+ tags:+ - users+ /api/v1/roles:+ get:+ deprecated: false+ description: This endpoint lists all roles+ operationId: ListRoles+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ items:+ $ref: '#/components/schemas/RoletypesRole'+ type: array+ status:+ type: string+ type: object+ description: OK+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: List roles+ tags:+ - role+ post:+ deprecated: false+ description: This endpoint creates a role+ operationId: CreateRole+ responses:+ "201":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/TypesIdentifiable'+ status:+ type: string+ type: object+ description: Created+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Create role+ tags:+ - role+ /api/v1/roles/{id}:+ delete:+ deprecated: false+ description: This endpoint deletes a role+ operationId: DeleteRole+ parameters:+ - in: path+ name: id+ required: true+ schema:type: string- role:+ responses:+ "204":+ content:+ application/json:+ schema:+ type: string+ description: No Content+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Delete role+ tags:+ - role+ get:+ deprecated: false+ description: This endpoint gets a role+ operationId: GetRole+ parameters:+ - in: path+ name: id+ required: true+ schema:type: string- token:+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/RoletypesRole'+ status:+ type: string+ type: object+ description: OK+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Get role+ tags:+ - role+ patch:+ deprecated: false+ description: This endpoint patches a role+ operationId: PatchRole+ parameters:+ - in: path+ name: id+ required: true+ schema:type: string- updatedAt:- format: date-time+ responses:+ "204":+ content:+ application/json:+ schema:+ type: string+ description: No Content+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Patch role+ tags:+ - role+ /api/v1/user:+ get:+ deprecated: false+ description: This endpoint lists all users+ operationId: ListUsers+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ items:+ $ref: '#/components/schemas/TypesUser'+ type: array+ status:+ type: string+ type: object+ description: OK+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: List users+ tags:+ - users+ /api/v1/user/{id}:+ delete:+ deprecated: false+ description: This endpoint deletes the user by id+ operationId: DeleteUser+ parameters:+ - in: path+ name: id+ required: true+ schema:type: string- type: object- TypesOrganization:- properties:- alias:+ responses:+ "204":+ description: No Content+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "404":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Not Found+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Delete user+ tags:+ - users+ get:+ deprecated: false+ description: This endpoint returns the user by id+ operationId: GetUser+ parameters:+ - in: path+ name: id+ required: true+ schema:type: string- createdAt:- format: date-time+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/TypesUser'+ status:+ type: string+ type: object+ description: OK+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "404":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Not Found+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Get user+ tags:+ - users+ put:+ deprecated: false+ description: This endpoint updates the user by id+ operationId: UpdateUser+ parameters:+ - in: path+ name: id+ required: true+ schema:type: string- displayName:+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/TypesUser'+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/TypesUser'+ status:+ type: string+ type: object+ description: OK+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "404":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Not Found+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Update user+ tags:+ - users+ /api/v1/user/me:+ get:+ deprecated: false+ description: This endpoint returns the user I belong to+ operationId: GetMyUser+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/TypesUser'+ status:+ type: string+ type: object+ description: OK+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - tokenizer: []+ summary: Get my user+ tags:+ - users+ /api/v1/user/preferences:+ get:+ deprecated: false+ description: This endpoint lists all user preferences+ operationId: ListUserPreferences+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ items:+ $ref: '#/components/schemas/PreferencetypesPreference'+ type: array+ status:+ type: string+ type: object+ description: OK+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - VIEWER+ - tokenizer:+ - VIEWER+ summary: List user preferences+ tags:+ - preferences+ /api/v1/user/preferences/{name}:+ get:+ deprecated: false+ description: This endpoint returns the user preference by name+ operationId: GetUserPreference+ parameters:+ - in: path+ name: name+ required: true+ schema:type: string- id:+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/PreferencetypesPreference'+ status:+ type: string+ type: object+ description: OK+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "404":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Not Found+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - VIEWER+ - tokenizer:+ - VIEWER+ summary: Get user preference+ tags:+ - preferences+ put:+ deprecated: false+ description: This endpoint updates the user preference by name+ operationId: UpdateUserPreference+ parameters:+ - in: path+ name: name+ required: true+ schema:type: string- key:- minimum: 0+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/PreferencetypesUpdatablePreference'+ responses:+ "204":+ description: No Content+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "404":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Not Found+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - VIEWER+ - tokenizer:+ - VIEWER+ summary: Update user preference+ tags:+ - preferences+ /api/v2/factor_password/forgot:+ post:+ deprecated: false+ description: This endpoint initiates the forgot password flow by sending a reset+ password email+ operationId: ForgotPassword+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/TypesPostableForgotPassword'+ responses:+ "204":+ description: No Content+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "422":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unprocessable Entity+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ summary: Forgot password+ tags:+ - users+ /api/v2/features:+ get:+ deprecated: false+ description: This endpoint returns the supported features and their details+ operationId: GetFeatures+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ items:+ $ref: '#/components/schemas/FeaturetypesGettableFeature'+ type: array+ status:+ type: string+ type: object+ description: OK+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - VIEWER+ - tokenizer:+ - VIEWER+ summary: Get features+ tags:+ - features+ /api/v2/gateway/ingestion_keys:+ get:+ deprecated: false+ description: This endpoint returns the ingestion keys for a workspace+ operationId: GetIngestionKeys+ parameters:+ - in: query+ name: page+ schema:type: integer- name:- type: string- updatedAt:- format: date-time- type: string- type: object- TypesPostableAPIKey:- properties:- expiresInDays:- format: int64+ - in: query+ name: per_page+ schema:type: integer- name:- type: string- role:- type: string- type: object- TypesPostableAcceptInvite:- properties:- displayName:- type: string- password:- type: string- sourceUrl:- type: string- token:- type: string- type: object- TypesPostableForgotPassword:- properties:- email:- type: string- frontendBaseURL:- type: string- orgId:- type: string- required:- - orgId- type: object- TypesPostableInvite:- properties:- email:- type: string- frontendBaseUrl:- type: string- name:- type: string- role:- type: string- type: object- TypesPostableResetPassword:- properties:- password:- type: string- token:- type: string- type: object- TypesResetPasswordToken:- properties:- expiresAt:- format: date-time- type: string- id:- type: string- passwordId:- type: string- token:- type: string- type: object- TypesStorableAPIKey:- properties:- createdAt:- format: date-time- type: string- createdBy:- type: string- id:- type: string- name:- type: string- revoked:- type: boolean- role:- type: string- token:+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/GatewaytypesGettableIngestionKeys'+ status:+ type: string+ type: object+ description: OK+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Get ingestion keys for workspace+ tags:+ - gateway+ post:+ deprecated: false+ description: This endpoint creates an ingestion key for the workspace+ operationId: CreateIngestionKey+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/GatewaytypesPostableIngestionKey'+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/GatewaytypesGettableCreatedIngestionKey'+ status:+ type: string+ type: object+ description: OK+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Create ingestion key for workspace+ tags:+ - gateway+ /api/v2/gateway/ingestion_keys/{keyId}:+ delete:+ deprecated: false+ description: This endpoint deletes an ingestion key for the workspace+ operationId: DeleteIngestionKey+ parameters:+ - in: path+ name: keyId+ required: true+ schema:type: string- updatedAt:- format: date-time+ responses:+ "204":+ description: No Content+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Delete ingestion key for workspace+ tags:+ - gateway+ patch:+ deprecated: false+ description: This endpoint updates an ingestion key for the workspace+ operationId: UpdateIngestionKey+ parameters:+ - in: path+ name: keyId+ required: true+ schema:type: string- updatedBy:+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/GatewaytypesPostableIngestionKey'+ responses:+ "204":+ description: No Content+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Update ingestion key for workspace+ tags:+ - gateway+ /api/v2/gateway/ingestion_keys/{keyId}/limits:+ post:+ deprecated: false+ description: This endpoint creates an ingestion key limit+ operationId: CreateIngestionKeyLimit+ parameters:+ - in: path+ name: keyId+ required: true+ schema:type: string- userId:+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/GatewaytypesPostableIngestionKeyLimit'+ responses:+ "201":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/GatewaytypesGettableCreatedIngestionKeyLimit'+ status:+ type: string+ type: object+ description: Created+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Create limit for the ingestion key+ tags:+ - gateway+ /api/v2/gateway/ingestion_keys/limits/{limitId}:+ delete:+ deprecated: false+ description: This endpoint deletes an ingestion key limit+ operationId: DeleteIngestionKeyLimit+ parameters:+ - in: path+ name: limitId+ required: true+ schema:type: string- type: object- TypesUser:- properties:- createdAt:- format: date-time+ responses:+ "204":+ description: No Content+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Delete limit for the ingestion key+ tags:+ - gateway+ patch:+ deprecated: false+ description: This endpoint updates an ingestion key limit+ operationId: UpdateIngestionKeyLimit+ parameters:+ - in: path+ name: limitId+ required: true+ schema:type: string- displayName:+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/GatewaytypesUpdatableIngestionKeyLimit'+ responses:+ "204":+ description: No Content+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Update limit for the ingestion key+ tags:+ - gateway+ /api/v2/gateway/ingestion_keys/search:+ get:+ deprecated: false+ description: This endpoint returns the ingestion keys for a workspace+ operationId: SearchIngestionKeys+ parameters:+ - in: query+ name: name+ schema:type: string- email:+ - in: query+ name: page+ schema:+ type: integer+ - in: query+ name: per_page+ schema:+ type: integer+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/GatewaytypesGettableIngestionKeys'+ status:+ type: string+ type: object+ description: OK+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Search ingestion keys for workspace+ tags:+ - gateway+ /api/v2/metric/alerts:+ get:+ deprecated: false+ description: This endpoint returns associated alerts for a specified metric+ operationId: GetMetricAlerts+ parameters:+ - in: query+ name: metricName+ required: true+ schema:type: string- id:+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/MetricsexplorertypesMetricAlertsResponse'+ status:+ type: string+ type: object+ description: OK+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - VIEWER+ - tokenizer:+ - VIEWER+ summary: Get metric alerts+ tags:+ - metrics+ /api/v2/metric/dashboards:+ get:+ deprecated: false+ description: This endpoint returns associated dashboards for a specified metric+ operationId: GetMetricDashboards+ parameters:+ - in: query+ name: metricName+ required: true+ schema:type: string- isRoot:- type: boolean- orgId:+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/MetricsexplorertypesMetricDashboardsResponse'+ status:+ type: string+ type: object+ description: OK+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - VIEWER+ - tokenizer:+ - VIEWER+ summary: Get metric dashboards+ tags:+ - metrics+ /api/v2/metric/highlights:+ get:+ deprecated: false+ description: This endpoint returns highlights like number of datapoints, totaltimeseries,+ active time series, last received time for a specified metric+ operationId: GetMetricHighlights+ parameters:+ - in: query+ name: metricName+ required: true+ schema:type: string- role:+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/MetricsexplorertypesMetricHighlightsResponse'+ status:+ type: string+ type: object+ description: OK+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - VIEWER+ - tokenizer:+ - VIEWER+ summary: Get metric highlights+ tags:+ - metrics+ /api/v2/metrics/{metric_name}/metadata:+ post:+ deprecated: false+ description: This endpoint helps to update metadata information like metric+ description, unit, type, temporality, monotonicity for a specified metric+ operationId: UpdateMetricMetadata+ parameters:+ - in: path+ name: metric_name+ required: true+ schema:type: string- updatedAt:- format: date-time+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/MetricsexplorertypesUpdateMetricMetadataRequest'+ responses:+ "200":+ content:+ application/json:+ schema:+ type: string+ description: OK+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - EDITOR+ - tokenizer:+ - EDITOR+ summary: Update metric metadata+ tags:+ - metrics+ /api/v2/metrics/attributes:+ post:+ deprecated: false+ description: This endpoint returns attribute keys and their unique values for+ a specified metric+ operationId: GetMetricAttributes+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/MetricsexplorertypesMetricAttributesRequest'+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/MetricsexplorertypesMetricAttributesResponse'+ status:+ type: string+ type: object+ description: OK+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - VIEWER+ - tokenizer:+ - VIEWER+ summary: Get metric attributes+ tags:+ - metrics+ /api/v2/metrics/metadata:+ get:+ deprecated: false+ description: This endpoint returns metadata information like metric description,+ unit, type, temporality, monotonicity for a specified metric+ operationId: GetMetricMetadata+ parameters:+ - in: query+ name: metricName+ required: true+ schema:type: string- type: object- securitySchemes:- api_key:- description: API Keys- in: header- name: SigNoz-Api-Key- type: apiKey- tokenizer:- bearerFormat: Tokenizer- description: Tokens generated by the tokenizer- scheme: bearer- type: http+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/MetricsexplorertypesMetricMetadata'+ status:+ type: string+ type: object+ description: OK+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "404":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Not Found+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - VIEWER+ - tokenizer:+ - VIEWER+ summary: Get metric metadata+ tags:+ - metrics+ /api/v2/metrics/stats:+ post:+ deprecated: false+ description: This endpoint provides list of metrics with their number of samples+ and timeseries for the given time range+ operationId: GetMetricsStats+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/MetricsexplorertypesStatsRequest'+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/MetricsexplorertypesStatsResponse'+ status:+ type: string+ type: object+ description: OK+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - VIEWER+ - tokenizer:+ - VIEWER+ summary: Get metrics statistics+ tags:+ - metrics+ /api/v2/metrics/treemap:+ post:+ deprecated: false+ description: This endpoint returns a treemap visualization showing the proportional+ distribution of metrics by sample count or time series count+ operationId: GetMetricsTreemap+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/MetricsexplorertypesTreemapRequest'+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/MetricsexplorertypesTreemapResponse'+ status:+ type: string+ type: object+ description: OK+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - VIEWER+ - tokenizer:+ - VIEWER+ summary: Get metrics treemap+ tags:+ - metrics+ /api/v2/orgs/me:+ get:+ deprecated: false+ description: This endpoint returns the organization I belong to+ operationId: GetMyOrganization+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/TypesOrganization'+ status:+ type: string+ type: object+ description: OK+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Get my organization+ tags:+ - orgs+ put:+ deprecated: false+ description: This endpoint updates the organization I belong to+ operationId: UpdateMyOrganization+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/TypesOrganization'+ responses:+ "204":+ description: No Content+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "409":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Conflict+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - ADMIN+ - tokenizer:+ - ADMIN+ summary: Update my organization+ tags:+ - orgs+ /api/v2/sessions:+ delete:+ deprecated: false+ description: This endpoint deletes the session+ operationId: DeleteSession+ responses:+ "204":+ description: No Content+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - tokenizer: []+ summary: Delete session+ tags:+ - sessions+ /api/v2/sessions/context:+ get:+ deprecated: false+ description: This endpoint returns the context for the session+ operationId: GetSessionContext+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/AuthtypesSessionContext'+ status:+ type: string+ type: object+ description: OK+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ summary: Get session context+ tags:+ - sessions+ /api/v2/sessions/email_password:+ post:+ deprecated: false+ description: This endpoint creates a session for a user using email and password.+ operationId: CreateSessionByEmailPassword+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/AuthtypesPostableEmailPasswordSession'+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/AuthtypesGettableToken'+ status:+ type: string+ type: object+ description: OK+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "404":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Not Found+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ summary: Create session by email and password+ tags:+ - sessions+ /api/v2/sessions/rotate:+ post:+ deprecated: false+ description: This endpoint rotates the session+ operationId: RotateSession+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/AuthtypesPostableRotateToken'+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/AuthtypesGettableToken'+ status:+ type: string+ type: object+ description: OK+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ summary: Rotate session+ tags:+ - sessions+ /api/v5/query_range:+ post:+ deprecated: false+ description: Execute a composite query over a time range. Supports builder queries+ (traces, logs, metrics), formulas, trace operators, PromQL, and ClickHouse+ SQL.+ operationId: QueryRangeV5+ requestBody:+ content:+ application/json:+ examples:+ clickhouse_sql_logs_raw:+ summary: 'ClickHouse SQL: raw logs with resource filter'+ value:+ compositeQuery:+ queries:+ - spec:+ name: recent_errors+ query: WITH __resource_filter AS ( SELECT fingerprint FROM+ signoz_logs.distributed_logs_v2_resource WHERE seen_at_ts_bucket_start+ >= $start_timestamp - 1800 AND seen_at_ts_bucket_start <=+ $end_timestamp ) SELECT timestamp, body FROM signoz_logs.distributed_logs_v2+ WHERE resource_fingerprint GLOBAL IN (SELECT fingerprint+ FROM __resource_filter) AND timestamp >= $start_timestamp_nano+ AND timestamp <= $end_timestamp_nano AND ts_bucket_start+ >= $start_timestamp - 1800 AND ts_bucket_start <= $end_timestamp+ AND severity_text = 'ERROR' ORDER BY timestamp DESC LIMIT+ 100+ type: clickhouse_sql+ end: 1640998800000+ requestType: raw+ schemaVersion: v1+ start: 1640995200000+ clickhouse_sql_traces_scalar:+ summary: 'ClickHouse SQL: scalar aggregate with resource filter'+ value:+ compositeQuery:+ queries:+ - spec:+ name: total_spans+ query: WITH __resource_filter AS ( SELECT fingerprint FROM+ signoz_traces.distributed_traces_v3_resource WHERE seen_at_ts_bucket_start+ >= $start_timestamp - 1800 AND seen_at_ts_bucket_start <=+ $end_timestamp ) SELECT count() AS value FROM signoz_traces.distributed_signoz_index_v3+ WHERE resource_fingerprint GLOBAL IN (SELECT fingerprint+ FROM __resource_filter) AND timestamp >= $start_datetime+ AND timestamp <= $end_datetime AND ts_bucket_start >= $start_timestamp+ - 1800 AND ts_bucket_start <= $end_timestamp+ type: clickhouse_sql+ end: 1640998800000+ requestType: scalar+ schemaVersion: v1+ start: 1640995200000+ clickhouse_sql_traces_time_series:+ summary: 'ClickHouse SQL: traces time series with resource filter'+ value:+ compositeQuery:+ queries:+ - spec:+ name: span_rate+ query: WITH __resource_filter AS ( SELECT fingerprint FROM+ signoz_traces.distributed_traces_v3_resource WHERE seen_at_ts_bucket_start+ >= $start_timestamp - 1800 AND seen_at_ts_bucket_start <=+ $end_timestamp ) SELECT toStartOfInterval(timestamp, INTERVAL+ 60 SECOND) AS ts, count() AS value FROM signoz_traces.distributed_signoz_index_v3+ WHERE resource_fingerprint GLOBAL IN (SELECT fingerprint+ FROM __resource_filter) AND timestamp >= $start_datetime+ AND timestamp <= $end_datetime AND ts_bucket_start >= $start_timestamp+ - 1800 AND ts_bucket_start <= $end_timestamp GROUP BY ts+ ORDER BY ts+ type: clickhouse_sql+ end: 1640998800000+ requestType: time_series+ schemaVersion: v1+ start: 1640995200000+ formula:+ summary: 'Formula: error rate from two trace queries'+ value:+ compositeQuery:+ queries:+ - spec:+ aggregations:+ - expression: countIf(has_error = true)+ groupBy:+ - fieldContext: resource+ name: service.name+ name: A+ signal: traces+ stepInterval: 60s+ type: builder_query+ - spec:+ aggregations:+ - expression: count()+ groupBy:+ - fieldContext: resource+ name: service.name+ name: B+ signal: traces+ stepInterval: 60s+ type: builder_query+ - spec:+ expression: A / B * 100+ name: error_rate+ type: builder_formula+ end: 1640998800000+ requestType: time_series+ schemaVersion: v1+ start: 1640995200000+ logs_raw:+ summary: 'Raw: fetch raw log records'+ value:+ compositeQuery:+ queries:+ - spec:+ filter:+ expression: severity_text = 'ERROR'+ limit: 50+ name: A+ offset: 0+ order:+ - direction: desc+ key:+ fieldContext: log+ name: timestamp+ - direction: desc+ key:+ name: id+ selectFields:+ - fieldContext: log+ name: body+ - fieldContext: resource+ name: service.name+ signal: logs+ type: builder_query+ end: 1640998800000+ requestType: raw+ schemaVersion: v1+ start: 1640995200000+ logs_scalar:+ summary: 'Scalar: total error log count'+ value:+ compositeQuery:+ queries:+ - spec:+ aggregations:+ - alias: error_count+ expression: count()+ filter:+ expression: severity_text = 'ERROR'+ name: A+ signal: logs+ type: builder_query+ end: 1640998800000+ requestType: scalar+ schemaVersion: v1+ start: 1640995200000+ logs_time_series:+ summary: 'Time series: count error logs grouped by service'+ value:+ compositeQuery:+ queries:+ - spec:+ aggregations:+ - alias: log_count+ expression: count()+ filter:+ expression: severity_text = 'ERROR'+ groupBy:+ - fieldContext: resource+ name: service.name+ limit: 10+ name: A+ order:+ - direction: desc+ key:+ name: log_count+ signal: logs+ stepInterval: 60s+ type: builder_query+ end: 1640998800000+ requestType: time_series+ schemaVersion: v1+ start: 1640995200000+ metrics_gauge_time_series:+ summary: 'Time series: latest gauge value averaged across series'+ value:+ compositeQuery:+ queries:+ - spec:+ aggregations:+ - metricName: system.cpu.utilization+ spaceAggregation: avg+ timeAggregation: latest+ groupBy:+ - fieldContext: resource+ name: host.name+ name: A+ signal: metrics+ stepInterval: 60s+ type: builder_query+ end: 1640998800000+ requestType: time_series+ schemaVersion: v1+ start: 1640995200000+ metrics_histogram_time_series:+ summary: 'Time series: p99 latency from histogram'+ value:+ compositeQuery:+ queries:+ - spec:+ aggregations:+ - metricName: http.server.duration.bucket+ spaceAggregation: p99+ groupBy:+ - fieldContext: resource+ name: service.name+ name: A+ signal: metrics+ stepInterval: 60s+ type: builder_query+ end: 1640998800000+ requestType: time_series+ schemaVersion: v1+ start: 1640995200000+ metrics_rate_time_series:+ summary: 'Time series: rate of cumulative counter'+ value:+ compositeQuery:+ queries:+ - spec:+ aggregations:+ - metricName: http.server.duration.count+ spaceAggregation: sum+ timeAggregation: rate+ groupBy:+ - fieldContext: resource+ name: service.name+ name: A+ signal: metrics+ stepInterval: 120+ type: builder_query+ end: 1640998800000+ requestType: time_series+ schemaVersion: v1+ start: 1640995200000+ metrics_scalar:+ summary: 'Scalar: single reduced metric value'+ value:+ compositeQuery:+ queries:+ - spec:+ aggregations:+ - metricName: http.server.duration.count+ reduceTo: sum+ spaceAggregation: sum+ timeAggregation: rate+ name: A+ signal: metrics+ stepInterval: 60s+ type: builder_query+ end: 1640998800000+ requestType: scalar+ schemaVersion: v1+ start: 1640995200000+ promql:+ summary: 'PromQL: request rate with UTF-8 metric name'+ value:+ compositeQuery:+ queries:+ - spec:+ name: request_rate+ query: sum(rate({"http.server.duration.count"}[5m])) by ("service.name")+ step: 60+ type: promql+ end: 1640998800000+ requestType: time_series+ schemaVersion: v1+ start: 1640995200000+ traces_raw:+ summary: 'Raw: fetch raw span records'+ value:+ compositeQuery:+ queries:+ - spec:+ filter:+ expression: service.name = 'frontend' AND has_error = true+ limit: 100+ name: A+ order:+ - direction: desc+ key:+ fieldContext: span+ name: timestamp+ selectFields:+ - fieldContext: span+ name: name+ - fieldContext: span+ name: duration_nano+ signal: traces+ type: builder_query+ end: 1640998800000+ requestType: raw+ schemaVersion: v1+ start: 1640995200000+ traces_scalar:+ summary: 'Scalar: total span count'+ value:+ compositeQuery:+ queries:+ - spec:+ aggregations:+ - alias: span_count+ expression: count()+ filter:+ expression: service.name = 'frontend'+ name: A+ signal: traces+ type: builder_query+ end: 1640998800000+ requestType: scalar+ schemaVersion: v1+ start: 1640995200000+ traces_time_series:+ summary: 'Time series: count spans grouped by service'+ value:+ compositeQuery:+ queries:+ - spec:+ aggregations:+ - alias: span_count+ expression: count()+ filter:+ expression: service.name = 'frontend'+ groupBy:+ - fieldContext: resource+ name: service.name+ limit: 10+ name: A+ order:+ - direction: desc+ key:+ name: span_count+ signal: traces+ stepInterval: 60s+ type: builder_query+ end: 1640998800000+ requestType: time_series+ schemaVersion: v1+ start: 1640995200000+ schema:+ $ref: '#/components/schemas/Querybuildertypesv5QueryRangeRequest'+ responses:+ "200":+ content:+ application/json:+ schema:+ properties:+ data:+ $ref: '#/components/schemas/Querybuildertypesv5QueryRangeResponse'+ status:+ type: string+ type: object+ description: OK+ "400":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Bad Request+ "401":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unauthorized+ "403":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Forbidden+ "500":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Internal Server Error+ security:+ - api_key:+ - VIEWER+ - tokenizer:+ - VIEWER+ summary: Query range+ tags:+ - querydiff --git a/ee/query-service/app/api/api.go b/ee/query-service/app/api/api.goindex f701bf0d4f..64295d19bf 100644--- a/ee/query-service/app/api/api.go+++ b/ee/query-service/app/api/api.go@@ -10,6 +10,7 @@ import ("github.com/SigNoz/signoz/ee/query-service/usage""github.com/SigNoz/signoz/pkg/alertmanager""github.com/SigNoz/signoz/pkg/global"+ "github.com/SigNoz/signoz/pkg/http/handler""github.com/SigNoz/signoz/pkg/http/middleware"querierAPI "github.com/SigNoz/signoz/pkg/querier"baseapp "github.com/SigNoz/signoz/pkg/query-service/app"@@ -106,7 +107,10 @@ func (ah *APIHandler) RegisterRoutes(router *mux.Router, am *middleware.AuthZ) {router.HandleFunc("/api/v4/query_range", am.ViewAccess(ah.queryRangeV4)).Methods(http.MethodPost)// v5- router.HandleFunc("/api/v5/query_range", am.ViewAccess(ah.queryRangeV5)).Methods(http.MethodPost)+ router.Handle("/api/v5/query_range", handler.New(+ am.ViewAccess(ah.queryRangeV5),+ querierAPI.QueryRangeV5OpenAPIDef,+ )).Methods(http.MethodPost)router.HandleFunc("/api/v5/substitute_vars", am.ViewAccess(ah.QuerierAPI.ReplaceVariables)).Methods(http.MethodPost)diff --git a/frontend/src/api/generated/services/query/index.ts b/frontend/src/api/generated/services/query/index.tsnew file mode 100644index 0000000000..6315e3910f--- /dev/null+++ b/frontend/src/api/generated/services/query/index.ts@@ -0,0 +1,107 @@+/**+ * ! Do not edit manually+ * * The file has been auto-generated using Orval for SigNoz+ * * regenerate with 'yarn generate:api'+ * SigNoz+ */+import type {+ MutationFunction,+ UseMutationOptions,+ UseMutationResult,+} from 'react-query';+import { useMutation } from 'react-query';++import { GeneratedAPIInstance } from '../../../index';+import type {+ Querybuildertypesv5QueryRangeRequestDTO,+ QueryRangeV5200,+ RenderErrorResponseDTO,+} from '../sigNoz.schemas';++type AwaitedInput<T> = PromiseLike<T> | T;++type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;++/**+ * Execute a composite query over a time range. Supports builder queries (traces, logs, metrics), formulas, trace operators, PromQL, and ClickHouse SQL.+ * @summary Query range+ */+export const queryRangeV5 = (+ querybuildertypesv5QueryRangeRequestDTO: Querybuildertypesv5QueryRangeRequestDTO,+ signal?: AbortSignal,+) => {+ return GeneratedAPIInstance<QueryRangeV5200>({+ url: `/api/v5/query_range`,+ method: 'POST',+ headers: { 'Content-Type': 'application/json' },+ data: querybuildertypesv5QueryRangeRequestDTO,+ signal,+ });+};++export const getQueryRangeV5MutationOptions = <+ TError = RenderErrorResponseDTO,+ TContext = unknown+>(options?: {+ mutation?: UseMutationOptions<+ Awaited<ReturnType<typeof queryRangeV5>>,+ TError,+ { data: Querybuildertypesv5QueryRangeRequestDTO },+ TContext+ >;+}): UseMutationOptions<+ Awaited<ReturnType<typeof queryRangeV5>>,+ TError,+ { data: Querybuildertypesv5QueryRangeRequestDTO },+ TContext+> => {+ const mutationKey = ['queryRangeV5'];+ const { mutation: mutationOptions } = options+ ? options.mutation &&+ 'mutationKey' in options.mutation &&+ options.mutation.mutationKey+ ? options+ : { ...options, mutation: { ...options.mutation, mutationKey } }+ : { mutation: { mutationKey } };++ const mutationFn: MutationFunction<+ Awaited<ReturnType<typeof queryRangeV5>>,+ { data: Querybuildertypesv5QueryRangeRequestDTO }+ > = (props) => {+ const { data } = props ?? {};++ return queryRangeV5(data);+ };++ return { mutationFn, ...mutationOptions };+};++export type QueryRangeV5MutationResult = NonNullable<+ Awaited<ReturnType<typeof queryRangeV5>>+>;+export type QueryRangeV5MutationBody = Querybuildertypesv5QueryRangeRequestDTO;+export type QueryRangeV5MutationError = RenderErrorResponseDTO;++/**+ * @summary Query range+ */+export const useQueryRangeV5 = <+ TError = RenderErrorResponseDTO,+ TContext = unknown+>(options?: {+ mutation?: UseMutationOptions<+ Awaited<ReturnType<typeof queryRangeV5>>,+ TError,+ { data: Querybuildertypesv5QueryRangeRequestDTO },+ TContext+ >;+}): UseMutationResult<+ Awaited<ReturnType<typeof queryRangeV5>>,+ TError,+ { data: Querybuildertypesv5QueryRangeRequestDTO },+ TContext+> => {+ const mutationOptions = getQueryRangeV5MutationOptions(options);++ return useMutation(mutationOptions);+};diff --git a/frontend/src/api/generated/services/sigNoz.schemas.ts b/frontend/src/api/generated/services/sigNoz.schemas.tsindex afa95921ac..845d2784a6 100644--- a/frontend/src/api/generated/services/sigNoz.schemas.ts+++ b/frontend/src/api/generated/services/sigNoz.schemas.ts@@ -915,11 +915,34 @@ export interface MetricsexplorertypesUpdateMetricMetadataRequestDTO {unit: string;}+export enum MetrictypesSpaceAggregationDTO {+ sum = 'sum',+ avg = 'avg',+ min = 'min',+ max = 'max',+ count = 'count',+ p50 = 'p50',+ p75 = 'p75',+ p90 = 'p90',+ p95 = 'p95',+ p99 = 'p99',+}export enum MetrictypesTemporalityDTO {delta = 'delta',cumulative = 'cumulative',unspecified = 'unspecified',}+export enum MetrictypesTimeAggregationDTO {+ latest = 'latest',+ sum = 'sum',+ avg = 'avg',+ min = 'min',+ max = 'max',+ count = 'count',+ count_distinct = 'count_distinct',+ rate = 'rate',+ increase = 'increase',+}export enum MetrictypesTypeDTO {gauge = 'gauge',sum = 'sum',@@ -927,179 +950,983 @@ export enum MetrictypesTypeDTO {summary = 'summary',exponentialhistogram = 'exponentialhistogram',}-export interface PreferencetypesPreferenceDTO {+export interface PreferencetypesPreferenceDTO {+ /**+ * @type array+ * @nullable true+ */+ allowedScopes?: string[] | null;+ /**+ * @type array+ * @nullable true+ */+ allowedValues?: string[] | null;+ defaultValue?: PreferencetypesValueDTO;+ /**+ * @type string+ */+ description?: string;+ /**+ * @type string+ */+ name?: string;+ value?: PreferencetypesValueDTO;+ /**+ * @type string+ */+ valueType?: string;+}++export interface PreferencetypesUpdatablePreferenceDTO {+ value?: unknown;+}++export interface PreferencetypesValueDTO {+ [key: string]: unknown;+}++export interface PromotetypesPromotePathDTO {+ /**+ * @type array+ */+ indexes?: PromotetypesWrappedIndexDTO[];+ /**+ * @type string+ */+ path?: string;+ /**+ * @type boolean+ */+ promote?: boolean;+}++export interface PromotetypesWrappedIndexDTO {+ /**+ * @type string+ */+ column_type?: string;+ /**+ * @type integer+ */+ granularity?: number;+ /**+ * @type string+ */+ type?: string;+}++export type Querybuildertypesv5AggregationBucketDTOMeta = {+ /**+ * @type string+ */+ unit?: string;+};++export interface Querybuildertypesv5AggregationBucketDTO {+ /**+ * @type string+ */+ alias?: string;+ /**+ * @type array+ */+ anomalyScores?: Querybuildertypesv5TimeSeriesDTO[];+ /**+ * @type integer+ */+ index?: number;+ /**+ * @type array+ */+ lowerBoundSeries?: Querybuildertypesv5TimeSeriesDTO[];+ /**+ * @type object+ */+ meta?: Querybuildertypesv5AggregationBucketDTOMeta;+ /**+ * @type array+ */+ predictedSeries?: Querybuildertypesv5TimeSeriesDTO[];+ /**+ * @type array+ * @nullable true+ */+ series?: Querybuildertypesv5TimeSeriesDTO[] | null;+ /**+ * @type array+ */+ upperBoundSeries?: Querybuildertypesv5TimeSeriesDTO[];+}++export interface Querybuildertypesv5BucketDTO {+ /**+ * @type number+ * @format double+ */+ step?: number;+}++export interface Querybuildertypesv5ClickHouseQueryDTO {+ /**+ * @type boolean+ */+ disabled?: boolean;+ /**+ * @type string+ */+ legend?: string;+ /**+ * @type string+ */+ name?: string;+ /**+ * @type string+ */+ query?: string;+}++export type Querybuildertypesv5ColumnDescriptorDTOMeta = {+ /**+ * @type string+ */+ unit?: string;+};++export interface Querybuildertypesv5ColumnDescriptorDTO {+ /**+ * @type integer+ * @format int64+ */+ aggregationIndex?: number;+ columnType?: Querybuildertypesv5ColumnTypeDTO;+ /**+ * @type string+ */+ description?: string;+ fieldContext?: TelemetrytypesFieldContextDTO;+ fieldDataType?: TelemetrytypesFieldDataTypeDTO;+ /**+ * @type object+ */+ meta?: Querybuildertypesv5ColumnDescriptorDTOMeta;+ /**+ * @type string+ */+ name: string;+ /**+ * @type string+ */+ queryName?: string;+ signal?: TelemetrytypesSignalDTO;+ /**+ * @type string+ */+ unit?: string;+}++export enum Querybuildertypesv5ColumnTypeDTO {+ group = 'group',+ aggregation = 'aggregation',+}+/**+ * Composite query containing one or more query envelopes. Each query envelope specifies its type and corresponding spec.+ */+export interface Querybuildertypesv5CompositeQueryDTO {+ /**+ * @type array+ * @nullable true+ */+ queries?: Querybuildertypesv5QueryEnvelopeDTO[] | null;+}++export type Querybuildertypesv5ExecStatsDTOStepIntervals = {+ [key: string]: number;+};++/**+ * Execution statistics for the query, including rows scanned, bytes scanned, and duration.+ */+export interface Querybuildertypesv5ExecStatsDTO {+ /**+ * @type integer+ * @minimum 0+ */+ bytesScanned?: number;+ /**+ * @type integer+ * @minimum 0+ */+ durationMs?: number;+ /**+ * @type integer+ * @minimum 0+ */+ rowsScanned?: number;+ /**+ * @type object+ */+ stepIntervals?: Querybuildertypesv5ExecStatsDTOStepIntervals;+}++export interface Querybuildertypesv5FilterDTO {+ /**+ * @type string+ */+ expression?: string;+}++export interface Querybuildertypesv5FormatOptionsDTO {+ /**+ * @type boolean+ */+ fillGaps?: boolean;+ /**+ * @type boolean+ */+ formatTableResultForUI?: boolean;+}++export interface Querybuildertypesv5FunctionDTO {+ /**+ * @type array+ */+ args?: Querybuildertypesv5FunctionArgDTO[];+ name?: Querybuildertypesv5FunctionNameDTO;+}++export interface Querybuildertypesv5FunctionArgDTO {+ /**+ * @type string+ */+ name?: string;+ value?: unknown;+}++export enum Querybuildertypesv5FunctionNameDTO {+ cutoffmin = 'cutoffmin',+ cutoffmax = 'cutoffmax',+ clampmin = 'clampmin',+ clampmax = 'clampmax',+ absolute = 'absolute',+ runningdiff = 'runningdiff',+ log2 = 'log2',+ log10 = 'log10',+ cumulativesum = 'cumulativesum',+ ewma3 = 'ewma3',+ ewma5 = 'ewma5',+ ewma7 = 'ewma7',+ median3 = 'median3',+ median5 = 'median5',+ median7 = 'median7',+ timeshift = 'timeshift',+ anomaly = 'anomaly',+ fillzero = 'fillzero',+}+export interface Querybuildertypesv5GroupByKeyDTO {+ /**+ * @type string+ */+ description?: string;+ fieldContext?: TelemetrytypesFieldContextDTO;+ fieldDataType?: TelemetrytypesFieldDataTypeDTO;+ /**+ * @type string+ */+ name: string;+ signal?: TelemetrytypesSignalDTO;+ /**+ * @type string+ */+ unit?: string;+}++export interface Querybuildertypesv5HavingDTO {+ /**+ * @type string+ */+ expression?: string;+}++export interface Querybuildertypesv5LabelDTO {+ key?: TelemetrytypesTelemetryFieldKeyDTO;+ value?: unknown;+}++export interface Querybuildertypesv5LimitByDTO {+ /**+ * @type array+ * @nullable true+ */+ keys?: string[] | null;+ /**+ * @type string+ */+ value?: string;+}++export interface Querybuildertypesv5LogAggregationDTO {+ /**+ * @type string+ */+ alias?: string;+ /**+ * @type string+ */+ expression?: string;+}++export interface Querybuildertypesv5MetricAggregationDTO {+ /**+ * @type string+ */+ metricName?: string;+ reduceTo?: Querybuildertypesv5ReduceToDTO;+ spaceAggregation?: MetrictypesSpaceAggregationDTO;+ temporality?: MetrictypesTemporalityDTO;+ timeAggregation?: MetrictypesTimeAggregationDTO;+}++export interface Querybuildertypesv5OrderByDTO {+ direction?: Querybuildertypesv5OrderDirectionDTO;+ key?: Querybuildertypesv5OrderByKeyDTO;+}++export interface Querybuildertypesv5OrderByKeyDTO {+ /**+ * @type string+ */+ description?: string;+ fieldContext?: TelemetrytypesFieldContextDTO;+ fieldDataType?: TelemetrytypesFieldDataTypeDTO;+ /**+ * @type string+ */+ name: string;+ signal?: TelemetrytypesSignalDTO;+ /**+ * @type string+ */+ unit?: string;+}++export enum Querybuildertypesv5OrderDirectionDTO {+ asc = 'asc',+ desc = 'desc',+}+export interface Querybuildertypesv5PromQueryDTO {+ /**+ * @type boolean+ */+ disabled?: boolean;+ /**+ * @type string+ */+ legend?: string;+ /**+ * @type string+ */+ name?: string;+ /**+ * @type string+ */+ query?: string;+ /**+ * @type boolean+ */+ stats?: boolean;+ step?: Querybuildertypesv5StepDTO;+}++export interface Querybuildertypesv5QueryBuilderFormulaDTO {+ /**+ * @type boolean+ */+ disabled?: boolean;+ /**+ * @type string+ */+ expression?: string;+ /**+ * @type array+ */+ functions?: Querybuildertypesv5FunctionDTO[];+ having?: Querybuildertypesv5HavingDTO;+ /**+ * @type string+ */+ legend?: string;+ /**+ * @type integer+ */+ limit?: number;+ /**+ * @type string+ */+ name?: string;+ /**+ * @type array+ */+ order?: Querybuildertypesv5OrderByDTO[];+}++export interface Querybuildertypesv5QueryBuilderQueryGithubComSigNozSignozPkgTypesQuerybuildertypesQuerybuildertypesv5LogAggregationDTO {+ /**+ * @type array+ */+ aggregations?: Querybuildertypesv5LogAggregationDTO[];+ /**+ * @type string+ */+ cursor?: string;+ /**+ * @type boolean+ */+ disabled?: boolean;+ filter?: Querybuildertypesv5FilterDTO;+ /**+ * @type array+ */+ functions?: Querybuildertypesv5FunctionDTO[];+ /**+ * @type array+ */+ groupBy?: Querybuildertypesv5GroupByKeyDTO[];+ having?: Querybuildertypesv5HavingDTO;+ /**+ * @type string+ */+ legend?: string;+ /**+ * @type integer+ */+ limit?: number;+ limitBy?: Querybuildertypesv5LimitByDTO;+ /**+ * @type string+ */+ name?: string;+ /**+ * @type integer+ */+ offset?: number;+ /**+ * @type array+ */+ order?: Querybuildertypesv5OrderByDTO[];+ /**+ * @type array+ */+ secondaryAggregations?: Querybuildertypesv5SecondaryAggregationDTO[];+ /**+ * @type array+ */+ selectFields?: TelemetrytypesTelemetryFieldKeyDTO[];+ signal?: TelemetrytypesSignalDTO;+ source?: TelemetrytypesSourceDTO;+ stepInterval?: Querybuildertypesv5StepDTO;+}++export interface Querybuildertypesv5QueryBuilderQueryGithubComSigNozSignozPkgTypesQuerybuildertypesQuerybuildertypesv5MetricAggregationDTO {+ /**+ * @type array+ */+ aggregations?: Querybuildertypesv5MetricAggregationDTO[];+ /**+ * @type string+ */+ cursor?: string;+ /**+ * @type boolean+ */+ disabled?: boolean;+ filter?: Querybuildertypesv5FilterDTO;+ /**+ * @type array+ */+ functions?: Querybuildertypesv5FunctionDTO[];+ /**+ * @type array+ */+ groupBy?: Querybuildertypesv5GroupByKeyDTO[];+ having?: Querybuildertypesv5HavingDTO;+ /**+ * @type string+ */+ legend?: string;+ /**+ * @type integer+ */+ limit?: number;+ limitBy?: Querybuildertypesv5LimitByDTO;+ /**+ * @type string+ */+ name?: string;+ /**+ * @type integer+ */+ offset?: number;+ /**+ * @type array+ */+ order?: Querybuildertypesv5OrderByDTO[];+ /**+ * @type array+ */+ secondaryAggregations?: Querybuildertypesv5SecondaryAggregationDTO[];+ /**+ * @type array+ */+ selectFields?: TelemetrytypesTelemetryFieldKeyDTO[];+ signal?: TelemetrytypesSignalDTO;+ source?: TelemetrytypesSourceDTO;+ stepInterval?: Querybuildertypesv5StepDTO;+}++export interface Querybuildertypesv5QueryBuilderQueryGithubComSigNozSignozPkgTypesQuerybuildertypesQuerybuildertypesv5TraceAggregationDTO {/*** @type array- * @nullable true*/- allowedScopes?: string[] | null;+ aggregations?: Querybuildertypesv5TraceAggregationDTO[];+ /**+ * @type string+ */+ cursor?: string;+ /**+ * @type boolean+ */+ disabled?: boolean;+ filter?: Querybuildertypesv5FilterDTO;/*** @type array- * @nullable true*/- allowedValues?: string[] | null;- defaultValue?: PreferencetypesValueDTO;+ functions?: Querybuildertypesv5FunctionDTO[];+ /**+ * @type array+ */+ groupBy?: Querybuildertypesv5GroupByKeyDTO[];+ having?: Querybuildertypesv5HavingDTO;/*** @type string*/- description?: string;+ legend?: string;+ /**+ * @type integer+ */+ limit?: number;+ limitBy?: Querybuildertypesv5LimitByDTO;/*** @type string*/name?: string;- value?: PreferencetypesValueDTO;/**- * @type string+ * @type integer*/- valueType?: string;-}--export interface PreferencetypesUpdatablePreferenceDTO {- value?: unknown;-}--export interface PreferencetypesValueDTO {- [key: string]: unknown;+ offset?: number;+ /**+ * @type array+ */+ order?: Querybuildertypesv5OrderByDTO[];+ /**+ * @type array+ */+ secondaryAggregations?: Querybuildertypesv5SecondaryAggregationDTO[];+ /**+ * @type array+ */+ selectFields?: TelemetrytypesTelemetryFieldKeyDTO[];+ signal?: TelemetrytypesSignalDTO;+ source?: TelemetrytypesSourceDTO;+ stepInterval?: Querybuildertypesv5StepDTO;}-export interface PromotetypesPromotePathDTO {+export interface Querybuildertypesv5QueryBuilderTraceOperatorDTO {/*** @type array*/- indexes?: PromotetypesWrappedIndexDTO[];+ aggregations?: Querybuildertypesv5TraceAggregationDTO[];/*** @type string*/- path?: string;+ cursor?: string;/*** @type boolean*/- promote?: boolean;-}--export interface PromotetypesWrappedIndexDTO {+ disabled?: boolean;/*** @type string*/- column_type?: string;+ expression?: string;+ filter?: Querybuildertypesv5FilterDTO;+ /**+ * @type array+ */+ functions?: Querybuildertypesv5FunctionDTO[];+ /**+ * @type array+ */+ groupBy?: Querybuildertypesv5GroupByKeyDTO[];+ having?: Querybuildertypesv5HavingDTO;+ /**+ * @type string+ */+ legend?: string;/*** @type integer*/- granularity?: number;+ limit?: number;/*** @type string*/- type?: string;-}--export type Querybuildertypesv5ExecStatsDTOStepIntervals = {- [key: string]: number;+ name?: string;+ /**+ * @type integer+ */+ offset?: number;+ /**+ * @type array+ */+ order?: Querybuildertypesv5OrderByDTO[];+ /**+ * @type string+ */+ returnSpansFrom?: string;+ /**+ * @type array+ */+ selectFields?: TelemetrytypesTelemetryFieldKeyDTO[];+ stepInterval?: Querybuildertypesv5StepDTO;+}++export type Querybuildertypesv5QueryDataDTO =+ | (Querybuildertypesv5TimeSeriesDataDTO & {+ /**+ * @type array+ * @nullable true+ */+ results?: unknown[] | null;+ })+ | (Querybuildertypesv5ScalarDataDTO & {+ /**+ * @type array+ * @nullable true+ */+ results?: unknown[] | null;+ })+ | (Querybuildertypesv5RawDataDTO & {+ /**+ * @type array+ * @nullable true+ */+ results?: unknown[] | null;+ });++export type Querybuildertypesv5QueryEnvelopeDTO =+ | (Querybuildertypesv5QueryEnvelopeBuilderTraceDTO & {+ spec?: unknown;+ type?: Querybuildertypesv5QueryTypeDTO;+ })+ | (Querybuildertypesv5QueryEnvelopeBuilderLogDTO & {+ spec?: unknown;+ type?: Querybuildertypesv5QueryTypeDTO;+ })+ | (Querybuildertypesv5QueryEnvelopeBuilderMetricDTO & {+ spec?: unknown;+ type?: Querybuildertypesv5QueryTypeDTO;+ })+ | (Querybuildertypesv5QueryEnvelopeFormulaDTO & {+ spec?: unknown;+ type?: Querybuildertypesv5QueryTypeDTO;+ })+ | (Querybuildertypesv5QueryEnvelopeTraceOperatorDTO & {+ spec?: unknown;+ type?: Querybuildertypesv5QueryTypeDTO;+ })+ | (Querybuildertypesv5QueryEnvelopePromQLDTO & {+ spec?: unknown;+ type?: Querybuildertypesv5QueryTypeDTO;+ })+ | (Querybuildertypesv5QueryEnvelopeClickHouseSQLDTO & {+ spec?: unknown;+ type?: Querybuildertypesv5QueryTypeDTO;+ });++export interface Querybuildertypesv5QueryEnvelopeBuilderLogDTO {+ spec?: Querybuildertypesv5QueryBuilderQueryGithubComSigNozSignozPkgTypesQuerybuildertypesQuerybuildertypesv5LogAggregationDTO;+ type?: Querybuildertypesv5QueryTypeDTO;+}++export interface Querybuildertypesv5QueryEnvelopeBuilderMetricDTO {+ spec?: Querybuildertypesv5QueryBuilderQueryGithubComSigNozSignozPkgTypesQuerybuildertypesQuerybuildertypesv5MetricAggregationDTO;+ type?: Querybuildertypesv5QueryTypeDTO;+}++export interface Querybuildertypesv5QueryEnvelopeBuilderTraceDTO {+ spec?: Querybuildertypesv5QueryBuilderQueryGithubComSigNozSignozPkgTypesQuerybuildertypesQuerybuildertypesv5TraceAggregationDTO;+ type?: Querybuildertypesv5QueryTypeDTO;+}++export interface Querybuildertypesv5QueryEnvelopeClickHouseSQLDTO {+ spec?: Querybuildertypesv5ClickHouseQueryDTO;+ type?: Querybuildertypesv5QueryTypeDTO;+}++export interface Querybuildertypesv5QueryEnvelopeFormulaDTO {+ spec?: Querybuildertypesv5QueryBuilderFormulaDTO;+ type?: Querybuildertypesv5QueryTypeDTO;+}++export interface Querybuildertypesv5QueryEnvelopePromQLDTO {+ spec?: Querybuildertypesv5PromQueryDTO;+ type?: Querybuildertypesv5QueryTypeDTO;+}++export interface Querybuildertypesv5QueryEnvelopeTraceOperatorDTO {+ spec?: Querybuildertypesv5QueryBuilderTraceOperatorDTO;+ type?: Querybuildertypesv5QueryTypeDTO;+}++export type Querybuildertypesv5QueryRangeRequestDTOVariables = {+ [key: string]: Querybuildertypesv5VariableItemDTO;};-export interface Querybuildertypesv5ExecStatsDTO {+/**+ * Request body for the v5 query range endpoint. Supports builder queries (traces, logs, metrics), formulas, joins, trace operators, PromQL, and ClickHouse SQL queries.+ */+export interface Querybuildertypesv5QueryRangeRequestDTO {+ compositeQuery?: Querybuildertypesv5CompositeQueryDTO;/*** @type integer* @minimum 0*/- bytesScanned?: number;+ end?: number;+ formatOptions?: Querybuildertypesv5FormatOptionsDTO;/**- * @type integer- * @minimum 0+ * @type boolean*/- durationMs?: number;+ noCache?: boolean;+ requestType?: Querybuildertypesv5RequestTypeDTO;+ /**+ * @type string+ */+ schemaVersion?: string;/*** @type integer* @minimum 0*/- rowsScanned?: number;+ start?: number;/*** @type object*/- stepIntervals?: Querybuildertypesv5ExecStatsDTOStepIntervals;+ variables?: Querybuildertypesv5QueryRangeRequestDTOVariables;}-export interface Querybuildertypesv5FilterDTO {+/**+ * Response from the v5 query range endpoint. The data.results array contains typed results depending on the requestType: TimeSeriesData for time_series, ScalarData for scalar, or RawData for raw requests.+ */+export interface Querybuildertypesv5QueryRangeResponseDTO {+ data?: Querybuildertypesv5QueryDataDTO;+ meta?: Querybuildertypesv5ExecStatsDTO;+ type?: Querybuildertypesv5RequestTypeDTO;+ warning?: Querybuildertypesv5QueryWarnDataDTO;+}++export enum Querybuildertypesv5QueryTypeDTO {+ builder_query = 'builder_query',+ builder_formula = 'builder_formula',+ builder_trace_operator = 'builder_trace_operator',+ clickhouse_sql = 'clickhouse_sql',+ promql = 'promql',+}+export interface Querybuildertypesv5QueryWarnDataDTO {/*** @type string*/- expression?: string;+ message?: string;+ /**+ * @type string+ */+ url?: string;+ /**+ * @type array+ */+ warnings?: Querybuildertypesv5QueryWarnDataAdditionalDTO[];}-export interface Querybuildertypesv5OrderByDTO {+export interface Querybuildertypesv5QueryWarnDataAdditionalDTO {/*** @type string*/- direction?: string;- key?: Querybuildertypesv5OrderByKeyDTO;+ message?: string;}-export interface Querybuildertypesv5OrderByKeyDTO {+export interface Querybuildertypesv5RawDataDTO {/*** @type string*/- description?: string;+ nextCursor?: string;/*** @type string*/- fieldContext?: string;+ queryName?: string;+ /**+ * @type array+ * @nullable true+ */+ rows?: Querybuildertypesv5RawRowDTO[] | null;+}++/**+ * @nullable+ */+export type Querybuildertypesv5RawRowDTOData = {+ [key: string]: unknown;+} | null;++export interface Querybuildertypesv5RawRowDTO {+ /**+ * @type object+ * @nullable true+ */+ data?: Querybuildertypesv5RawRowDTOData;/*** @type string+ * @format date-time+ */+ timestamp?: Date;+}++export enum Querybuildertypesv5ReduceToDTO {+ sum = 'sum',+ count = 'count',+ avg = 'avg',+ min = 'min',+ max = 'max',+ last = 'last',+ median = 'median',+}+export enum Querybuildertypesv5RequestTypeDTO {+ scalar = 'scalar',+ time_series = 'time_series',+ raw = 'raw',+ raw_stream = 'raw_stream',+ trace = 'trace',+}+export interface Querybuildertypesv5ScalarDataDTO {+ /**+ * @type array+ * @nullable true+ */+ columns?: Querybuildertypesv5ColumnDescriptorDTO[] | null;+ /**+ * @type array+ * @nullable true*/- fieldDataType?: string;+ data?: unknown[][] | null;/*** @type string*/- name: string;+ queryName?: string;+}++export interface Querybuildertypesv5SecondaryAggregationDTO {/*** @type string*/- signal?: string;+ alias?: string;/*** @type string*/- unit?: string;+ expression?: string;+ /**+ * @type array+ */+ groupBy?: Querybuildertypesv5GroupByKeyDTO[];+ /**+ * @type integer+ */+ limit?: number;+ limitBy?: Querybuildertypesv5LimitByDTO;+ /**+ * @type array+ */+ order?: Querybuildertypesv5OrderByDTO[];+ stepInterval?: Querybuildertypesv5StepDTO;}-export interface Querybuildertypesv5QueryDataDTO {+/**+ * Step interval. Accepts a Go duration string (e.g., "60s", "1m", "1h") or a number representing seconds (e.g., 60).+ */+export type Querybuildertypesv5StepDTO = string | number;++export interface Querybuildertypesv5TimeSeriesDTO {+ /**+ * @type array+ */+ labels?: Querybuildertypesv5LabelDTO[];/*** @type array* @nullable true*/- results?: unknown[] | null;+ values?: Querybuildertypesv5TimeSeriesValueDTO[] | null;}-export interface Querybuildertypesv5QueryRangeResponseDTO {- data?: Querybuildertypesv5QueryDataDTO;- meta?: Querybuildertypesv5ExecStatsDTO;+export interface Querybuildertypesv5TimeSeriesDataDTO {+ /**+ * @type array+ * @nullable true+ */+ aggregations?: Querybuildertypesv5AggregationBucketDTO[] | null;/*** @type string*/- type?: string;- warning?: Querybuildertypesv5QueryWarnDataDTO;+ queryName?: string;}-export interface Querybuildertypesv5QueryWarnDataDTO {+export interface Querybuildertypesv5TimeSeriesValueDTO {+ bucket?: Querybuildertypesv5BucketDTO;/**- * @type string+ * @type boolean*/- message?: string;+ partial?: boolean;/**- * @type string+ * @type integer+ * @format int64*/- url?: string;+ timestamp?: number;+ /**+ * @type number+ * @format double+ */+ value?: number;/*** @type array*/- warnings?: Querybuildertypesv5QueryWarnDataAdditionalDTO[];+ values?: number[];}-export interface Querybuildertypesv5QueryWarnDataAdditionalDTO {+export interface Querybuildertypesv5TraceAggregationDTO {/*** @type string*/- message?: string;+ alias?: string;+ /**+ * @type string+ */+ expression?: string;+}++export interface Querybuildertypesv5VariableItemDTO {+ type?: Querybuildertypesv5VariableTypeDTO;+ value?: unknown;}+export enum Querybuildertypesv5VariableTypeDTO {+ query = 'query',+ dynamic = 'dynamic',+ custom = 'custom',+ text = 'text',+}export interface RenderErrorResponseDTO {error?: ErrorsJSONDTO;/**@@ -1141,6 +1968,21 @@ export interface RoletypesRoleDTO {updatedAt?: Date;}+export enum TelemetrytypesFieldContextDTO {+ metric = 'metric',+ log = 'log',+ span = 'span',+ resource = 'resource',+ attribute = 'attribute',+ body = 'body',+}+export enum TelemetrytypesFieldDataTypeDTO {+ string = 'string',+ bool = 'bool',+ float64 = 'float64',+ int64 = 'int64',+ number = 'number',+}/*** @nullable*/@@ -1168,27 +2010,26 @@ export interface TelemetrytypesGettableFieldValuesDTO {values: TelemetrytypesTelemetryFieldValuesDTO;}+export enum TelemetrytypesSignalDTO {+ traces = 'traces',+ logs = 'logs',+ metrics = 'metrics',+}+export enum TelemetrytypesSourceDTO {+ meter = 'meter',+}export interface TelemetrytypesTelemetryFieldKeyDTO {/*** @type string*/description?: string;- /**- * @type string- */- fieldContext?: string;- /**- * @type string- */- fieldDataType?: string;+ fieldContext?: TelemetrytypesFieldContextDTO;+ fieldDataType?: TelemetrytypesFieldDataTypeDTO;/*** @type string*/name: string;- /**- * @type string- */- signal?: string;+ signal?: TelemetrytypesSignalDTO;/*** @type string*/@@ -1667,15 +2508,13 @@ export type UpdateAuthDomainPathParameters = {};export type GetFieldsKeysParams = {/**- * @type string* @description undefined*/- signal?: string;+ signal?: TelemetrytypesSignalDTO;/**- * @type string* @description undefined*/- source?: string;+ source?: TelemetrytypesSourceDTO;/*** @type integer* @description undefined@@ -1694,15 +2533,13 @@ export type GetFieldsKeysParams = {*/endUnixMilli?: number;/**- * @type string* @description undefined*/- fieldContext?: string;+ fieldContext?: TelemetrytypesFieldContextDTO;/**- * @type string* @description undefined*/- fieldDataType?: string;+ fieldDataType?: TelemetrytypesFieldDataTypeDTO;/*** @type string* @description undefined@@ -1725,15 +2562,13 @@ export type GetFieldsKeys200 = {export type GetFieldsValuesParams = {/**- * @type string* @description undefined*/- signal?: string;+ signal?: TelemetrytypesSignalDTO;/**- * @type string* @description undefined*/- source?: string;+ source?: TelemetrytypesSourceDTO;/*** @type integer* @description undefined@@ -1752,15 +2587,13 @@ export type GetFieldsValuesParams = {*/endUnixMilli?: number;/**- * @type string* @description undefined*/- fieldContext?: string;+ fieldContext?: TelemetrytypesFieldContextDTO;/**- * @type string* @description undefined*/- fieldDataType?: string;+ fieldDataType?: TelemetrytypesFieldDataTypeDTO;/*** @type string* @description undefined@@ -2252,3 +3085,11 @@ export type RotateSession200 = {*/status?: string;};++export type QueryRangeV5200 = {+ data?: Querybuildertypesv5QueryRangeResponseDTO;+ /**+ * @type string+ */+ status?: string;+};diff --git a/pkg/http/handler/handler.go b/pkg/http/handler/handler.goindex 22d3b81d60..cb4e83e720 100644--- a/pkg/http/handler/handler.go+++ b/pkg/http/handler/handler.go@@ -7,6 +7,7 @@ import ("github.com/SigNoz/signoz/pkg/errors""github.com/SigNoz/signoz/pkg/http/render""github.com/swaggest/openapi-go"+ "github.com/swaggest/openapi-go/openapi3")type ServeOpenAPIFunc func(openapi.OperationContext)@@ -59,7 +60,39 @@ func (handler *handler) ServeOpenAPI(opCtx openapi.OperationContext) {}// Add request structure- opCtx.AddReqStructure(handler.openAPIDef.Request, openapi.WithContentType(handler.openAPIDef.RequestContentType))+ reqOpts := []openapi.ContentOption{openapi.WithContentType(handler.openAPIDef.RequestContentType)}+ if len(handler.openAPIDef.RequestExamples) > 0 {+ reqOpts = append(reqOpts, openapi.WithCustomize(func(cor openapi.ContentOrReference) {+ rbOrRef, ok := cor.(*openapi3.RequestBodyOrRef)+ if !ok || rbOrRef.RequestBody == nil {+ return+ }+ ct := handler.openAPIDef.RequestContentType+ if ct == "" {+ ct = "application/json"+ }+ mt, exists := rbOrRef.RequestBody.Content[ct]+ if !exists {+ return+ }+ if mt.Examples == nil {+ mt.Examples = make(map[string]openapi3.ExampleOrRef)+ }+ for _, ex := range handler.openAPIDef.RequestExamples {+ val := ex.Value+ oaExample := openapi3.Example{Value: &val}+ if ex.Summary != "" {+ oaExample.WithSummary(ex.Summary)+ }+ if ex.Description != "" {+ oaExample.WithDescription(ex.Description)+ }+ mt.Examples[ex.Name] = openapi3.ExampleOrRef{Example: &oaExample}+ }+ rbOrRef.RequestBody.Content[ct] = mt+ }))+ }+ opCtx.AddReqStructure(handler.openAPIDef.Request, reqOpts...)// Add request query structureopCtx.AddReqStructure(handler.openAPIDef.RequestQuery)diff --git a/pkg/http/handler/openapi.go b/pkg/http/handler/openapi.goindex 2bc0e2220c..6dcad932c7 100644--- a/pkg/http/handler/openapi.go+++ b/pkg/http/handler/openapi.go@@ -9,6 +9,14 @@ import ("github.com/swaggest/rest/openapi")+// OpenAPIExample is a named example for an OpenAPI operation.+type OpenAPIExample struct {+ Name string+ Summary string+ Description string+ Value any+}+// Def is the definition of an OpenAPI operationtype OpenAPIDef struct {ID string@@ -18,6 +26,7 @@ type OpenAPIDef struct {Request anyRequestQuery anyRequestContentType string+ RequestExamples []OpenAPIExampleResponse anyResponseContentType stringSuccessStatusCode intdiff --git a/pkg/querier/openapi.go b/pkg/querier/openapi.gonew file mode 100644index 0000000000..f597270063--- /dev/null+++ b/pkg/querier/openapi.go@@ -0,0 +1,454 @@+package querier++import (+ "net/http"++ "github.com/SigNoz/signoz/pkg/http/handler"+ qbtypes "github.com/SigNoz/signoz/pkg/types/querybuildertypes/querybuildertypesv5"+ "github.com/SigNoz/signoz/pkg/types/ctxtypes"+)++// QueryRangeV5OpenAPIDef is the OpenAPI definition for the /api/v5/query_range endpoint.+var QueryRangeV5OpenAPIDef = handler.OpenAPIDef{+ ID: "QueryRangeV5",+ Tags: []string{"query"},+ Summary: "Query range",+ Description: "Execute a composite query over a time range. Supports builder queries (traces, logs, metrics), formulas, trace operators, PromQL, and ClickHouse SQL.",+ Request: new(qbtypes.QueryRangeRequest),+ RequestContentType: "application/json",+ RequestExamples: queryRangeV5Examples,+ Response: new(qbtypes.QueryRangeResponse),+ ResponseContentType: "application/json",+ SuccessStatusCode: http.StatusOK,+ ErrorStatusCodes: []int{http.StatusBadRequest},+ SecuritySchemes: []handler.OpenAPISecurityScheme{+ {Name: ctxtypes.AuthTypeAPIKey.StringValue(), Scopes: []string{"VIEWER"}},+ {Name: ctxtypes.AuthTypeTokenizer.StringValue(), Scopes: []string{"VIEWER"}},+ },+}++var queryRangeV5Examples = []handler.OpenAPIExample{+ {+ Name: "traces_time_series",+ Summary: "Time series: count spans grouped by service",+ Value: map[string]any{+ "schemaVersion": "v1",+ "start": 1640995200000,+ "end": 1640998800000,+ "requestType": "time_series",+ "compositeQuery": map[string]any{+ "queries": []any{+ map[string]any{+ "type": "builder_query",+ "spec": map[string]any{+ "name": "A",+ "signal": "traces",+ "aggregations": []any{+ map[string]any{"expression": "count()", "alias": "span_count"},+ },+ "stepInterval": "60s",+ "filter": map[string]any{"expression": "service.name = 'frontend'"},+ "groupBy": []any{map[string]any{"name": "service.name", "fieldContext": "resource"}},+ "order": []any{map[string]any{"key": map[string]any{"name": "span_count"}, "direction": "desc"}},+ "limit": 10,+ },+ },+ },+ },+ },+ },+ {+ Name: "logs_time_series",+ Summary: "Time series: count error logs grouped by service",+ Value: map[string]any{+ "schemaVersion": "v1",+ "start": 1640995200000,+ "end": 1640998800000,+ "requestType": "time_series",+ "compositeQuery": map[string]any{+ "queries": []any{+ map[string]any{+ "type": "builder_query",+ "spec": map[string]any{+ "name": "A",+ "signal": "logs",+ "aggregations": []any{+ map[string]any{"expression": "count()", "alias": "log_count"},+ },+ "stepInterval": "60s",+ "filter": map[string]any{"expression": "severity_text = 'ERROR'"},+ "groupBy": []any{map[string]any{"name": "service.name", "fieldContext": "resource"}},+ "order": []any{map[string]any{"key": map[string]any{"name": "log_count"}, "direction": "desc"}},+ "limit": 10,+ },+ },+ },+ },+ },+ },+ {+ Name: "metrics_gauge_time_series",+ Summary: "Time series: latest gauge value averaged across series",+ Value: map[string]any{+ "schemaVersion": "v1",+ "start": 1640995200000,+ "end": 1640998800000,+ "requestType": "time_series",+ "compositeQuery": map[string]any{+ "queries": []any{+ map[string]any{+ "type": "builder_query",+ "spec": map[string]any{+ "name": "A",+ "signal": "metrics",+ "aggregations": []any{+ map[string]any{"metricName": "system.cpu.utilization", "timeAggregation": "latest", "spaceAggregation": "avg"},+ },+ "stepInterval": "60s",+ "groupBy": []any{map[string]any{"name": "host.name", "fieldContext": "resource"}},+ },+ },+ },+ },+ },+ },+ {+ Name: "metrics_rate_time_series",+ Summary: "Time series: rate of cumulative counter",+ Value: map[string]any{+ "schemaVersion": "v1",+ "start": 1640995200000,+ "end": 1640998800000,+ "requestType": "time_series",+ "compositeQuery": map[string]any{+ "queries": []any{+ map[string]any{+ "type": "builder_query",+ "spec": map[string]any{+ "name": "A",+ "signal": "metrics",+ "aggregations": []any{+ map[string]any{"metricName": "http.server.duration.count", "timeAggregation": "rate", "spaceAggregation": "sum"},+ },+ "stepInterval": 120,+ "groupBy": []any{map[string]any{"name": "service.name", "fieldContext": "resource"}},+ },+ },+ },+ },+ },+ },+ {+ Name: "metrics_histogram_time_series",+ Summary: "Time series: p99 latency from histogram",+ Value: map[string]any{+ "schemaVersion": "v1",+ "start": 1640995200000,+ "end": 1640998800000,+ "requestType": "time_series",+ "compositeQuery": map[string]any{+ "queries": []any{+ map[string]any{+ "type": "builder_query",+ "spec": map[string]any{+ "name": "A",+ "signal": "metrics",+ "aggregations": []any{+ map[string]any{"metricName": "http.server.duration.bucket", "spaceAggregation": "p99"},+ },+ "stepInterval": "60s",+ "groupBy": []any{map[string]any{"name": "service.name", "fieldContext": "resource"}},+ },+ },+ },+ },+ },+ },+ {+ Name: "logs_raw",+ Summary: "Raw: fetch raw log records",+ Value: map[string]any{+ "schemaVersion": "v1",+ "start": 1640995200000,+ "end": 1640998800000,+ "requestType": "raw",+ "compositeQuery": map[string]any{+ "queries": []any{+ map[string]any{+ "type": "builder_query",+ "spec": map[string]any{+ "name": "A",+ "signal": "logs",+ "filter": map[string]any{"expression": "severity_text = 'ERROR'"},+ "selectFields": []any{+ map[string]any{"name": "body", "fieldContext": "log"},+ map[string]any{"name": "service.name", "fieldContext": "resource"},+ },+ "order": []any{+ map[string]any{"key": map[string]any{"name": "timestamp", "fieldContext": "log"}, "direction": "desc"},+ map[string]any{"key": map[string]any{"name": "id"}, "direction": "desc"},+ },+ "limit": 50,+ "offset": 0,+ },+ },+ },+ },+ },+ },+ {+ Name: "traces_raw",+ Summary: "Raw: fetch raw span records",+ Value: map[string]any{+ "schemaVersion": "v1",+ "start": 1640995200000,+ "end": 1640998800000,+ "requestType": "raw",+ "compositeQuery": map[string]any{+ "queries": []any{+ map[string]any{+ "type": "builder_query",+ "spec": map[string]any{+ "name": "A",+ "signal": "traces",+ "filter": map[string]any{"expression": "service.name = 'frontend' AND has_error = true"},+ "selectFields": []any{+ map[string]any{"name": "name", "fieldContext": "span"},+ map[string]any{"name": "duration_nano", "fieldContext": "span"},+ },+ "order": []any{+ map[string]any{"key": map[string]any{"name": "timestamp", "fieldContext": "span"}, "direction": "desc"},+ },+ "limit": 100,+ },+ },+ },+ },+ },+ },+ {+ Name: "traces_scalar",+ Summary: "Scalar: total span count",+ Value: map[string]any{+ "schemaVersion": "v1",+ "start": 1640995200000,+ "end": 1640998800000,+ "requestType": "scalar",+ "compositeQuery": map[string]any{+ "queries": []any{+ map[string]any{+ "type": "builder_query",+ "spec": map[string]any{+ "name": "A",+ "signal": "traces",+ "aggregations": []any{+ map[string]any{"expression": "count()", "alias": "span_count"},+ },+ "filter": map[string]any{"expression": "service.name = 'frontend'"},+ },+ },+ },+ },+ },+ },+ {+ Name: "logs_scalar",+ Summary: "Scalar: total error log count",+ Value: map[string]any{+ "schemaVersion": "v1",+ "start": 1640995200000,+ "end": 1640998800000,+ "requestType": "scalar",+ "compositeQuery": map[string]any{+ "queries": []any{+ map[string]any{+ "type": "builder_query",+ "spec": map[string]any{+ "name": "A",+ "signal": "logs",+ "aggregations": []any{+ map[string]any{"expression": "count()", "alias": "error_count"},+ },+ "filter": map[string]any{"expression": "severity_text = 'ERROR'"},+ },+ },+ },+ },+ },+ },+ {+ Name: "metrics_scalar",+ Summary: "Scalar: single reduced metric value",+ Value: map[string]any{+ "schemaVersion": "v1",+ "start": 1640995200000,+ "end": 1640998800000,+ "requestType": "scalar",+ "compositeQuery": map[string]any{+ "queries": []any{+ map[string]any{+ "type": "builder_query",+ "spec": map[string]any{+ "name": "A",+ "signal": "metrics",+ "aggregations": []any{+ map[string]any{"metricName": "http.server.duration.count", "timeAggregation": "rate", "spaceAggregation": "sum", "reduceTo": "sum"},+ },+ "stepInterval": "60s",+ },+ },+ },+ },+ },+ },+ {+ Name: "formula",+ Summary: "Formula: error rate from two trace queries",+ Value: map[string]any{+ "schemaVersion": "v1",+ "start": 1640995200000,+ "end": 1640998800000,+ "requestType": "time_series",+ "compositeQuery": map[string]any{+ "queries": []any{+ map[string]any{+ "type": "builder_query",+ "spec": map[string]any{+ "name": "A",+ "signal": "traces",+ "aggregations": []any{map[string]any{"expression": "countIf(has_error = true)"}},+ "stepInterval": "60s",+ "groupBy": []any{map[string]any{"name": "service.name", "fieldContext": "resource"}},+ },+ },+ map[string]any{+ "type": "builder_query",+ "spec": map[string]any{+ "name": "B",+ "signal": "traces",+ "aggregations": []any{map[string]any{"expression": "count()"}},+ "stepInterval": "60s",+ "groupBy": []any{map[string]any{"name": "service.name", "fieldContext": "resource"}},+ },+ },+ map[string]any{+ "type": "builder_formula",+ "spec": map[string]any{+ "name": "error_rate",+ "expression": "A / B * 100",+ },+ },+ },+ },+ },+ },+ {+ Name: "promql",+ Summary: "PromQL: request rate with UTF-8 metric name",+ Value: map[string]any{+ "schemaVersion": "v1",+ "start": 1640995200000,+ "end": 1640998800000,+ "requestType": "time_series",+ "compositeQuery": map[string]any{+ "queries": []any{+ map[string]any{+ "type": "promql",+ "spec": map[string]any{+ "name": "request_rate",+ "query": "sum(rate({\"http.server.duration.count\"}[5m])) by (\"service.name\")",+ "step": 60,+ },+ },+ },+ },+ },+ },+ {+ Name: "clickhouse_sql_traces_time_series",+ Summary: "ClickHouse SQL: traces time series with resource filter",+ Value: map[string]any{+ "schemaVersion": "v1",+ "start": 1640995200000,+ "end": 1640998800000,+ "requestType": "time_series",+ "compositeQuery": map[string]any{+ "queries": []any{+ map[string]any{+ "type": "clickhouse_sql",+ "spec": map[string]any{+ "name": "span_rate",+ "query": "WITH __resource_filter AS (" ++ " SELECT fingerprint FROM signoz_traces.distributed_traces_v3_resource" ++ " WHERE seen_at_ts_bucket_start >= $start_timestamp - 1800 AND seen_at_ts_bucket_start <= $end_timestamp" ++ " ) SELECT toStartOfInterval(timestamp, INTERVAL 60 SECOND) AS ts, count() AS value" ++ " FROM signoz_traces.distributed_signoz_index_v3" ++ " WHERE resource_fingerprint GLOBAL IN (SELECT fingerprint FROM __resource_filter)" ++ " AND timestamp >= $start_datetime AND timestamp <= $end_datetime" ++ " AND ts_bucket_start >= $start_timestamp - 1800 AND ts_bucket_start <= $end_timestamp" ++ " GROUP BY ts ORDER BY ts",+ },+ },+ },+ },+ },+ },+ {+ Name: "clickhouse_sql_logs_raw",+ Summary: "ClickHouse SQL: raw logs with resource filter",+ Value: map[string]any{+ "schemaVersion": "v1",+ "start": 1640995200000,+ "end": 1640998800000,+ "requestType": "raw",+ "compositeQuery": map[string]any{+ "queries": []any{+ map[string]any{+ "type": "clickhouse_sql",+ "spec": map[string]any{+ "name": "recent_errors",+ "query": "WITH __resource_filter AS (" ++ " SELECT fingerprint FROM signoz_logs.distributed_logs_v2_resource" ++ " WHERE seen_at_ts_bucket_start >= $start_timestamp - 1800 AND seen_at_ts_bucket_start <= $end_timestamp" ++ " ) SELECT timestamp, body" ++ " FROM signoz_logs.distributed_logs_v2" ++ " WHERE resource_fingerprint GLOBAL IN (SELECT fingerprint FROM __resource_filter)" ++ " AND timestamp >= $start_timestamp_nano AND timestamp <= $end_timestamp_nano" ++ " AND ts_bucket_start >= $start_timestamp - 1800 AND ts_bucket_start <= $end_timestamp" ++ " AND severity_text = 'ERROR'" ++ " ORDER BY timestamp DESC LIMIT 100",+ },+ },+ },+ },+ },+ },+ {+ Name: "clickhouse_sql_traces_scalar",+ Summary: "ClickHouse SQL: scalar aggregate with resource filter",+ Value: map[string]any{+ "schemaVersion": "v1",+ "start": 1640995200000,+ "end": 1640998800000,+ "requestType": "scalar",+ "compositeQuery": map[string]any{+ "queries": []any{+ map[string]any{+ "type": "clickhouse_sql",+ "spec": map[string]any{+ "name": "total_spans",+ "query": "WITH __resource_filter AS (" ++ " SELECT fingerprint FROM signoz_traces.distributed_traces_v3_resource" ++ " WHERE seen_at_ts_bucket_start >= $start_timestamp - 1800 AND seen_at_ts_bucket_start <= $end_timestamp" ++ " ) SELECT count() AS value" ++ " FROM signoz_traces.distributed_signoz_index_v3" ++ " WHERE resource_fingerprint GLOBAL IN (SELECT fingerprint FROM __resource_filter)" ++ " AND timestamp >= $start_datetime AND timestamp <= $end_datetime" ++ " AND ts_bucket_start >= $start_timestamp - 1800 AND ts_bucket_start <= $end_timestamp",+ },+ },+ },+ },+ },+ },+}diff --git a/pkg/signoz/openapi.go b/pkg/signoz/openapi.goindex 6199338c84..972d82634a 100644--- a/pkg/signoz/openapi.go+++ b/pkg/signoz/openapi.go@@ -1,7 +1,10 @@package signozimport (+ "bytes""context"+ "encoding/json"+ "net/http""os""reflect"@@ -22,10 +25,13 @@ import ("github.com/SigNoz/signoz/pkg/modules/promote""github.com/SigNoz/signoz/pkg/modules/session""github.com/SigNoz/signoz/pkg/modules/user"+ "github.com/SigNoz/signoz/pkg/querier""github.com/SigNoz/signoz/pkg/types/ctxtypes"+ "github.com/gorilla/mux""github.com/swaggest/jsonschema-go""github.com/swaggest/openapi-go""github.com/swaggest/openapi-go/openapi3"+ "gopkg.in/yaml.v2")type OpenAPI struct {@@ -57,6 +63,10 @@ func NewOpenAPI(ctx context.Context, instrumentation instrumentation.Instrumentareturn nil, err}+ // Register routes that live outside the APIServer modules+ // so they are discovered by the OpenAPI walker.+ registerQueryRoutes(apiserver.Router())+reflector := openapi3.NewReflector()reflector.JSONSchemaReflector().DefaultOptions = append(reflector.JSONSchemaReflector().DefaultOptions, jsonschema.InterceptDefName(func(t reflect.Type, defaultDefName string) string {if defaultDefName == "RenderSuccessResponse" {@@ -90,10 +100,67 @@ func (openapi *OpenAPI) CreateAndWrite(path string) error {return err}- spec, err := openapi.reflector.Spec.MarshalYAML()+ // The library's MarshalYAML does a JSON round-trip that converts all numbers+ // to float64, causing large integers (e.g. epoch millisecond timestamps) to+ // render in scientific notation (1.6409952e+12).+ jsonData, err := openapi.reflector.Spec.MarshalJSON()+ if err != nil {+ return err+ }++ dec := json.NewDecoder(bytes.NewReader(jsonData))+ dec.UseNumber()++ var v any+ if err := dec.Decode(&v); err != nil {+ return err+ }++ convertJSONNumbers(v)++ spec, err := yaml.Marshal(v)if err != nil {return err}return os.WriteFile(path, spec, 0o600)}++// convertJSONNumbers recursively walks a decoded JSON structure and converts+// json.Number values to int64 (preferred) or float64 so that YAML marshaling+// renders them as plain numbers instead of quoted strings.+func convertJSONNumbers(v interface{}) {+ switch val := v.(type) {+ case map[string]interface{}:+ for k, elem := range val {+ if n, ok := elem.(json.Number); ok {+ if i, err := n.Int64(); err == nil {+ val[k] = i+ } else if f, err := n.Float64(); err == nil {+ val[k] = f+ }+ } else {+ convertJSONNumbers(elem)+ }+ }+ case []interface{}:+ for i, elem := range val {+ if n, ok := elem.(json.Number); ok {+ if i64, err := n.Int64(); err == nil {+ val[i] = i64+ } else if f, err := n.Float64(); err == nil {+ val[i] = f+ }+ } else {+ convertJSONNumbers(elem)+ }+ }+ }+}++func registerQueryRoutes(router *mux.Router) {+ router.Handle("/api/v5/query_range", handler.New(+ func(http.ResponseWriter, *http.Request) {},+ querier.QueryRangeV5OpenAPIDef,+ )).Methods(http.MethodPost)+}diff --git a/pkg/types/metrictypes/metrictypes.go b/pkg/types/metrictypes/metrictypes.goindex ccb0d17d84..b4106aadaa 100644--- a/pkg/types/metrictypes/metrictypes.go+++ b/pkg/types/metrictypes/metrictypes.go@@ -172,7 +172,6 @@ var (func (TimeAggregation) Enum() []any {return []any{- TimeAggregationUnspecified,TimeAggregationLatest,TimeAggregationSum,TimeAggregationAvg,@@ -205,7 +204,6 @@ var (func (SpaceAggregation) Enum() []any {return []any{- SpaceAggregationUnspecified,SpaceAggregationSum,SpaceAggregationAvg,SpaceAggregationMin,diff --git a/pkg/types/querybuildertypes/querybuildertypesv5/builder_elements.go b/pkg/types/querybuildertypes/querybuildertypesv5/builder_elements.goindex 53fbf4cef2..4284d5a245 100644--- a/pkg/types/querybuildertypes/querybuildertypesv5/builder_elements.go+++ b/pkg/types/querybuildertypes/querybuildertypesv5/builder_elements.go@@ -10,10 +10,35 @@ import ("github.com/SigNoz/signoz/pkg/types/metrictypes""github.com/SigNoz/signoz/pkg/types/telemetrytypes""github.com/SigNoz/signoz/pkg/valuer"+ "github.com/swaggest/jsonschema-go")type Step struct{ time.Duration }+var _ jsonschema.Exposer = Step{}++// JSONSchema returns a custom schema for Step that accepts either a duration string or a number (seconds).+func (Step) JSONSchema() (jsonschema.Schema, error) {+ s := jsonschema.Schema{}+ s.WithDescription("Step interval. Accepts a Go duration string (e.g., \"60s\", \"1m\", \"1h\") or a number representing seconds (e.g., 60).")++ strSchema := jsonschema.Schema{}+ strSchema.WithType(jsonschema.String.Type())+ strSchema.WithExamples("60s", "5m", "1h")+ strSchema.WithDescription("Duration string (e.g., \"60s\", \"5m\", \"1h\").")++ numSchema := jsonschema.Schema{}+ numSchema.WithType(jsonschema.Number.Type())+ numSchema.WithExamples(60, 300, 3600)+ numSchema.WithDescription("Duration in seconds.")++ s.OneOf = []jsonschema.SchemaOrBool{+ strSchema.ToSchemaOrBool(),+ numSchema.ToSchemaOrBool(),+ }+ return s, nil+}+func (s *Step) UnmarshalJSON(b []byte) error {if len(b) == 0 {return nil@@ -181,6 +206,14 @@ var (OrderDirectionDesc = OrderDirection{valuer.NewString("desc")})+// Enum returns the acceptable values for OrderDirection.+func (OrderDirection) Enum() []any {+ return []any{+ OrderDirectionAsc,+ OrderDirectionDesc,+ }+}+var (OrderDirectionMap = map[string]OrderDirection{"asc": OrderDirectionAsc,@@ -203,6 +236,19 @@ var (ReduceToMedian = ReduceTo{valuer.NewString("median")})+// Enum returns the acceptable values for ReduceTo.+func (ReduceTo) Enum() []any {+ return []any{+ ReduceToSum,+ ReduceToCount,+ ReduceToAvg,+ ReduceToMin,+ ReduceToMax,+ ReduceToLast,+ ReduceToMedian,+ }+}+// FunctionReduceTo applies the reduceTo operator to a time series and returns a new series with the reduced value// reduceTo can be one of: last, sum, avg, min, max, count, median// if reduceTo is not recognized, the function returns the original seriesdiff --git a/pkg/types/querybuildertypes/querybuildertypesv5/functions.go b/pkg/types/querybuildertypes/querybuildertypesv5/functions.goindex a05efa4dbe..9af396aec4 100644--- a/pkg/types/querybuildertypes/querybuildertypesv5/functions.go+++ b/pkg/types/querybuildertypes/querybuildertypesv5/functions.go@@ -36,6 +36,30 @@ var (FunctionNameFillZero = FunctionName{valuer.NewString("fillZero")})+// Enum returns the acceptable values for FunctionName.+func (FunctionName) Enum() []any {+ return []any{+ FunctionNameCutOffMin,+ FunctionNameCutOffMax,+ FunctionNameClampMin,+ FunctionNameClampMax,+ FunctionNameAbsolute,+ FunctionNameRunningDiff,+ FunctionNameLog2,+ FunctionNameLog10,+ FunctionNameCumulativeSum,+ FunctionNameEWMA3,+ FunctionNameEWMA5,+ FunctionNameEWMA7,+ FunctionNameMedian3,+ FunctionNameMedian5,+ FunctionNameMedian7,+ FunctionNameTimeShift,+ FunctionNameAnomaly,+ FunctionNameFillZero,+ }+}+// Validate checks if the FunctionName is valid and one of the known typesfunc (fn FunctionName) Validate() error {validFunctions := []FunctionName{diff --git a/pkg/types/querybuildertypes/querybuildertypesv5/join.go b/pkg/types/querybuildertypes/querybuildertypesv5/join.goindex c1db38e91e..ed61486a5c 100644--- a/pkg/types/querybuildertypes/querybuildertypesv5/join.go+++ b/pkg/types/querybuildertypes/querybuildertypesv5/join.go@@ -16,6 +16,17 @@ var (JoinTypeCross = JoinType{valuer.NewString("cross")})+// Enum returns the acceptable values for JoinType.+func (JoinType) Enum() []any {+ return []any{+ JoinTypeInner,+ JoinTypeLeft,+ JoinTypeRight,+ JoinTypeFull,+ JoinTypeCross,+ }+}+type QueryRef struct {Name string `json:"name"`}diff --git a/pkg/types/querybuildertypes/querybuildertypesv5/query.go b/pkg/types/querybuildertypes/querybuildertypesv5/query.goindex ba0434ca49..cf57ff0aaf 100644--- a/pkg/types/querybuildertypes/querybuildertypesv5/query.go+++ b/pkg/types/querybuildertypes/querybuildertypesv5/query.go@@ -2,6 +2,8 @@ package querybuildertypesv5import ("context"++ "github.com/swaggest/jsonschema-go")type Query interface {@@ -29,4 +31,12 @@ type ExecStats struct {StepIntervals map[string]uint64 `json:"stepIntervals,omitempty"`}+var _ jsonschema.Preparer = &ExecStats{}++// PrepareJSONSchema adds description to the ExecStats schema.+func (e *ExecStats) PrepareJSONSchema(schema *jsonschema.Schema) error {+ schema.WithDescription("Execution statistics for the query, including rows scanned, bytes scanned, and duration.")+ return nil+}+type TimeRange struct{ From, To uint64 } // ms since epochdiff --git a/pkg/types/querybuildertypes/querybuildertypesv5/query_type.go b/pkg/types/querybuildertypes/querybuildertypesv5/query_type.goindex c0c3373fed..f2d8d4d3d4 100644--- a/pkg/types/querybuildertypes/querybuildertypesv5/query_type.go+++ b/pkg/types/querybuildertypes/querybuildertypesv5/query_type.go@@ -16,3 +16,17 @@ var (QueryTypeClickHouseSQL = QueryType{valuer.NewString("clickhouse_sql")}QueryTypePromQL = QueryType{valuer.NewString("promql")})++// Enum returns the acceptable values for QueryType.+func (QueryType) Enum() []any {+ return []any{+ QueryTypeBuilder,+ QueryTypeFormula,+ // Not yet supported.+ // QueryTypeSubQuery,+ // QueryTypeJoin,+ QueryTypeTraceOperator,+ QueryTypeClickHouseSQL,+ QueryTypePromQL,+ }+}diff --git a/pkg/types/querybuildertypes/querybuildertypesv5/req.go b/pkg/types/querybuildertypes/querybuildertypesv5/req.goindex 5727354742..a066deb566 100644--- a/pkg/types/querybuildertypes/querybuildertypesv5/req.go+++ b/pkg/types/querybuildertypes/querybuildertypesv5/req.go@@ -9,6 +9,7 @@ import ("github.com/SigNoz/signoz/pkg/types/metrictypes""github.com/SigNoz/signoz/pkg/types/telemetrytypes""github.com/SigNoz/signoz/pkg/valuer"+ "github.com/swaggest/jsonschema-go")type QueryEnvelope struct {@@ -18,6 +19,71 @@ type QueryEnvelope struct {Spec any `json:"spec"`}+// queryEnvelopeBuilderTrace is the OpenAPI schema for a QueryEnvelope with type=builder_query and signal=traces.+type queryEnvelopeBuilderTrace struct {+ Type QueryType `json:"type" description:"The type of the query."`+ Spec QueryBuilderQuery[TraceAggregation] `json:"spec" description:"The trace builder query specification."`+}++// queryEnvelopeBuilderLog is the OpenAPI schema for a QueryEnvelope with type=builder_query and signal=logs.+type queryEnvelopeBuilderLog struct {+ Type QueryType `json:"type" description:"The type of the query."`+ Spec QueryBuilderQuery[LogAggregation] `json:"spec" description:"The log builder query specification."`+}++// queryEnvelopeBuilderMetric is the OpenAPI schema for a QueryEnvelope with type=builder_query and signal=metrics.+type queryEnvelopeBuilderMetric struct {+ Type QueryType `json:"type" description:"The type of the query."`+ Spec QueryBuilderQuery[MetricAggregation] `json:"spec" description:"The metric builder query specification."`+}++// queryEnvelopeFormula is the OpenAPI schema for a QueryEnvelope with type=builder_formula.+type queryEnvelopeFormula struct {+ Type QueryType `json:"type" description:"The type of the query."`+ Spec QueryBuilderFormula `json:"spec" description:"The formula specification."`+}++// queryEnvelopeJoin is the OpenAPI schema for a QueryEnvelope with type=builder_join.+// type queryEnvelopeJoin struct {+// Type QueryType `json:"type" description:"The type of the query."`+// Spec QueryBuilderJoin `json:"spec" description:"The join specification."`+// }++// queryEnvelopeTraceOperator is the OpenAPI schema for a QueryEnvelope with type=builder_trace_operator.+type queryEnvelopeTraceOperator struct {+ Type QueryType `json:"type" description:"The type of the query."`+ Spec QueryBuilderTraceOperator `json:"spec" description:"The trace operator specification."`+}++// queryEnvelopePromQL is the OpenAPI schema for a QueryEnvelope with type=promql.+type queryEnvelopePromQL struct {+ Type QueryType `json:"type" description:"The type of the query."`+ Spec PromQuery `json:"spec" description:"The PromQL query specification."`+}++// queryEnvelopeClickHouseSQL is the OpenAPI schema for a QueryEnvelope with type=clickhouse_sql.+type queryEnvelopeClickHouseSQL struct {+ Type QueryType `json:"type" description:"The type of the query."`+ Spec ClickHouseQuery `json:"spec" description:"The ClickHouse SQL query specification."`+}++var _ jsonschema.OneOfExposer = QueryEnvelope{}++// JSONSchemaOneOf returns the oneOf variants for the QueryEnvelope discriminated union.+// Each variant represents a different query type with its corresponding spec schema.+func (QueryEnvelope) JSONSchemaOneOf() []any {+ return []any{+ queryEnvelopeBuilderTrace{},+ queryEnvelopeBuilderLog{},+ queryEnvelopeBuilderMetric{},+ queryEnvelopeFormula{},+ // queryEnvelopeJoin{},+ queryEnvelopeTraceOperator{},+ queryEnvelopePromQL{},+ queryEnvelopeClickHouseSQL{},+ }+}+// implement custom json unmarshaler for the QueryEnvelopefunc (q *QueryEnvelope) UnmarshalJSON(data []byte) error {var shadow struct {@@ -130,6 +196,12 @@ type CompositeQuery struct {Queries []QueryEnvelope `json:"queries"`}+// PrepareJSONSchema adds description to the CompositeQuery schema.+func (c *CompositeQuery) PrepareJSONSchema(schema *jsonschema.Schema) error {+ schema.WithDescription("Composite query containing one or more query envelopes. Each query envelope specifies its type and corresponding spec.")+ return nil+}+// UnmarshalJSON implements custom JSON unmarshaling to provide better error messagesfunc (c *CompositeQuery) UnmarshalJSON(data []byte) error {type Alias CompositeQuery@@ -192,6 +264,16 @@ var (TextBoxVariableType = VariableType{valuer.NewString("text")})+// Enum returns the acceptable values for VariableType.+func (VariableType) Enum() []any {+ return []any{+ QueryVariableType,+ DynamicVariableType,+ CustomVariableType,+ TextBoxVariableType,+ }+}+type VariableItem struct {Type VariableType `json:"type"`Value any `json:"value"`@@ -217,6 +299,12 @@ type QueryRangeRequest struct {FormatOptions *FormatOptions `json:"formatOptions,omitempty"`}+// PrepareJSONSchema adds description to the QueryRangeRequest schema.+func (q *QueryRangeRequest) PrepareJSONSchema(schema *jsonschema.Schema) error {+ schema.WithDescription("Request body for the v5 query range endpoint. Supports builder queries (traces, logs, metrics), formulas, joins, trace operators, PromQL, and ClickHouse SQL queries.")+ return nil+}+func (r *QueryRangeRequest) StepIntervalForQuery(name string) int64 {stepsMap := make(map[string]int64)for _, query := range r.CompositeQuery.Queries {diff --git a/pkg/types/querybuildertypes/querybuildertypesv5/request_type.go b/pkg/types/querybuildertypes/querybuildertypesv5/request_type.goindex 40f8d77cd3..9d1a68c808 100644--- a/pkg/types/querybuildertypes/querybuildertypesv5/request_type.go+++ b/pkg/types/querybuildertypes/querybuildertypesv5/request_type.go@@ -30,3 +30,15 @@ var (func (r RequestType) IsAggregation() bool {return r == RequestTypeTimeSeries || r == RequestTypeScalar || r == RequestTypeDistribution}++// Enum implements jsonschema.Enum; returns the acceptable values for RequestType.+func (RequestType) Enum() []any {+ return []any{+ RequestTypeScalar,+ RequestTypeTimeSeries,+ RequestTypeRaw,+ RequestTypeRawStream,+ RequestTypeTrace,+ // RequestTypeDistribution,+ }+}diff --git a/pkg/types/querybuildertypes/querybuildertypesv5/resp.go b/pkg/types/querybuildertypes/querybuildertypesv5/resp.goindex 1be83a3069..2ab13f3486 100644--- a/pkg/types/querybuildertypes/querybuildertypesv5/resp.go+++ b/pkg/types/querybuildertypes/querybuildertypesv5/resp.go@@ -12,6 +12,7 @@ import ("github.com/SigNoz/signoz/pkg/types/telemetrytypes""github.com/SigNoz/signoz/pkg/valuer"+ "github.com/swaggest/jsonschema-go")type QBEvent struct {@@ -42,6 +43,17 @@ type QueryData struct {Results []any `json:"results"`}+var _ jsonschema.OneOfExposer = QueryData{}++// JSONSchemaOneOf documents the polymorphic result types in QueryData.Results.+func (QueryData) JSONSchemaOneOf() []any {+ return []any{+ TimeSeriesData{},+ ScalarData{},+ RawData{},+ }+}+type QueryRangeResponse struct {Type RequestType `json:"type"`Data QueryData `json:"data"`@@ -52,6 +64,14 @@ type QueryRangeResponse struct {QBEvent *QBEvent `json:"-"`}+var _ jsonschema.Preparer = &QueryRangeResponse{}++// PrepareJSONSchema adds description to the QueryRangeResponse schema.+func (q *QueryRangeResponse) PrepareJSONSchema(schema *jsonschema.Schema) error {+ schema.WithDescription("Response from the v5 query range endpoint. The data.results array contains typed results depending on the requestType: TimeSeriesData for time_series, ScalarData for scalar, or RawData for raw requests.")+ return nil+}+type TimeSeriesData struct {QueryName string `json:"queryName"`Aggregations []*AggregationBucket `json:"aggregations"`@@ -159,6 +179,14 @@ var (ColumnTypeAggregation = ColumnType{valuer.NewString("aggregation")})+// Enum returns the acceptable values for ColumnType.+func (ColumnType) Enum() []any {+ return []any{+ ColumnTypeGroup,+ ColumnTypeAggregation,+ }+}+type ColumnDescriptor struct {telemetrytypes.TelemetryFieldKeyQueryName string `json:"queryName"`diff --git a/pkg/types/telemetrytypes/field_context.go b/pkg/types/telemetrytypes/field_context.goindex 26c71fd177..dc789feef8 100644--- a/pkg/types/telemetrytypes/field_context.go+++ b/pkg/types/telemetrytypes/field_context.go@@ -172,3 +172,18 @@ func isContextValidForSignal(ctx FieldContext, signal Signal) bool {}return true}++// Enum returns the acceptable values for FieldContext.+func (FieldContext) Enum() []any {+ return []any{+ FieldContextMetric,+ FieldContextLog,+ FieldContextSpan,+ // FieldContextTrace,+ FieldContextResource,+ // FieldContextScope,+ FieldContextAttribute,+ // FieldContextEvent,+ FieldContextBody,+ }+}diff --git a/pkg/types/telemetrytypes/field_datatype.go b/pkg/types/telemetrytypes/field_datatype.goindex 70c2d1c476..e9e0735765 100644--- a/pkg/types/telemetrytypes/field_datatype.go+++ b/pkg/types/telemetrytypes/field_datatype.go@@ -177,3 +177,19 @@ func (f FieldDataType) TagDataType() string {return "string"}}++// Enum returns the acceptable values for FieldDataType.+func (FieldDataType) Enum() []any {+ return []any{+ FieldDataTypeString,+ FieldDataTypeBool,+ FieldDataTypeFloat64,+ FieldDataTypeInt64,+ FieldDataTypeNumber,+ // FieldDataTypeArrayString,+ // FieldDataTypeArrayFloat64,+ // FieldDataTypeArrayBool,+ // FieldDataTypeArrayInt64,+ // FieldDataTypeArrayNumber,+ }+}diff --git a/pkg/types/telemetrytypes/signal.go b/pkg/types/telemetrytypes/signal.goindex 28c90fa6fd..15edfc362b 100644--- a/pkg/types/telemetrytypes/signal.go+++ b/pkg/types/telemetrytypes/signal.go@@ -12,3 +12,12 @@ var (SignalMetrics = Signal{valuer.NewString("metrics")}SignalUnspecified = Signal{valuer.NewString("")})++// Enum returns the acceptable values for Signal.+func (Signal) Enum() []any {+ return []any{+ SignalTraces,+ SignalLogs,+ SignalMetrics,+ }+}diff --git a/pkg/types/telemetrytypes/source.go b/pkg/types/telemetrytypes/source.goindex 247a9a5a5b..87acfb8520 100644--- a/pkg/types/telemetrytypes/source.go+++ b/pkg/types/telemetrytypes/source.go@@ -10,3 +10,10 @@ var (SourceMeter = Source{valuer.NewString("meter")}SourceUnspecified = Source{valuer.NewString("")})++// Enum returns the acceptable values for Source.+func (Source) Enum() []any {+ return []any{+ SourceMeter,+ }+}