Skip to content

Commit

Permalink
Merge branch 'main' into v3
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Aug 2, 2024
2 parents 31ff49f + 5393895 commit 85a01ce
Show file tree
Hide file tree
Showing 10 changed files with 55 additions and 22 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,35 @@ on:
- "docs/api/**"

workflow_dispatch:
inputs:
version:
description: "API Version on readme.io"
required: true
default: "v1.0" # v0.0 stands for the dev version

jobs:
sync:
name: Sync
runs-on: ubuntu-22.04
env:
VERSION: v2
ID: 626badcabbc59c02acc1a53f

steps:
- name: Check out code
uses: actions/checkout@v4

- name: Detect PMM version and API ID
run: |
# For reference:
# PMM 2: VERSION=v2, ID=626badcabbc59c02acc1a53f
# PMM 3: VERSION=v3, ID=622892a957a7410330bc6184
export VERSION=$(cat api/swagger/swagger.json | jq -r '.info.version')
export ID=$(cat api/swagger/swagger.json | jq -r '."x-readme-id"')
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "ID=$ID" >> $GITHUB_ENV
- name: API
uses: readmeio/rdme@v8
with:
rdme: openapi ./api/swagger/swagger.json --id=626badcabbc59c02acc1a53f --key=${{ secrets.README_TOKEN }}
rdme: openapi ./api/swagger/swagger.json --id=${{ env.ID }} --key=${{ secrets.README_TOKEN }}

- name: Markdown docs
uses: readmeio/rdme@v8
with:
rdme: docs docs/api --version=${{ github.event.inputs.version || 'v1.0' }} --key=${{ secrets.README_TOKEN }}
rdme: docs docs/api --version=${{ env.VERSION }} --key=${{ secrets.README_TOKEN }}
5 changes: 3 additions & 2 deletions api/swagger/header.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"swagger": "2.0",
"info": {
"title": "PMM API",
"version": "public"
"version": "v2"
},
"schemes": [
"https",
Expand All @@ -25,5 +25,6 @@
"node",
"python"
]
}
},
"x-readme-id": "626badcabbc59c02acc1a53f"
}
5 changes: 3 additions & 2 deletions api/swagger/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"swagger": "2.0",
"info": {
"title": "PMM API",
"version": "public"
"version": "v2"
},
"paths": {
"/v1/actions/{action_id}": {
Expand Down Expand Up @@ -27171,5 +27171,6 @@
"node",
"python"
]
}
},
"x-readme-id": "626badcabbc59c02acc1a53f"
}
2 changes: 1 addition & 1 deletion docs/api/advisor-api/advisors-and-advisor-checks.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
title: Percona Advisors and Advisors checks
slug: advisors-and-advisor-checks
category: 6291050b9400a1001ae1877d
order: 2
order: 1
hidden: 0
---
2 changes: 1 addition & 1 deletion docs/api/advisor-api/failed-checks.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
title: List of problems detected by Advisors
slug: failed-checks
category: 6291050b9400a1001ae1877d
order: 1
order: 2
hidden: 0
---
8 changes: 4 additions & 4 deletions docs/api/advisor-api/overview.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Overview
slug: percona-advisors
slug: pmm-advisors
category: 6291050b9400a1001ae1877d
order: 0
---
Expand All @@ -10,6 +10,6 @@ This section is about API for managing Percona [Advisors](https://docs.percona.c

This section has three main subsections.

- In [List of problems detected by Advisors](reference/failed-checks) you can find API to get information about potential problems with your Infrastructure detected by Advisors.
- [Percona Advisors and Advisors checks](reference/advisors-and-advisor-checks) lists all Advisors and Advisor Checks available in your PMM.
- [Changing Advisors and Advisor checks](reference/changing-advisor-checks) will help you automate Advisor checks modification if needed.
- In [List of problems detected by Advisors](failed-checks) you can find API to get information about potential problems with your Infrastructure detected by Advisors.
- [Percona Advisors and Advisors checks](advisors-and-advisor-checks) lists all Advisors and Advisor Checks available in your PMM.
- [Changing Advisors and Advisor checks](changing-advisor-checks) will help you automate Advisor checks modification if needed.
2 changes: 1 addition & 1 deletion docs/api/backups/list-locations.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: List Locations
slug: listlocations
excerpt: ListLocations returns a list of all backup locations.
category: 626badcabbc59c02acc1a540
category: 66aa56507e69ed004a736efe
---

The following API call will list all the available backup locations:
Expand Down
24 changes: 24 additions & 0 deletions docs/api/backups/overview.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: Overview
slug: database-backups
category: 66aa56507e69ed004a736efe
order: 0
---


This section provides a set of API endpoints that allow to backup databases. Currently, PMM Backup Management works with the following database families:

- MongoDB (Generally Available)
- MySQL (in Technical Preview)


To be able to make a backup, you should start by [preparing a backup location](https://docs.percona.com/percona-monitoring-and-management/get-started/backup/prepare_storage_location.html#prepare-a-location-for-local-backups), which is where the backup artifacts will be physically stored. Although the backup location can be re-used to store multiple backups, we generally recommend to create a backup location per database service, which will help organize your storage.

Here a few other references to :

- [Make a backup](startbackup)
- [Restore the database from a backup](restorebackup)
- [List restore history items](listrestorehistory)
- [List available backup locations](listlocations)

Read [more](https://docs.percona.com/percona-monitoring-and-management/get-started/backup/index.html).
3 changes: 1 addition & 2 deletions docs/api/backups/restore-backup.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
title: Restore from a backup
slug: restorebackup
excerpt: This endpoint allows to restore a database from a previously made backup.
category: 626badcabbc59c02acc1a540
order: 1
category: 66aa56507e69ed004a736efe
---

PMM can backup the monitored services.
Expand Down
3 changes: 1 addition & 2 deletions docs/api/backups/start-backup.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
title: Make a backup
slug: startbackup
excerpt: This endpoint allows to make an unscheduled, or ad-hoc, backup of a given service.
category: 626badcabbc59c02acc1a540
order: 0
category: 66aa56507e69ed004a736efe
---

PMM can backup the monitored services.
Expand Down

0 comments on commit 85a01ce

Please sign in to comment.