A simple C# client library for accessing the Mackerel API.
It offers a similar interface to the Mackerel API Client for Python aka makapi.py
Makapi is available on NuGet:
๐ https://www.nuget.org/packages/Makapi
Install via .NET CLI:
dotnet add package MakapiOr via Visual Studioโs NuGet Package Manager:
Search: Makapi
using WebAPI;
var apiKey = "<YOUR API KEY>";
var m = new Makapi(apiKey);
// GET example
m.get("org");
// PUT example
m.put("hosts/<hostId>");
// POST example
m.post("hosts/<hostId>/status", "{"status":"standby"}");
// DELETE example
m.delete("services/<serviceName>");For full API details, see the official Mackerel API docs.
MIT License.