import { Serializable } from '../serializable' ; import { StackMonitoringFields } from './stack_monitoring_fields' ; export class KibanaStats extends Serializable < StackMonitoringFields > { timestamp ( timestamp ) { super . timestamp ( timestamp ) ; this . fields [ 'kibana_stats.timestamp' ] = new Date ( timestamp ) . toISOString ( ) ; this . fields [ 'kibana_stats.response_times.max' ] = 250 ; this . fields [ 'kibana_stats.kibana.status' ] = 'green' ; return this ; } requests ( disconnects , total ) { this . fields [ 'kibana_stats.requests.disconnects' ] = disconnects ; this . fields [ 'kibana_stats.requests.total' ] = total ; return this ; } }