Skip to content

Commit

Permalink
chore: regen api (#1150)
Browse files Browse the repository at this point in the history
  • Loading branch information
turip authored Jul 4, 2024
1 parent 4bc3942 commit 663dac1
Show file tree
Hide file tree
Showing 4 changed files with 171 additions and 0 deletions.
25 changes: 25 additions & 0 deletions api/client/node/schemas/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,14 @@ export interface paths {
*/
post: operations['resetEntitlementUsage']
}
'/api/v1/debug/metrics': {
/**
* Get event metrics
* @description Returns debug metrics like the number of ingested events since mindnight UTC.
* The OpenMetrics Counter(s) reset every day at midnight UTC.
*/
get: operations['getDebugMetrics']
}
}

export type webhooks = Record<string, never>
Expand Down Expand Up @@ -2094,4 +2102,21 @@ export interface operations {
default: components['responses']['UnexpectedProblemResponse']
}
}
/**
* Get event metrics
* @description Returns debug metrics like the number of ingested events since mindnight UTC.
* The OpenMetrics Counter(s) reset every day at midnight UTC.
*/
getDebugMetrics: {
responses: {
/** @description Dbeug metrics, like number of ingested events. */
200: {
content: {
'text/plain': string
}
}
401: components['responses']['UnauthorizedProblemResponse']
default: components['responses']['UnexpectedProblemResponse']
}
}
}
67 changes: 67 additions & 0 deletions api/client/python/src/openmeter/_operations/_operations.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 54 additions & 0 deletions api/client/python/src/openmeter/aio/_operations/_operations.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions api/client/web/src/client/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,14 @@ export interface paths {
*/
post: operations['resetEntitlementUsage']
}
'/api/v1/debug/metrics': {
/**
* Get event metrics
* @description Returns debug metrics like the number of ingested events since mindnight UTC.
* The OpenMetrics Counter(s) reset every day at midnight UTC.
*/
get: operations['getDebugMetrics']
}
}

export type webhooks = Record<string, never>
Expand Down Expand Up @@ -2094,4 +2102,21 @@ export interface operations {
default: components['responses']['UnexpectedProblemResponse']
}
}
/**
* Get event metrics
* @description Returns debug metrics like the number of ingested events since mindnight UTC.
* The OpenMetrics Counter(s) reset every day at midnight UTC.
*/
getDebugMetrics: {
responses: {
/** @description Dbeug metrics, like number of ingested events. */
200: {
content: {
'text/plain': string
}
}
401: components['responses']['UnauthorizedProblemResponse']
default: components['responses']['UnexpectedProblemResponse']
}
}
}

0 comments on commit 663dac1

Please sign in to comment.