Files
threshold-ui/addons/api/addon/generated/models/session-recording.js
T

125 lines
2.8 KiB
JavaScript
Raw Normal View History

2023-03-07 16:38:41 -05:00
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
2023-03-07 16:38:41 -05:00
*/
import BaseModel from '../../models/base';
import { attr } from '@ember-data/model';
/**
2023-03-16 13:49:04 -04:00
* A session recording contains all data related to session recordings
2023-03-07 16:38:41 -05:00
*/
2023-03-16 13:49:04 -04:00
export default class GeneratedSessionRecordingModel extends BaseModel {
2023-03-07 16:38:41 -05:00
// =attributes
@attr('string', {
description: 'The type of the resource, to help differentiate schemas.',
readOnly: true,
})
type;
@attr('date', {
description:
'The time the Session Recording was created in the controller.',
readOnly: true,
})
created_time;
@attr('date', {
description: 'The time of the most recent update to the Session Recording.',
readOnly: true,
})
updated_time;
2023-03-07 16:38:41 -05:00
@attr({
2023-05-08 14:05:01 -04:00
description:
'Contains the values of related fields at the time this Session Recording was created',
2023-03-07 16:38:41 -05:00
readOnly: true,
})
2023-05-08 14:05:01 -04:00
create_time_values;
2023-03-07 16:38:41 -05:00
2023-05-08 14:05:01 -04:00
@attr('string', {
description: 'The ID of the Session which this Session Recording recorded.',
2023-03-07 16:38:41 -05:00
readOnly: true,
})
2023-05-08 14:05:01 -04:00
session_id;
2023-03-07 16:38:41 -05:00
@attr('string', {
2023-05-08 14:05:01 -04:00
description:
'The ID of the Storage Bucket for the Target of this Session Recording',
2023-03-07 16:38:41 -05:00
readOnly: true,
})
2023-05-08 14:05:01 -04:00
storage_bucket_id;
2023-03-07 16:38:41 -05:00
2023-03-28 16:20:40 -04:00
@attr('string', {
2023-03-07 16:38:41 -05:00
description:
'The total number of bytes uploaded from the client in the Session.',
readOnly: true,
})
bytes_up;
2023-03-28 16:20:40 -04:00
@attr('string', {
2023-03-07 16:38:41 -05:00
description:
'The total number of bytes downloaded to the client in the Session.',
readOnly: true,
})
bytes_down;
@attr('number', {
description:
'The total number of errors that occurred during the use of the Session.',
readOnly: true,
})
errors_number;
2023-03-07 16:38:41 -05:00
@attr('date', {
description: 'The time the Session started.',
readOnly: true,
})
2023-03-24 10:52:55 -04:00
start_time;
2023-03-07 16:38:41 -05:00
@attr('date', {
description: 'The time the Session finished.',
readOnly: true,
})
2023-03-24 10:52:55 -04:00
end_time;
2023-03-07 16:38:41 -05:00
2023-03-20 14:06:15 -04:00
@attr({
description: 'The array of mime types that this recording will support.',
readOnly: true,
})
mime_types;
@attr('duration', {
description: 'The duration of this session recording in ms.',
readOnly: true,
})
duration;
2023-05-17 12:01:34 -04:00
@attr('string', {
description:
'The current state of the session recording. One of "started", "available" and "unknown".',
readOnly: true,
})
state;
@attr('string', {
description:
'Any error seen during the closing of the session recording. Currently only set if state is "unknown".',
readOnly: true,
})
error_details;
@attr('date', {
description: 'The time until a session recording is required to be stored.',
readOnly: true,
})
retain_until;
@attr('date', {
description:
'The time a session recording is scheduled to be automatically deleted.',
readOnly: true,
})
delete_after;
2023-03-07 16:38:41 -05:00
}