Options
All
  • Public
  • Public/Protected
  • All
Menu

@btilford/ts-base - v1.1.0

Index

Enumerations

Classes

Interfaces

Type aliases

Variables

Functions

Object literals

Type aliases

ApmBootstrap

ApmBootstrap: { features: Partial<Record<ApmFeatures, any>> }

Type declaration

ApmFactory

ApmFactory<T>: T extends TimerWrapperFactory | CounterFactory<any> | GaugeFactory<any> | HistogramFactory<unknown> ? { name: string } : never

Type parameters

  • T

ApmFactoryInstance

ApmFactoryInstance<T, I>: T extends ApmFactory<any> ? I extends T ? I : never : any

Type parameters

  • T

  • I

ApmFeatures

ApmFeatures: keyof ApmEnv

Bool

Bool: True | False

BootstrapOptions

BootstrapOptions: { apm?: ApmBootstrap; appName: string; envLoaders?: Supplier<Record<string, string>>[]; log?: LogBoostrap; profiler?: Profiler; register?: [[any, string | { name: string }]] }

Type declaration

  • Optional apm?: ApmBootstrap
  • appName: string
  • Optional envLoaders?: Supplier<Record<string, string>>[]
  • Optional log?: LogBoostrap
  • Optional profiler?: Profiler
  • Optional register?: [[any, string | { name: string }]]

ConsoleApi

ConsoleApi: { assert?: undefined | ((value: any, message?: undefined | string, ...optionalParams: any[]) => void); clear?: undefined | (() => void); context?: unknown; count: (label?: undefined | string) => void; countReset: (label?: undefined | string) => void; debug: (message?: any, ...optionalParams: any[]) => void; dir?: undefined | ((obj: any, optional?: any) => void); dirxml?: undefined | ((...data: any[]) => void); error: (message?: any, ...optionalParams: any[]) => void; group: (...label: any[]) => void; groupCollapsed: (...label: any[]) => void; groupEnd: () => void; info: (message?: any, ...optionalParams: any[]) => void; log: (message?: any, ...optionalParams: any[]) => void; memory?: undefined | { jsHeapSizeLimit: number; totalJSHeapSize: number; usedJSHeapSize: number }; profile: (label?: undefined | string) => void; profileEnd: (label?: undefined | string) => void; table: (tabularData: any, properties?: string[]) => void; time: (label?: undefined | string) => void; timeEnd: (label?: undefined | string) => void; timeLog: (label?: undefined | string) => void; timeStamp: (label?: undefined | string) => void; trace: (message?: any, ...optionalParams: any[]) => void; warn: (message?: any, ...optionalParams: any[]) => void } | Console

ConsoleLogOptions

ConsoleLogOptions: LogOptions & { console?: ConsoleApi | Console; parent?: ConsoleLog }

ConsoleMetricFeature

ConsoleMetricFeature: { name: ApmFeatures extends string ? "counter" | "timer" : never; options: ConsoleMetricOptions }

Type declaration

ConsoleMetricOptions

ConsoleMetricOptions: { console?: Console; env?: Props; parent?: ConsoleMetric; prefix?: undefined | string; suffix?: undefined | string; tags?: Tags }

Type declaration

  • Optional console?: Console
  • Optional env?: Props
  • Optional parent?: ConsoleMetric
  • Optional prefix?: undefined | string
  • Optional suffix?: undefined | string
  • Optional tags?: Tags

Constructor

Constructor<T>: {}

Type parameters

  • T

Type declaration

CountOptions

CountOptions<T>: { counterFactory?: CounterFactory<T>; filter?: Filter; name?: undefined | string; tags?: Tags }

Type parameters

Type declaration

  • Optional counterFactory?: CounterFactory<T>
  • Optional filter?: Filter
  • Optional name?: undefined | string
  • Optional tags?: Tags

Counter

Counter<T>: Metric & { increment: (val: T, tags?: Tags) => void }

Type parameters

DatadogInterceptorOptions

DatadogInterceptorOptions: { datadog?: StatsD; eventOptions: EventOptions; extractText: (context: Message) => string | undefined; extractTitle: (context: Message) => string; filter: FilterLogMessage; onErr?: undefined | ((err: Error) => void); tags?: undefined | ((context: Message) => Tags) }

Type declaration

  • Optional datadog?: StatsD
  • eventOptions: EventOptions
  • extractText: (context: Message) => string | undefined
      • (context: Message): string | undefined
      • Parameters

        • context: Message

        Returns string | undefined

  • extractTitle: (context: Message) => string
      • (context: Message): string
      • Parameters

        • context: Message

        Returns string

  • filter: FilterLogMessage
  • Optional onErr?: undefined | ((err: Error) => void)
  • Optional tags?: undefined | ((context: Message) => Tags)

DayOfMonth

DayOfMonth: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31

DayOfWeek

DayOfWeek: 1 | 2 | 3 | 4 | 5 | 6 | 7

False

False: 0 | "false" | "False" | "FALSE" | "no" | "No" | "NO" | "n"

Gauge

Gauge<T>: Settable<T> & Counter<T>

Type parameters

GaugeOptions

GaugeOptions<T>: { filter?: Filter; gaugeFactory?: GaugeFactory<T>; name?: undefined | string; tags?: Tags }

Type parameters

Type declaration

  • Optional filter?: Filter
  • Optional gaugeFactory?: GaugeFactory<T>
  • Optional name?: undefined | string
  • Optional tags?: Tags

GaugeWrapperContext

GaugeWrapperContext<T>: { args: unknown[]; error?: unknown; result?: T }

Type parameters

  • T

Type declaration

  • args: unknown[]
  • Optional error?: unknown
  • Optional result?: T

GcpProject

GcpProject: "GCP_PROJECT" | "GCLOUD_PROJECT" | "GOOGLE_CLOUD_PROJECT"

Histogram

Histogram<T>: Settable<T>

Type parameters

  • T

Hour

Hour: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 18 | 19 | 20 | 21 | 22 | 23 | 24

HrTime

HrTime: [number, number]

HystrixCommandOptions

HystrixCommandOptions: CommandOptions & { circuitBreakerErrorThresholdPercentage?: undefined | number; circuitBreakerForceClosed?: unknown; circuitBreakerForceOpened?: unknown; circuitBreakerRequestVolumeThreshold?: undefined | number; circuitBreakerSleepWindowInMilliseconds?: undefined | number; cleanup?: unknown; context?: unknown; errorHandler?: undefined | ((err: unknown, ...args: unknown[]) => unknown); fallbackTo?: undefined | ((err: unknown, ...args: unknown[]) => unknown); percentileWindowLength?: undefined | number; percentileWindowNumberOfBuckets?: undefined | number; requestVolumeRejectionThreshold?: unknown; statisticalWindowLength?: undefined | number; statisticalWindowNumberOfBuckets?: undefined | number; timeout?: undefined | number }

IdleId

IdleId: number | RequestIdleCallbackHandle

InternalLogOptions

InternalLogOptions: { console?: Console; enable: { debug: boolean; table: boolean; warn: boolean }; parent?: string | { fqn: string } }

Type declaration

  • Optional console?: Console
  • enable: { debug: boolean; table: boolean; warn: boolean }
    • debug: boolean
    • table: boolean
    • warn: boolean
  • Optional parent?: string | { fqn: string }

JoinOptions

JoinOptions: { execute: (err?: unknown, result?: unknown) => void; filter?: Filter; join: Join; original: (...args: unknown[]) => unknown; target: unknown }

Type declaration

  • execute: (err?: unknown, result?: unknown) => void
      • (err?: unknown, result?: unknown): void
      • Parameters

        • Optional err: unknown
        • Optional result: unknown

        Returns void

  • Optional filter?: Filter
  • join: Join
  • original: (...args: unknown[]) => unknown
      • (...args: unknown[]): unknown
      • Parameters

        • Rest ...args: unknown[]

        Returns unknown

  • target: unknown

Key

Key: string | KeyFallback

KeyFallback

KeyFallback: { global?: undefined | string; name: string }

Type declaration

  • Optional global?: undefined | string
  • name: string

LocalTimerOptions

LocalTimerOptions: { env?: Props; parent?: LocalTimerWrapper<any, any>; prefix?: undefined | string; suffix?: undefined | string; tags?: Tags; timerFactory?: TimerFactory }

Type declaration

  • Optional env?: Props
  • Optional parent?: LocalTimerWrapper<any, any>
  • Optional prefix?: undefined | string
  • Optional suffix?: undefined | string
  • Optional tags?: Tags
  • Optional timerFactory?: TimerFactory

LogBoostrap

LogBoostrap: { root: Log }

Type declaration

LogConfigOptions

LogConfigOptions: { contextSupplier?: Context; interceptors?: Interceptor[]; messageFormat?: MessageFormat; messageTemplate?: MessageTemplate; rootLevel?: LogLevel }

Type declaration

LogFeature

LogFeature: keyof LogEnv

LogInvocationOptions

LogInvocationOptions: { filter?: Filter; includeResult?: undefined | false | true; level: LogLevel; name?: undefined | string; parent?: Log }

Type declaration

  • Optional filter?: Filter
  • Optional includeResult?: undefined | false | true
  • level: LogLevel
  • Optional name?: undefined | string
  • Optional parent?: Log

LogMessage

LogMessage: string | MessageContext

LogOptions

LogOptions: { config?: LogConfigOptions; env?: Env; name?: undefined | string; parent?: Log }

Type declaration

  • [key: string]: unknown | undefined
  • Optional config?: LogConfigOptions
  • Optional env?: Env
  • Optional name?: undefined | string
  • Optional parent?: Log

Metric

Metric: { name: string; tags: Tags }

Type declaration

  • name: string
  • tags: Tags

Milliseconds

Milliseconds: number | bigint

Month

Month: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12

Named

Named<T>: string | { name: string } | Constructor<T>

Type parameters

  • T

NanoTime

Nanoseconds

Nanoseconds: bigint

NotPromise

NotPromise<T>: Exclude<T, Promise<T>>

Type parameters

  • T

Numeric

Numeric: number | bigint

PerformanceTimerOptions

PerformanceTimerOptions: { endSuffix?: undefined | string; env?: Props; measureSuffix?: undefined | string; parent?: PerformanceTimer<any>; performance?: Performance; startSuffix?: undefined | string; tags?: Tags }

Type declaration

  • Optional endSuffix?: undefined | string
  • Optional env?: Props
  • Optional measureSuffix?: undefined | string
  • Optional parent?: PerformanceTimer<any>
  • Optional performance?: Performance
  • Optional startSuffix?: undefined | string
  • Optional tags?: Tags

ProfileOptions

ProfileOptions: { filter?: Filter; label?: undefined | string; profiler?: Profiler }

Type declaration

  • Optional filter?: Filter
  • Optional label?: undefined | string
  • Optional profiler?: Profiler

ProfilerOptions

ProfilerOptions: { env?: Env; parent?: Profiler }

Type declaration

PromFeature

PromFeature: { name: ApmFeatures; options: PromOptions; prefix?: undefined | string }

Type declaration

PromOptions

PromOptions: { additionalTagNames?: string[]; aggregator?: Aggregator; help: string; prefix?: undefined | string; registry?: Registry; suffix?: undefined | string; tags?: Tags }

Type declaration

  • Optional additionalTagNames?: string[]

    prom-client requires configuring the tags that will be used before calling collection methods. You can provide names for tags that can't be set until the method invocation here.

  • Optional aggregator?: Aggregator
  • help: string
  • Optional prefix?: undefined | string
  • Optional registry?: Registry
  • Optional suffix?: undefined | string
  • Optional tags?: Tags

RangeOptions

RangeOptions: { from?: undefined | number; to?: undefined | number }

Type declaration

  • Optional from?: undefined | number
  • Optional to?: undefined | number

RequestIdleCallbackDeadline

RequestIdleCallbackDeadline: { didTimeout: boolean; timeRemaining: () => number }

Type declaration

  • Readonly didTimeout: boolean
  • timeRemaining: () => number
      • (): number
      • Returns number

RequestIdleCallbackHandle

RequestIdleCallbackHandle: any

RequestIdleCallbackOptions

RequestIdleCallbackOptions: { timeout: number }

Type declaration

  • timeout: number

RetryOptions

RetryOptions: { backoff?: number | number[]; interval?: number | number[]; maxAttempts: number; name?: undefined | string }

Type declaration

  • Optional backoff?: number | number[]
  • Optional interval?: number | number[]
  • maxAttempts: number
  • Optional name?: undefined | string

Settable

Settable<T>: Metric & { set: any }

Type parameters

  • T

StackdriverInterceptorOptions

StackdriverInterceptorOptions: { callback?: undefined | ((err: Error, response: ServerResponse | null, body: {}) => void); errorBuilder: ErrorBuilder; errors?: ErrorReporting; filter: (context: Message) => boolean }

Type declaration

  • Optional callback?: undefined | ((err: Error, response: ServerResponse | null, body: {}) => void)

    This is included for testing...

    param
    param
    param
  • errorBuilder: ErrorBuilder
  • Optional errors?: ErrorReporting
  • filter: (context: Message) => boolean
      • (context: Message): boolean
      • Parameters

        • context: Message

        Returns boolean

StackdriverJsonFormat

StackdriverJsonFormat: { @type: string; context: { httpRequest: { method: string; referrer: string; remoteIp: string; responseStatusCode: number; url: string; userAgent: string }; reportLocation: { filePath: string; functionName: string; lineNumber: number }; user: string }; eventTime: string; message: string; serviceContext: { service: string; version: string } }

Type declaration

  • @type: string
  • context: { httpRequest: { method: string; referrer: string; remoteIp: string; responseStatusCode: number; url: string; userAgent: string }; reportLocation: { filePath: string; functionName: string; lineNumber: number }; user: string }
    • httpRequest: { method: string; referrer: string; remoteIp: string; responseStatusCode: number; url: string; userAgent: string }
      • method: string
      • referrer: string
      • remoteIp: string
      • responseStatusCode: number
      • url: string
      • userAgent: string
    • reportLocation: { filePath: string; functionName: string; lineNumber: number }
      • filePath: string
      • functionName: string
      • lineNumber: number
    • user: string
  • eventTime: string
  • message: string
  • serviceContext: { service: string; version: string }
    • service: string
    • version: string

StatsDFeature

StatsDFeature: { name: ApmFeatures; options?: StatsDOptions }

Type declaration

StatsDOptions

StatsDOptions: { prefix?: undefined | string; sampleRate?: undefined | number; statsd?: StatsD; suffix?: undefined | string; tags?: Tags }

Type declaration

  • Optional prefix?: undefined | string
  • Optional sampleRate?: undefined | number
  • Optional statsd?: StatsD
  • Optional suffix?: undefined | string
  • Optional tags?: Tags

StdLogOptions

StdLogOptions: StdOutOptions & LogOptions & { parent?: StdOutLog }

StdOutOptions

StdOutOptions: { stderr?: Writable; stdout?: Writable }

Type declaration

  • Optional stderr?: Writable

    Will default to process.stderr

  • Optional stdout?: Writable

    Will default to process.stdout

Tags

Tags: Record<string, string>

TimeAndRemainder

TimeAndRemainder: [bigint, bigint]

TimedOptions

TimedOptions: { filter?: Filter; name?: undefined | string; tags?: Tags; timerWrapper?: TimerWrapperFactory }

Type declaration

Timer

Timer: Metric & { elapsed: () => Duration | undefined; end: (tags?: Tags) => Duration | undefined; mark: (name: string, tags?: Tags) => Duration | undefined; start: (tags?: Tags) => TimeMeasurement | undefined }

True

True: 1 | "true" | "True" | "TRUE" | "yes" | "Yes" | "YES" | "y"

Value

Value<T>: Metric & { value: T }

Type parameters

  • T

Win

Win: Window & { cancelIdleCallback: (handle: RequestIdleCallbackHandle) => void; requestIdleCallback: (callback: (deadline: RequestIdleCallbackDeadline) => void, opts?: RequestIdleCallbackOptions) => RequestIdleCallbackHandle }

Variables

Const ACCESS_TEMPLATE

ACCESS_TEMPLATE: "${ctx.data.req.ip} - - [${ctx.data.ts}] ${ctx.data.pid} "${ctx.data.req.method} ${ctx.data.req.url} " ${ctx.data.res.status} ${ctx.data.res.length} - "${ctx.data.req.userAgent}" ${ctx.message}" = "${ctx.data.req.ip} - - [${ctx.data.ts}] ${ctx.data.pid} "${ctx.data.req.method} ${ctx.data.req.url} " ${ctx.data.res.status} ${ctx.data.res.length} - "${ctx.data.req.userAgent}" ${ctx.message}"

Const APM_ENV

APM_ENV: ApmEnv = new ApmEnv()

Const BASE_ROOT

BASE_ROOT: "ts-base" = "ts-base"

Const ENV_PROFILER

ENV_PROFILER: "profiler" = "profiler"

Const LOG_ENV

LOG_ENV: LogEnv = new LogEnv()

Const MS_IN_SEC

MS_IN_SEC: bigint = BigInt(1000)

Const NANOS_IN_CENTURY

NANOS_IN_CENTURY: bigint = NANOS_IN_DECADE * BigInt(100)

Const NANOS_IN_DAY

NANOS_IN_DAY: bigint = NANOS_IN_HOUR * BigInt(24)

Const NANOS_IN_DECADE

NANOS_IN_DECADE: bigint = NANOS_IN_YEAR * BigInt(10)

Const NANOS_IN_HOUR

NANOS_IN_HOUR: bigint = NANOS_IN_MIN * BigInt(60)

Const NANOS_IN_MIN

NANOS_IN_MIN: bigint = NANOS_IN_SEC * BigInt(60)

Const NANOS_IN_MONTH

NANOS_IN_MONTH: bigint = NANOS_IN_DAY * BigInt(30)

Const NANOS_IN_MS

NANOS_IN_MS: bigint = BigInt(1000000)

Const NANOS_IN_SEC

NANOS_IN_SEC: bigint = NANOS_IN_MS * MS_IN_SEC

Const NANOS_IN_WEEK

NANOS_IN_WEEK: bigint = NANOS_IN_DAY * BigInt(7)

Const NANOS_IN_YEAR

NANOS_IN_YEAR: bigint = NANOS_IN_MONTH * BigInt(12)

Const TRUE

TRUE: "true" = "true"

Let app

Let instance

instance: Env

Let internalLog

internalLog: InternalLog

Const nodeTimeFactory

nodeTimeFactory: NodeTimeFactory = new NodeTimeFactory()

Const system

system: { hasWindow: boolean; isNode: boolean } = _system

Type declaration

  • hasWindow: boolean
  • isNode: boolean

Let timeFactory

timeFactory: TimeFactory

Let timerFactory

timerFactory: TimerFactory

Functions

CircuitBreaker

CountErrors

  • CountErrors(options?: CountOptions<number>): MethodDecorator

CountInvocations

  • CountInvocations(options?: CountOptions<number>): MethodDecorator

CountSuccess

  • CountSuccess(options?: CountOptions<number>): MethodDecorator

Const DEFAULT_NODE_CONTEXT_SUPPLIER

  • DEFAULT_NODE_CONTEXT_SUPPLIER(): { pid: number; timestamp: string }

GaugeErrors

  • GaugeErrors(options?: GaugeOptions<number>): MethodDecorator

GaugeInvocations

  • GaugeInvocations(options?: GaugeOptions<number>): MethodDecorator

GaugeSuccess

  • GaugeSuccess(options?: GaugeOptions<number>): MethodDecorator

LogInvocation

Profile

ProfileTimestamp

Retry

Const SUPPLY_UNDEFINED

  • SUPPLY_UNDEFINED(): undefined

Timed

TimedAsync

accept

acceptFilter

  • acceptFilter<T>(options: { filter?: Filter | { filter?: Filter }; no: () => T; yes: () => T }): T

bootstrap

cancelIdleCallback

  • cancelIdleCallback(id: IdleId): void

cleanMetricName

  • cleanMetricName(name: string): string

createPrometheusFeature

createStatsDFeature

datadogInterceptor

debug

  • debug(name: string): (message: string | MessageContext, ...args: unknown[]) => void

debugEnv

  • debugEnv(): Record<string, string>

Const defaultStackdriverErrorBuilder

  • defaultStackdriverErrorBuilder(event: ErrorMessage, context: Message): ErrorMessage

documentQueryLoader

  • documentQueryLoader(selector: string, extractor: ElementExtractor, document: { querySelectorAll: any } | Document): Supplier<Record<string, string>>

first

  • first<T>(val: T | undefined, ...args: T[]): T | undefined

getTimeFactory

getTimerFactory

idleCallback

interceptFilter

joinError

  • joinError(options: JoinOptions, ...args: unknown[]): any

joinFqn

  • joinFqn(appendName: PropertyKey | { name: string }, parent?: string | { fqn: string }, separator?: string): string
  • Parameters

    • appendName: PropertyKey | { name: string }
    • Optional parent: string | { fqn: string }
    • Default value separator: string = "."

    Returns string

loadEnvWithMetaTags

  • loadEnvWithMetaTags(namePrefix: string, document: Document): Supplier<Record<string, string>>

loadEnvWithObj

  • loadEnvWithObj(object: Record<string, string>): Supplier<Record<string, string>>

logLevelFilter

logProvider

logger

metaContentExtractor

millisAsNanoString

  • millisAsNanoString(milllis: Milliseconds, postfix?: "" | "n"): string

millisAsNanos

nameOrFqn

  • nameOrFqn(name?: undefined | string, target?: any, property?: PropertyKey): string

nanosAsJsDate

nanosAsMillis

nanosAsString

  • nanosAsString(nanos: NanoTime, postfix?: "" | "n"): string

nextTick

  • nextTick(callable: (...args: unknown[]) => void, ...args: unknown[]): void
  • Parameters

    • callable: (...args: unknown[]) => void
        • (...args: unknown[]): void
        • Parameters

          • Rest ...args: unknown[]

          Returns void

    • Rest ...args: unknown[]

    Returns void

or

  • or<T>(val: T | undefined, fallback: T): T

orUseSupplier

  • orUseSupplier<T>(item: T | undefined, supplier: Supplier<T>): T

processEnvLoader

  • processEnvLoader(filter?: (key: string, value: string) => boolean): Record<string, string>
  • Parameters

    • Default value filter: (key: string, value: string) => boolean = () => true
        • (key: string, value: string): boolean
        • Parameters

          • key: string
          • value: string

          Returns boolean

    Returns Record<string, string>

rawNanos

registerDatadog

  • registerDatadog(statsd: StatsD): void

registerErrorReporting

  • registerErrorReporting(errors?: ErrorReporting): ErrorReporting

registerPrometheusFeature

  • registerPrometheusFeature(feature: PromFeature): void

registerRootRegistry

  • registerRootRegistry(registry: Registry): void

registerStatsD

  • registerStatsD(statsd: StatsD): void

registerStatsDFeature

retry

setTimeFactory

setTimerFactory

shift

  • shift(val?: number | number[]): number | undefined

stackdriverInterceptor

tagString

  • tagString(tags: Tags, entrySeparator?: string, itemSeparator?: string): string

templateString

timePart

timePartValue

timeParts

  • timeParts(nanos: NanoTime, parts: { name: string; unit: bigint }[]): Record<string, bigint>

wrapJoin

  • wrapJoin(options: JoinOptions, ...args: unknown[]): any

Object literals

Const CONSOLE_APM

CONSOLE_APM: object

features

features: object

counter

counter: ConsoleCounterFactory = new ConsoleCounterFactory({})

timer

timer: ConsoleTimerFactory = new ConsoleTimerFactory({})

Const DefaultStackdriverInterceptorOptions

DefaultStackdriverInterceptorOptions: object

filter

filter: FilterLogMessage = logLevelFilter(LogLevel.ALERT)

errorBuilder

  • errorBuilder(event: ErrorMessage, context: Message): ErrorMessage

Const GCP_ENV_VARS

GCP_ENV_VARS: object

ENTRY_POINT

ENTRY_POINT: string = "ENTRY_POINT"

FUNCTION_IDENTITY

FUNCTION_IDENTITY: string = "FUNCTION_IDENTITY"

FUNCTION_MEMORY_MB

FUNCTION_MEMORY_MB: string = "FUNCTION_MEMORY_MB"

FUNCTION_NAME

FUNCTION_NAME: string = "FUNCTION_NAME"

FUNCTION_REGION

FUNCTION_REGION: string = "FUNCTION_REGION"

FUNCTION_SIGNATURE_TYPE

FUNCTION_SIGNATURE_TYPE: string = "FUNCTION_SIGNATURE_TYPE"

FUNCTION_TARGET

FUNCTION_TARGET: string = "FUNCTION_TARGET"

FUNCTION_TIMEOUT_SEC

FUNCTION_TIMEOUT_SEC: string = "FUNCTION_TIMEOUT_SEC"

FUNCTION_TRIGGER_TYPE

FUNCTION_TRIGGER_TYPE: string = "FUNCTION_TRIGGER_TYPE"

GCLOUD_PROJECT

GCLOUD_PROJECT: string = "GCLOUD_PROJECT"

GCP_PROJECT

GCP_PROJECT: string = "GCP_PROJECT"

GOOGLE_APPLICATION_CREDENTIALS

GOOGLE_APPLICATION_CREDENTIALS: string = "GOOGLE_APPLICATION_CREDENTIALS"

GOOGLE_CLOUD_PROJECT

GOOGLE_CLOUD_PROJECT: string = "GOOGLE_CLOUD_PROJECT"

K_REVISION

K_REVISION: string = "K_REVISION"

K_SERVICE

K_SERVICE: string = "K_SERVICE"

PORT

PORT: string = "PORT"

Const MSG_FMT

MSG_FMT: object

annotatingClass

annotatingClass: string = "Annotating Class %s with @%s(%o)"

annotatingMethod

annotatingMethod: string = "Annotating Method %s.%s with @%s(%o)"

Const WHEN

WHEN: object

interval

  • interval(milliseconds: number): Filter

once

sampled

  • sampled(lessThan: number, random?: Function): Filter

times

  • times(count: number): Filter

Const _system

_system: object

hasWindow

hasWindow: boolean = typeof window !== 'undefined'

isNode

isNode: boolean = typeof process !== 'undefined' && process?.release?.name === 'node'

Const defaultDatadogInterceptorOptions

defaultDatadogInterceptorOptions: object

extractText

  • extractText(context: Message): any

extractTitle

  • extractTitle(context: Message): string

filter

  • filter(context: Message): boolean

eventOptions

eventOptions: object

alert_type

alert_type: "error" = "error"

priority

priority: "normal" = "normal"

Const defaultOptions

defaultOptions: object

enable

enable: object

debug

debug: false = false

table

table: false = false

warn

warn: false = false

Const rawMessageTemplate

rawMessageTemplate: object

Adds no additonal context to the message string.

format

Generated using TypeDoc