Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
class Mackerel.Client
import { Mackerel } from "https://deno.land/x/mackerel_client_deno@v0.7.0/deps.ts";
const { Client } = Mackerel;

Constructors

new
Client(apikey: string, baseurl?: string)

Type Parameters

T extends ClientType

Properties

apikey: T["apikey"]
baseurl: T["baseurl"]
buildReq: (req: Request) => Request
deleteService: (serviceName: string) => Promise<Service>
listServices: () => Promise<Service[]>
postJSON: (path: string, payload: Record<never | string, never | string | number>) => Promise<Response | Error>
registerService: (param: RegisterServiceParam) => Promise<Service>
request: (req: Request) => Promise<Response | Error>
requestJSON: (
method: "POST" | "PUT",
path: string,
payload: Record<never | string, never | string | number>,
) => Promise<Response | Error>
urlFor: (path: string) => URL