Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cdhunt/newrelicapiposhprovider
A PowerShell Provider for the New Relic Web API
https://github.com/cdhunt/newrelicapiposhprovider
Last synced: 2 months ago
JSON representation
A PowerShell Provider for the New Relic Web API
- Host: GitHub
- URL: https://github.com/cdhunt/newrelicapiposhprovider
- Owner: cdhunt
- License: mit
- Created: 2014-05-09T16:27:01.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-05-13T14:16:14.000Z (over 10 years ago)
- Last Synced: 2023-08-05T04:02:29.067Z (over 1 year ago)
- Language: C#
- Size: 219 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
NewRelicApiPoshProvider
=======================A PowerShell Provider for the New Relic Web API
```powershell
Import-Module NewRelicAPIPoshProvider.dll
# Provide the API key as the UserName. Password doesn't matter.
New-PSDrive -Name nr -PSProvider NewRelicApi -Root '' -Credential (Get-Credential)
cd nr:/
``````powershell
PS nr:\> gci
Applications
Servers
``````powershell
PS nr:\> gci applications | select Name, Health_Status, Last_Reported_At
``````powershell
PS nr:\> gci servers | select Name, @{n="MemoryUsedGB";e={$_.Summary.Memory_Used/1GB}}, @{n="FullestDiskGB";e={$_.Summary.Fullest_Disk_Free/1gb}}, Last_Reported_At
``````powershell
PS nr:\applications\ApplicationName\agent_metrics_count> gciSSItemMode : <
PSPath : NewRelicAPIPoshProvider\NewRelicApi::applications\ApplicationName\agent_metrics_count\Data
PSParentPath : NewRelicAPIPoshProvider\NewRelicApi::applications\ApplicationName\agent_metrics_count
PSChildName : Data
PSDrive : nr
PSProvider : NewRelicAPIPoshProvider\NewRelicApi
PSIsContainer : False
From : 1/1/0001 12:00:00 AM
To : 1/1/0001 12:00:00 AM
```This project uses:
* [P2F](https://github.com/beefarino/p2f "PowerShell Provider Framework") by Jim Christopher
* [RestSharp](https://github.com/restsharp/RestSharp "RestSharp")
* https://rpm.newrelic.com/api/explore/