Using js-genai with googleapis.com

TypeScript integration

✓ Official SDK

Install

npm install js-genai

Quick start

import Js_genai from 'js-genai';

const client = new Js_genai({ accessToken: "YOUR_ACCESS_TOKEN" });
Fetches a specific dashboard.This method requires the monitoring.dashboards.g…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://monitoring.googleapis.com/v1/{name}
Lists the existing dashboards.This method requires the monitoring.dashboards.…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://monitoring.googleapis.com/v1/{parent}/dashboards
Lists labels for metrics.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://monitoring.googleapis.com/v1/{name}/location/{location}/prometheus/api/v1/labels
SDK on GitHub 📄 API Docs
SDK
js-genai
TypeScript
API
googleapis.com
googleapis.com:monitoring

At a glance

Language TypeScript
Endpoints15
Base URLhttps://monitoring.googleapis.com
✓ Official