function getEventMetadata({ event, payload }) {
  if (event === 'state') {
    return chalk.bold(payload.value);
  }

  if (event === 'instance-start' || event === 'instance-stop') {
    if (payload.dc != null) {
      return chalk.green(`(${payload.dc})`);
    }
  }

  return '';
}
function getEventMetadata({ event, payload }) {
  if (event === 'state') {
    return chalk.bold(payload.value);
  }

  if (event === 'instance-start' || event === 'instance-stop') {
    if (payload.dc != null) {
      return chalk.green(`(${payload.dc})`);
    }
  }

  return '';
}
function getEventMetadata ( { event , payload } ) { if ( event === 'state' ) { return chalk . bold ( payload . value ) ; } if ( event === 'instance-start' || event === 'instance-stop' ) { if ( payload . dc != null ) { return chalk . green ( ` ${ payload . dc } ` ) ; } } return '' ; }
gets the metadata that should be printed next to each event
gets the metadata that should be printed next to each event
Get metadata for an event