Skip to content

Commit

Permalink
PMM-12913 migrate /v1/inventory/Agents/GetLogs
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Mar 24, 2024
1 parent 9ac20bc commit 39b9316
Show file tree
Hide file tree
Showing 13 changed files with 343 additions and 300 deletions.
1 change: 0 additions & 1 deletion .github/workflows/api-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ jobs:
container_name: pmm-agent_pmm-server
environment:
- PMM_DEBUG=1
- ENABLE_TELEMETRY=0
- PERCONA_TEST_CHECKS_INTERVAL=10s
- PERCONA_TEST_PLATFORM_ADDRESS=https://check-dev.percona.com
- PERCONA_TEST_PLATFORM_PUBLIC_KEY=RWTg+ZmCCjt7O8eWeAmTLAqW+1ozUbpRSKSwNTmO+exlS5KEIPYWuYdX
Expand Down
19 changes: 18 additions & 1 deletion Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,24 @@ clean: clean_swagger ## Remove generated files
find api -name '*.pb.gw.go' -print -delete
find api -name '*.validate.go' -print -delete

for API in api/agentlocal/v1 api/server/v1 api/inventory/v1 api/management/v1 api/actions/v1 api/alerting/v1 api/advisors/v1 api/backup/v1 api/dump/v1 api/role/v1 api/management/v1/agent api/management/v1/node api/management/v1/service api/qan/v1 api/platform/v1 ; do \
SPECS="\
api/agentlocal/v1 \
api/server/v1 \
api/user/v1 \
api/inventory/v1 \
api/management/v1 \
api/management/v1/agent \
api/management/v1/node \
api/management/v1/service \
api/actions/v1 \
api/alerting/v1 \
api/advisors/v1 \
api/backup/v1 \
api/dump/v1 \
api/role/v1 \
api/qan/v1 \
api/platform/v1"; \
for API in $$SPECS; do \
rm -fr $$API/json/client $$API/json/models $$API/json/$$(basename $$API).json ; \
done
rm -f api/swagger/swagger.json api/swagger/swagger-dev.json
Expand Down
2 changes: 1 addition & 1 deletion api/MIGRATION_TO_V3.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ POST /v1/inventory/Agents/Change PUT /v1/inventory/agents/{ag
POST /v1/inventory/Agents/Get GET /v1/inventory/agents/{agent_id} ✅
POST /v1/inventory/Agents/List GET /v1/inventory/agents ✅ Query param filters: service_id, node_id, pmm_agent_id and agent_type
POST /v1/inventory/Agents/Remove DELETE /v1/inventory/agents/{agent_id} ✅
POST /v1/inventory/Agents/GetLogs GET /v1/inventory/agents/{id}/logs
POST /v1/inventory/Agents/GetLogs GET /v1/inventory/agents/{id}/logs

**NodesService** **NodesService**
POST /v1/inventory/Nodes/Add POST /v1/inventory/nodes
Expand Down
114 changes: 57 additions & 57 deletions api/inventory/v1/agents.pb.go

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

Loading

0 comments on commit 39b9316

Please sign in to comment.