Skip to content

digital-identity-platform-docs


digital-identity-platform-docs / workers/sgtm-router/worker / LogBuffer

Class: LogBuffer

Defined in: workers/sgtm-router/worker.js:441

Constructors

Constructor

new LogBuffer(state, env): LogBuffer

Defined in: workers/sgtm-router/worker.js:442

Parameters

state

any

env

any

Returns

LogBuffer

Properties

state

state: any

Defined in: workers/sgtm-router/worker.js:443


env

env: any

Defined in: workers/sgtm-router/worker.js:444


MAX_ITEMS

MAX_ITEMS: number

Defined in: workers/sgtm-router/worker.js:446


FLUSH_INTERVAL_MS

FLUSH_INTERVAL_MS: number

Defined in: workers/sgtm-router/worker.js:447


recentBillings

recentBillings: Map<any, any>

Defined in: workers/sgtm-router/worker.js:448

Methods

_todayIso()

_todayIso(): string

Defined in: workers/sgtm-router/worker.js:452

Returns

string


_makeNewObjectKey()

_makeNewObjectKey(containerId): string

Defined in: workers/sgtm-router/worker.js:456

Parameters

containerId

any

Returns

string


_resolveR2()

_resolveR2(key): any

Defined in: workers/sgtm-router/worker.js:467

Parameters

key

any

Returns

any


fetch()

fetch(req): Promise<Response>

Defined in: workers/sgtm-router/worker.js:477

Parameters

req

any

Returns

Promise<Response>


alarm()

alarm(): Promise<void>

Defined in: workers/sgtm-router/worker.js:554

Returns

Promise<void>


_flushNow()

_flushNow(): Promise<void>

Defined in: workers/sgtm-router/worker.js:558

Returns

Promise<void>

Released under proprietary license.