1.0.20220804 • Published 2 years ago

@maxim_mazurok/gapi.client.clouderrorreporting v1.0.20220804

Weekly downloads
43
License
MIT
Repository
github
Last release
2 years ago

TypeScript typings for Error Reporting API v1beta1

Groups and counts similar errors from cloud services and applications, reports new errors, and provides access to error groups and their associated errors. For detailed description please check documentation.

Installing

Install typings for Error Reporting API:

npm install @types/gapi.client.clouderrorreporting@v1beta1 --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('clouderrorreporting', 'v1beta1', () => {
  // now we can use gapi.client.clouderrorreporting
  // ...
});

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',
    ],
    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 Error Reporting API resources:

/*
Deletes all error events of a given project.
*/
await gapi.client.clouderrorreporting.projects.deleteEvents({ projectName: "projectName",  });
1.0.20220615

2 years ago

1.0.20220706

2 years ago

1.0.20220629

2 years ago

1.0.20220608

2 years ago

1.0.20220804

2 years ago

1.0.20220504

2 years ago

1.0.20220427

2 years ago

1.0.20220511

2 years ago

1.0.20220518

2 years ago

1.0.20220601

2 years ago

1.0.20220525

2 years ago

1.0.20220420

2 years ago

1.0.20220323

2 years ago

1.0.20220406

2 years ago

1.0.20220413

2 years ago

1.0.20220330

2 years ago

1.0.20220302

2 years ago

1.0.20220224

2 years ago

1.0.20220310

2 years ago

1.0.20220119

2 years ago

1.0.20220217

2 years ago

1.0.20220203

2 years ago

1.0.20220105

2 years ago

1.0.20220124

2 years ago

1.0.20220112

2 years ago

1.0.20211111

3 years ago

1.0.20211104

3 years ago

1.0.20211202

2 years ago

1.0.20211021

3 years ago

1.0.20211015

3 years ago

1.0.20210930

3 years ago

1.0.20210916

3 years ago

1.0.20210901

3 years ago

1.0.20210826

3 years ago

1.0.20210812

3 years ago

1.0.20210728

3 years ago

1.0.20210722

3 years ago

1.0.20210714

3 years ago

1.0.20210707

3 years ago

1.0.20210630

3 years ago

1.0.20210624

3 years ago

1.0.20210616

3 years ago

1.0.20210520

3 years ago

1.0.20210514

3 years ago

1.0.20210506

3 years ago

1.0.20210428

3 years ago

1.0.20210420

3 years ago

1.0.20210414

3 years ago

1.0.20210331

3 years ago

1.0.20210323

3 years ago

1.0.20210303

3 years ago

1.0.20210225

3 years ago

1.0.20210218

3 years ago

1.0.20210210

3 years ago

1.0.20210128

3 years ago

1.0.20210121

3 years ago

1.0.20210113

3 years ago

1.0.20210106

3 years ago

1.0.20201231

3 years ago

1.0.20201125

3 years ago

1.0.20201104

4 years ago