Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions api/serverpb/json/client/server/logs_parameters.go

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

9 changes: 9 additions & 0 deletions api/serverpb/json/header.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@
"description": "Returns the PMM Server logs.",
"summary": "Logs",
"operationId": "Logs",
"parameters": [
{
"type": "integer",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we replace it with a boolean type?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BupycHuk
In JIRA ticket, we have: "User calls /logs.zip endpoint with pprof=1 query parameter" that's why I used integer here. Shall I update JIRA ticket as well?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

boolean supports pprof=1 as well and makes more sense

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for clarification. Changed.

"format": "int32",
"description": "Include performance profiling data,",
"name": "pprof",
"in": "query"
}
],
"produces": ["application/zip"],
"responses": {
"200": {
Expand Down
9 changes: 9 additions & 0 deletions api/serverpb/json/serverpb.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@
],
"summary": "Logs",
"operationId": "Logs",
"parameters": [
{
"type": "integer",
"format": "int32",
"description": "Include performance profiling data,",
"name": "pprof",
"in": "query"
}
],
"responses": {
"200": {
"description": "A successful response.",
Expand Down
9 changes: 9 additions & 0 deletions api/swagger/swagger-dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@
],
"summary": "Logs",
"operationId": "Logs",
"parameters": [
{
"type": "integer",
"format": "int32",
"description": "Include performance profiling data,",
"name": "pprof",
"in": "query"
}
],
"responses": {
"200": {
"description": "A successful response.",
Expand Down
9 changes: 9 additions & 0 deletions api/swagger/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@
],
"summary": "Logs",
"operationId": "Logs",
"parameters": [
{
"type": "integer",
"format": "int32",
"description": "Include performance profiling data,",
"name": "pprof",
"in": "query"
}
],
"responses": {
"200": {
"description": "A successful response.",
Expand Down