Add Prometheus endpoint to OpenAPI spec
This commit is contained in:
parent
793e177501
commit
ee118e905c
40
openapi.yaml
40
openapi.yaml
@ -1,8 +1,8 @@
|
|||||||
openapi: 3.0.1
|
openapi: 3.0.1
|
||||||
info:
|
info:
|
||||||
title: Owncast
|
title: Owncast
|
||||||
description: Owncast is a self-hosted live video and web chat server for use with existing popular broadcasting software. The following APIs represent the state in the development branch.
|
description: Owncast is a self-hosted live video and web chat server for use with existing popular broadcasting software.
|
||||||
version: '0.0.11'
|
version: '0.0.12'
|
||||||
contact:
|
contact:
|
||||||
name: Gabe Kangas
|
name: Gabe Kangas
|
||||||
email: gabek@real-ity.com
|
email: gabek@real-ity.com
|
||||||
@ -334,7 +334,12 @@ components:
|
|||||||
example: https://mastodon.cloud/users/gabektest
|
example: https://mastodon.cloud/users/gabektest
|
||||||
type:
|
type:
|
||||||
type: string
|
type: string
|
||||||
enum: [FEDIVERSE_ENGAGEMENT_FOLLOW, FEDIVERSE_ENGAGEMENT_LIKE, FEDIVERSE_ENGAGEMENT_REPOST]
|
enum:
|
||||||
|
[
|
||||||
|
FEDIVERSE_ENGAGEMENT_FOLLOW,
|
||||||
|
FEDIVERSE_ENGAGEMENT_LIKE,
|
||||||
|
FEDIVERSE_ENGAGEMENT_REPOST,
|
||||||
|
]
|
||||||
|
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
AdminBasicAuth:
|
AdminBasicAuth:
|
||||||
@ -1439,7 +1444,7 @@ paths:
|
|||||||
/api/admin/config/federation/enable:
|
/api/admin/config/federation/enable:
|
||||||
post:
|
post:
|
||||||
summary: Enable or disable federated social features.
|
summary: Enable or disable federated social features.
|
||||||
tags: ["Admin"]
|
tags: ['Admin']
|
||||||
security:
|
security:
|
||||||
- AdminBasicAuth: []
|
- AdminBasicAuth: []
|
||||||
responses:
|
responses:
|
||||||
@ -1451,11 +1456,10 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/BooleanValue'
|
$ref: '#/components/schemas/BooleanValue'
|
||||||
|
|
||||||
|
|
||||||
/api/admin/config/federation/private:
|
/api/admin/config/federation/private:
|
||||||
post:
|
post:
|
||||||
summary: Enable or disable private federation mode.
|
summary: Enable or disable private federation mode.
|
||||||
tags: ["Admin"]
|
tags: ['Admin']
|
||||||
security:
|
security:
|
||||||
- AdminBasicAuth: []
|
- AdminBasicAuth: []
|
||||||
responses:
|
responses:
|
||||||
@ -1467,11 +1471,10 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/BooleanValue'
|
$ref: '#/components/schemas/BooleanValue'
|
||||||
|
|
||||||
|
|
||||||
/api/admin/config/federation/showengagement:
|
/api/admin/config/federation/showengagement:
|
||||||
post:
|
post:
|
||||||
summary: Enable or disable Federation activity showing in chat.
|
summary: Enable or disable Federation activity showing in chat.
|
||||||
tags: ["Admin"]
|
tags: ['Admin']
|
||||||
security:
|
security:
|
||||||
- AdminBasicAuth: []
|
- AdminBasicAuth: []
|
||||||
responses:
|
responses:
|
||||||
@ -1486,7 +1489,7 @@ paths:
|
|||||||
/api/admin/config/federation/username:
|
/api/admin/config/federation/username:
|
||||||
post:
|
post:
|
||||||
summary: Set the username you are seen as on the fediverse.
|
summary: Set the username you are seen as on the fediverse.
|
||||||
tags: ["Admin"]
|
tags: ['Admin']
|
||||||
security:
|
security:
|
||||||
- AdminBasicAuth: []
|
- AdminBasicAuth: []
|
||||||
responses:
|
responses:
|
||||||
@ -1501,7 +1504,7 @@ paths:
|
|||||||
/api/admin/config/federation/livemessage:
|
/api/admin/config/federation/livemessage:
|
||||||
post:
|
post:
|
||||||
summary: Set the message sent to the fediverse when this instance goes live.
|
summary: Set the message sent to the fediverse when this instance goes live.
|
||||||
tags: ["Admin"]
|
tags: ['Admin']
|
||||||
security:
|
security:
|
||||||
- AdminBasicAuth: []
|
- AdminBasicAuth: []
|
||||||
responses:
|
responses:
|
||||||
@ -1516,7 +1519,7 @@ paths:
|
|||||||
/api/admin/config/federation/blockdomains:
|
/api/admin/config/federation/blockdomains:
|
||||||
post:
|
post:
|
||||||
summary: Save a collection of domains that should be ignored on the fediverse.
|
summary: Save a collection of domains that should be ignored on the fediverse.
|
||||||
tags: ["Admin"]
|
tags: ['Admin']
|
||||||
security:
|
security:
|
||||||
- AdminBasicAuth: []
|
- AdminBasicAuth: []
|
||||||
responses:
|
responses:
|
||||||
@ -1535,7 +1538,7 @@ paths:
|
|||||||
/api/admin/federation/send:
|
/api/admin/federation/send:
|
||||||
post:
|
post:
|
||||||
summary: Manually send a message to the fediverse from this instance.
|
summary: Manually send a message to the fediverse from this instance.
|
||||||
tags: ["Admin"]
|
tags: ['Admin']
|
||||||
security:
|
security:
|
||||||
- AdminBasicAuth: []
|
- AdminBasicAuth: []
|
||||||
responses:
|
responses:
|
||||||
@ -1552,7 +1555,7 @@ paths:
|
|||||||
/api/admin/federation/actions:
|
/api/admin/federation/actions:
|
||||||
get:
|
get:
|
||||||
summary: Get a list of accepted actions that took place on the Fediverse.
|
summary: Get a list of accepted actions that took place on the Fediverse.
|
||||||
tags: ["Admin"]
|
tags: ['Admin']
|
||||||
security:
|
security:
|
||||||
- AdminBasicAuth: []
|
- AdminBasicAuth: []
|
||||||
responses:
|
responses:
|
||||||
@ -1565,7 +1568,6 @@ paths:
|
|||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/FederatedAction'
|
$ref: '#/components/schemas/FederatedAction'
|
||||||
|
|
||||||
|
|
||||||
/api/integrations/streamtitle:
|
/api/integrations/streamtitle:
|
||||||
post:
|
post:
|
||||||
summary: Set the stream title.
|
summary: Set the stream title.
|
||||||
@ -2126,3 +2128,13 @@ paths:
|
|||||||
'200':
|
'200':
|
||||||
description: The list of default names have been updated.
|
description: The list of default names have been updated.
|
||||||
$ref: '#/components/responses/BasicResponse'
|
$ref: '#/components/responses/BasicResponse'
|
||||||
|
|
||||||
|
/api/admin/prometheus:
|
||||||
|
get:
|
||||||
|
tags: ['Admin']
|
||||||
|
security:
|
||||||
|
- AdminBasicAuth: []
|
||||||
|
summary: Return Prometheus-compatible scraper metrics.
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: Prometheus-compatible scraper values.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user