UNPKG

@oystehr/sdk

Version:

Oystehr SDK

44 lines (40 loc) 2.23 kB
'use strict'; var client = require('../../client/client.cjs'); // AUTOGENERATED -- DO NOT EDIT class ZambdaLogStream extends client.SDKResource { constructor(config) { super(config); } #baseUrlThunk() { return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1'; } /** * Get the log streams for the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services. * * Access Policy Action: `Zambda:ReadLogs` * Access Policy Resource: `Zambda:Function` */ list(params, request) { return this.request('/zambda/{id}/logStream', 'post', this.#baseUrlThunk.bind(this))(params, request); } /** * Get all logs for the Zambda Function with the provided ID, filtered by any of: text in messages, minimum start date, and/or maximum end date. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services. * * Access Policy Action: `Zambda:ReadLogs` * Access Policy Resource: `Zambda:Function` */ search(params, request) { return this.request('/zambda/{id}/logStream/search', 'post', this.#baseUrlThunk.bind(this))(params, request); } /** * Get the logs from the specified log stream for the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services. * * Access Policy Action: `Zambda:ReadLogs` * Access Policy Resource: `Zambda:Function` */ get(params, request) { return this.request('/zambda/{id}/logStream/{logStreamName}', 'post', this.#baseUrlThunk.bind(this))(params, request); } } exports.ZambdaLogStream = ZambdaLogStream; //# sourceMappingURL=zambdaLogStream.cjs.map