2023-03-07 16:38:41 -05:00
|
|
|
/**
|
2026-01-28 17:09:06 -08:00
|
|
|
* Copyright IBM Corp. 2021, 2026
|
2024-05-31 11:29:24 -07:00
|
|
|
* 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';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* A connection contains data for a boundary connection within a session.
|
|
|
|
|
*/
|
2023-03-16 13:49:04 -04:00
|
|
|
export default class GeneratedConnectionRecordingModel extends BaseModel {
|
2023-03-07 16:38:41 -05:00
|
|
|
// =attributes
|
|
|
|
|
|
2023-03-20 14:06:15 -04:00
|
|
|
@attr('string', {
|
|
|
|
|
description:
|
|
|
|
|
'The ID of the Connection which this Connection Recording recorded.',
|
|
|
|
|
readOnly: true,
|
|
|
|
|
})
|
|
|
|
|
connection_id;
|
|
|
|
|
|
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 this Connection.',
|
|
|
|
|
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 this Connection.',
|
|
|
|
|
readOnly: true,
|
|
|
|
|
})
|
|
|
|
|
bytes_down;
|
|
|
|
|
|
|
|
|
|
@attr('number', {
|
|
|
|
|
description:
|
|
|
|
|
'The total number of errors that occurred during the use of this Connection.',
|
|
|
|
|
readOnly: true,
|
|
|
|
|
})
|
2024-01-17 11:37:54 -08:00
|
|
|
errors_number;
|
2023-03-07 16:38:41 -05:00
|
|
|
|
|
|
|
|
@attr('date', {
|
|
|
|
|
description: 'The time the Connection 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 Connection finished.',
|
|
|
|
|
readOnly: true,
|
|
|
|
|
})
|
2023-03-24 10:52:55 -04:00
|
|
|
end_time;
|
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 connection recording in ms.',
|
|
|
|
|
readOnly: true,
|
|
|
|
|
})
|
|
|
|
|
duration;
|
2023-03-07 16:38:41 -05:00
|
|
|
}
|