2.0.20220808 • Published 3 years ago

@maxim_mazurok/gapi.client.cloudprofiler v2.0.20220808

Weekly downloads
53
License
MIT
Repository
github
Last release
3 years ago

TypeScript typings for Stackdriver Profiler API v2

Manages continuous profiling information. For detailed description please check documentation.

Installing

Install typings for Stackdriver Profiler API:

npm install @types/gapi.client.cloudprofiler@v2 --save-dev

Usage

You need to initialize Google API client in your code:

gapi.load('client', () => {
  // now we can use gapi.client
  // ...
});

Then load api client wrapper:

gapi.client.load('cloudprofiler', 'v2', () => {
  // now we can use gapi.client.cloudprofiler
  // ...
});

Don't forget to authenticate your client before sending any request to resources:

// declare client_id registered in Google Developers Console
var client_id = '',
  scope = [ 
      // See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
      'https://www.googleapis.com/auth/cloud-platform',

      // View and write monitoring data for all of your Google and third-party Cloud and API projects
      'https://www.googleapis.com/auth/monitoring',

      // Publish metric data to your Google Cloud projects
      'https://www.googleapis.com/auth/monitoring.write',
    ],
    immediate = true;
// ...

gapi.auth.authorize(
  { client_id: client_id, scope: scope, immediate: immediate },
  authResult => {
    if (authResult && !authResult.error) {
        /* handle successful authorization */
    } else {
        /* handle authorization error */
    }
});

After that you can use Stackdriver Profiler API resources:

2.0.20220612

3 years ago

2.0.20220725

3 years ago

2.0.20220808

3 years ago

2.0.20220619

3 years ago

2.0.20220708

3 years ago

2.0.20220627

3 years ago

2.0.20220716

3 years ago

2.0.20220604

3 years ago

2.0.20220513

3 years ago

2.0.20220430

3 years ago

2.0.20220506

3 years ago

2.0.20220522

3 years ago

2.0.20220423

3 years ago

2.0.20220416

3 years ago

2.0.20220326

3 years ago

2.0.20220402

3 years ago

2.0.20220319

3 years ago

2.0.20220314

3 years ago

2.0.20220228

3 years ago

2.0.20220307

3 years ago

2.0.20220131

3 years ago

2.0.20220212

3 years ago

2.0.20211230

3 years ago

2.0.20220218

3 years ago

2.0.20220116

3 years ago

2.0.20220107

3 years ago

2.0.20220205

3 years ago

2.0.20220122

3 years ago

2.0.20211211

4 years ago

2.0.20211112

4 years ago

2.0.20211218

4 years ago

2.0.20211203

4 years ago

2.0.20211106

4 years ago

2.0.20211029

4 years ago

2.0.20211022

4 years ago

2.0.20211016

4 years ago

2.0.20210924

4 years ago

2.0.20210919

4 years ago

2.0.20210910

4 years ago

2.0.20210903

4 years ago

2.0.20210827

4 years ago

2.0.20210822

4 years ago

2.0.20210813

4 years ago

2.0.20210809

4 years ago

2.0.20210723

4 years ago

2.0.20210717

4 years ago

2.0.20210712

4 years ago

2.0.20210626

4 years ago

2.0.20210618

4 years ago

2.0.20210613

4 years ago

2.0.20210605

4 years ago

2.0.20210528

4 years ago

2.0.20210522

4 years ago

2.0.20210514

4 years ago

2.0.20210508

4 years ago

2.0.20210501

4 years ago

2.0.20210424

4 years ago

2.0.20210417

4 years ago

2.0.20210403

4 years ago

2.0.20210326

4 years ago

2.0.20210319

4 years ago

2.0.20210314

4 years ago

2.0.20210308

4 years ago

2.0.20210227

4 years ago

2.0.20210222

4 years ago

2.0.20210206

4 years ago

2.0.20210131

4 years ago

2.0.20210124

4 years ago

2.0.20210118

4 years ago

2.0.20210111

4 years ago

2.0.20201231

4 years ago

2.0.20201204

5 years ago

2.0.20201114

5 years ago

2.0.20201108

5 years ago