Skip to main content

Interface: CustomerAppConsumption

Defined in: src/airs/types.ts:1145

Per-app consumption + violation snapshot, normalized from the SDK's dashboard endpoints. Time window is fixed at construction.

Properties

appId

appId: string

Defined in: src/airs/types.ts:1146


appName

appName: string

Defined in: src/airs/types.ts:1147


cloud?

optional cloud?: string

Defined in: src/airs/types.ts:1148


detectors

detectors: object[]

Defined in: src/airs/types.ts:1167

Per-detector violation severity counts, one entry per detection_type.

critical

critical: number

high

high: number

low

low: number

medium

medium: number

total

total: number

type

type: string


monitoringSince?

optional monitoringSince?: string

Defined in: src/airs/types.ts:1151

ISO timestamp of first monitoring (corresponds to SCM panel's "Monitoring Since").


profiles

profiles: string[]

Defined in: src/airs/types.ts:1153

Attached security profile names.


sessions

sessions: object

Defined in: src/airs/types.ts:1162

Session activity counts over the window.

total

total: number

violating

violating: number


source?

optional source?: string

Defined in: src/airs/types.ts:1149


tokens

tokens: object

Defined in: src/airs/types.ts:1155

Token consumption stats with scale qualifier (K = thousands, M = millions).

dailyAverage?

optional dailyAverage?: number

dailyAverageScale?

optional dailyAverageScale?: string

monthlyTotal?

optional monthlyTotal?: number

monthlyTotalScale?

optional monthlyTotalScale?: string


totalViolating

totalViolating: number

Defined in: src/airs/types.ts:1176

Sum of violating sessions across all detectors (mirrors SCM panel's badge).