Skip to content

SN3-K/grafana-snapshot

 
 

Repository files navigation

grafana-snapshot Package

Build Status Codecov PyPI

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:

from GrafanaSnapshot.snapshot_face import SnapshotFace

if __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 +

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 87.9%
  • Makefile 12.1%