This repository has been archived by the owner on Jun 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from djtaylor/release-0.1.3
Release 0.1.3
- Loading branch information
Showing
24 changed files
with
394 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ __pycache__ | |
.eggs | ||
venv | ||
debug.py | ||
debug.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# NetApp OCUM Example Scripts | ||
This directory contains example scripts that show how to use this module: | ||
|
||
- [Filtered client requests](filtered_client.py) | ||
- [Get volumes](get_volumes.py) | ||
- [Get performance metrics](get_metrics.py) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env python3 | ||
import json | ||
from netapp_ocum.client import NetApp_OCUM_Client | ||
|
||
# Create a new client | ||
ocum_client = NetApp_OCUM_Client('hostname', 'username', 'password') | ||
|
||
# Get performance metrics for volumes and aggregates | ||
aggregate_metrics = ocum_client.get_aggregate_metrics(params={'limit': 5}) | ||
volume_metrics = ocum_client.get_volume_metrics(params={'limit': 10}) | ||
|
||
print(json.dumps(aggregate_metrics.json, indent=2)) | ||
print(json.dumps(volume_metrics.json, indent=2)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# -*- coding: utf-8 -*- | ||
__version__ = '0.1.2' | ||
__version__ = '0.1.3' | ||
name = 'netapp_ocum' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.