Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ascendcorp/grafana-snapshot
https://github.com/ascendcorp/grafana-snapshot
grafana grafana-dashboard grafana-snapshot python python3 snapshot
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ascendcorp/grafana-snapshot
- Owner: ascendcorp
- License: mit
- Created: 2019-07-15T15:23:30.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-09T16:56:45.000Z (almost 5 years ago)
- Last Synced: 2024-08-10T10:52:10.272Z (5 months ago)
- Topics: grafana, grafana-dashboard, grafana-snapshot, python, python3, snapshot
- Language: Python
- Size: 63.5 KB
- Stars: 3
- Watchers: 3
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: License.md
Awesome Lists containing this project
README
# grafana-snapshot Package
[![Build Status](https://travis-ci.com/ascendcorp/grafana-snapshot.svg)](https://travis-ci.com/ascendcorp/grafana-snapshot)
[![Codecov](https://img.shields.io/codecov/c/gh/ascendcorp/grafana-snapshot.svg)](https://codecov.io/gh/ascendcorp/grafana-snapshot)
[![PyPI](https://img.shields.io/pypi/v/grafana-snapshot.svg)](https://pypi.org/project/grafana-snapshot/)## Install
If you want to use the API algorithms in your code, it is as simple as:$ pip install grafana-snapshot
You can test by creating a python file:
```python3
from GrafanaSnapshot.snapshot_face import SnapshotFaceif __name__ == "__main__":
grafana = SnapshotFace(auth='xxxxx', host='localhost', port='3000', protocol='https')
## Create snaphot
results = grafana.snapshots.create_snapshot(tags="test_tag", time_from=1563183710618, time_to=1563185212275)
## Delete snaphot by key
result = grafana.snapshots.delete(delete_key='some_delete_key', key=None)
## get snaphot by key
results = grafana.snapshots.get_snapshot_by_key(key='some_key')
```## Uninstall
If you want to uninstall grafana-snapshot, it is as simple as:$ pip uninstall -y grafana-snapshot
## Status
| API | Status |
|---|---|
| Create Snapshot | + |
| Delete Snapshot | + |
| Get Snapshot by tags | + |