Closed pdesoyres-cc closed 5 months ago
A component that displays logs for Clever applications.
dateRangeSelection
DateRangeSelection
null
false
options
LogsApplicationViewOptions
overflowWatermarkOffset
Number
10
selectedInstances
Array<string>
[]
state
LogsApplicationViewState
LogsApplicationViewStateLoadingInstances
limit
1000
cc-logs-application-view:date-range-change
DateRange
range
cc-logs-application-view:pause
cc-logs-application-view:resume
export interface LogsApplicationViewStateLoadingInstances { type: 'loadingInstances'; } export interface LogsApplicationViewStateErrorInstances { type: 'errorInstances'; } export interface LogsApplicationViewStateLogs { type: 'connectingLogs' | 'receivingLogs'| 'logStreamPaused' | 'logStreamEnded' | 'errorLogs'; instances: Array<Instance | GhostInstance>; selection: Array<string>; } export type LogsApplicationViewState = LogsApplicationViewStateLoadingInstances | LogsApplicationViewStateLogs | LogsApplicationViewStateErrorInstances; export type DateRange = { since: string; until?: string; } export interface DateRangeSelectionLive { type: 'live', } export type DateRangeSelectionPredefinedDefinition = 'lastHour' | 'last4Hours' | 'last7Days' | 'today' | 'yesterday'; export interface DateRangeSelectionPredefined { type: 'predefined', def: DateRangeSelectionPredefinedDefinition, } export interface DateRangeSelectionCustom { type: 'custom', since: string; until: string; } export type DateRangeSelection = DateRangeSelectionLive | DateRangeSelectionPredefined | DateRangeSelectionCustom; export type DateRangeSelectionMenuEntry = 'live' | 'custom' | DateRangeSelectionPredefinedDefinition; export interface LogsApplicationViewOptions { 'date-display': DateDisplay, 'metadata-display': { instance: boolean }, palette: LogsControlPalette, 'strip-ansi': boolean, timezone: Timezone, 'wrap-lines': boolean, }
GET api.clever-cloud.com/v4/orchestration/organisations/${params.id}/applications/${params.appId}/instances
GET api.clever-cloud.com/v4/orchestration/organisations/${params.id}/applications/${params.appId}/instances/${params.instanceId}
GET api.clever-cloud.com/v4/orchestration/organisations/${params.id}/applications/${params.appId}/deployments/${params.deploymentId}
GET api.clever-cloud.com/v2/organisations/${params.id}/applications/${params.appId}/deployments/${params.deploymentId}
GET api.clever-cloud.com/v4/logs/organisations/${this._ownerId}/applications/${this._appId}/logs
Context
A component that displays logs for Clever applications.
Inputs
Attributes/properties
dateRangeSelection
DateRangeSelection
null
false
options
LogsApplicationViewOptions
null
false
overflowWatermarkOffset
Number
10
false
selectedInstances
Array<string>
[]
false
state
LogsApplicationViewState
LogsApplicationViewStateLoadingInstances
false
limit
Number
1000
false
null
for no limit.Outputs
cc-logs-application-view:date-range-change
DateRange
range
whenever therange
changes.cc-logs-application-view:pause
DateRange
cc-logs-application-view:resume
DateRange
Type Definitions
Data/APIs
GET api.clever-cloud.com/v4/orchestration/organisations/${params.id}/applications/${params.appId}/instances
GET api.clever-cloud.com/v4/orchestration/organisations/${params.id}/applications/${params.appId}/instances/${params.instanceId}
GET api.clever-cloud.com/v4/orchestration/organisations/${params.id}/applications/${params.appId}/deployments/${params.deploymentId}
GET api.clever-cloud.com/v2/organisations/${params.id}/applications/${params.appId}/deployments/${params.deploymentId}
GET api.clever-cloud.com/v4/logs/organisations/${this._ownerId}/applications/${this._appId}/logs