Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Sentio Bot committed Dec 18, 2024
1 parent 3e1850f commit ca9f435
Show file tree
Hide file tree
Showing 31 changed files with 5,132 additions and 6,038 deletions.
8,987 changes: 4,719 additions & 4,268 deletions doc/index.html

Large diffs are not rendered by default.

255 changes: 10 additions & 245 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -828,34 +828,6 @@
]
}
},
"/api/v1/insights/retention": {
"post": {
"summary": "Retention query",
"description": "Query for retention.",
"operationId": "Retention2",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/insights_service.RetentionResponse"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/insights_service.RetentionRequest"
}
}
],
"tags": [
"Data"
]
}
},
"/api/v1/insights/{owner}/{slug}/coins": {
"get": {
"summary": "List coins",
Expand Down Expand Up @@ -963,46 +935,6 @@
]
}
},
"/api/v1/insights/{owner}/{slug}/retention": {
"post": {
"summary": "Retention query",
"description": "Query for retention.",
"operationId": "Retention",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/insights_service.RetentionResponse"
}
}
},
"parameters": [
{
"name": "owner",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "slug",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/insights_service.InsightsService.RetentionBody"
}
}
],
"tags": [
"Data"
]
}
},
"/api/v1/metrics": {
"get": {
"summary": "Get a list of metrics in a project",
Expand Down Expand Up @@ -1176,29 +1108,6 @@
]
}
},
"/api/v1/prices/add_coin_by_gecko": {
"post": {
"operationId": "AddCoinByGecko",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/price_service.AddCoinByGeckoResponse"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/price_service.AddCoinByGeckoRequest"
}
}
]
}
},
"/api/v1/prices/batch": {
"post": {
"summary": "Batch get prices",
Expand Down Expand Up @@ -4246,54 +4155,6 @@
"url": "https://prometheus.io/docs/prometheus/latest/querying/basics/"
}
},
"common.RetentionMatrix": {
"type": "object",
"properties": {
"samples": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/common.RetentionMatrix.Sample"
}
}
}
},
"common.RetentionMatrix.Sample": {
"type": "object",
"properties": {
"time": {
"type": "string",
"format": "date-time"
},
"segmentParameter": {
"$ref": "#/definitions/common.SegmentParameter"
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"totalCount": {
"type": "integer",
"format": "int32"
},
"counts": {
"type": "array",
"items": {
"type": "integer",
"format": "int32"
}
},
"rates": {
"type": "array",
"items": {
"type": "number",
"format": "double"
}
}
}
},
"common.RetentionQuery": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -5163,24 +5024,6 @@
}
}
},
"insights_service.InsightsService.RetentionBody": {
"type": "object",
"properties": {
"projectId": {
"type": "string"
},
"version": {
"type": "integer",
"format": "int32"
},
"timeRange": {
"$ref": "#/definitions/common.TimeRangeLite"
},
"query": {
"$ref": "#/definitions/common.RetentionQuery"
}
}
},
"insights_service.ListCoinsResponse": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -5256,44 +5099,6 @@
}
}
},
"insights_service.RetentionRequest": {
"type": "object",
"properties": {
"projectOwner": {
"type": "string"
},
"projectSlug": {
"type": "string"
},
"projectId": {
"type": "string"
},
"version": {
"type": "integer",
"format": "int32"
},
"timeRange": {
"$ref": "#/definitions/common.TimeRangeLite"
},
"query": {
"$ref": "#/definitions/common.RetentionQuery"
}
}
},
"insights_service.RetentionResponse": {
"type": "object",
"properties": {
"computeStats": {
"$ref": "#/definitions/common.ComputeStats"
},
"results": {
"$ref": "#/definitions/common.RetentionMatrix"
},
"error": {
"type": "string"
}
}
},
"metrics_service.GetMetricsResponse": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -5635,54 +5440,6 @@
}
}
},
"price_service.AddCoinByGeckoRequest": {
"type": "object",
"properties": {
"coingeckoId": {
"type": "string"
}
}
},
"price_service.AddCoinByGeckoResponse": {
"type": "object",
"properties": {
"status": {
"$ref": "#/definitions/price_service.AddCoinByGeckoResponse.Status"
},
"message": {
"type": "string"
},
"currentPrice": {
"type": "number",
"format": "double"
},
"timestamp": {
"type": "string",
"format": "date-time"
},
"symbol": {
"type": "string"
},
"coins": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/price_service.CoinID"
}
}
}
},
"price_service.AddCoinByGeckoResponse.Status": {
"type": "string",
"enum": [
"OK",
"ALREADY_EXISTS",
"MISMATCH_WITH_EXISTING",
"GECKO_NOT_FOUND",
"GECKO_RETURN_NON_SUPPORTED_CHAIN"
],
"default": "OK"
},
"price_service.BatchGetPricesRequest": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -7777,15 +7534,23 @@
}
},
"securityDefinitions": {
"ApiKeyAuth": {
"ApiKeyHeaderAuth": {
"type": "apiKey",
"name": "api-key",
"in": "header"
},
"ApiKeyQueryAuth": {
"type": "apiKey",
"name": "api-key",
"in": "query"
}
},
"security": [
{
"ApiKeyAuth": []
"ApiKeyHeaderAuth": []
},
{
"ApiKeyQueryAuth": []
},
{
"": []
Expand Down
10 changes: 5 additions & 5 deletions src/AlertsApi.md

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

Loading

0 comments on commit ca9f435

Please sign in to comment.