copyStreamToken(stream) {
    const token = this.getStreamToken(stream);
    if (token) {
      const error = this.CucControllerHelper.constructor.copyToClipboard(token);
      if (error) {
        this.CucCloudMessage.error(this.$translate.instant('logs_streams_copy_token_error', {
          stream: stream.info.title,
          token_value: token,
        }));
      } else {
        this.CucCloudMessage.info(this.$translate.instant('logs_streams_copy_token_success'));
      }
    }
  }
/**
   * extracts and copies stream token to clipboard.
   * Shows error message on UI if no no token found or browser does not support clipboard copy.
   *
   * @param {any} stream
   * @memberof LogsStreamsService
   */
extracts and copies stream token to clipboard.
Shows error message on UI if no no token found or browser does not support clipboard copy.

@param {any} stream
@memberof LogsStreamsService
extracts and copies stream token to clipboard . Shows error message on UI if no no token found or browser does not support clipboard copy . @param { any } stream @memberof LogsStreamsService
copyStreamToken(stream) {
    const token = this.getStreamToken(stream);
    if (token) {
      const error = this.CucControllerHelper.constructor.copyToClipboard(token);
      if (error) {
        this.CucCloudMessage.error(this.$translate.instant('logs_streams_copy_token_error', {
          stream: stream.info.title,
          token_value: token,
        }));
      } else {
        this.CucCloudMessage.info(this.$translate.instant('logs_streams_copy_token_success'));
      }
    }
  }
copyStreamToken ( stream ) { const token = this . getStreamToken ( stream ) ; if ( token ) { const error = this . CucControllerHelper . constructor . copyToClipboard ( token ) ; if ( error ) { this . CucCloudMessage . error ( this . $translate . instant ( 'logs_streams_copy_token_error' , { stream : stream . info . title , token_value : token , } ) ) ; } else { this . CucCloudMessage . info ( this . $translate . instant ( 'logs_streams_copy_token_success' ) ) ; } } }
extracts and copies stream token to clipboard.
extracts and copies stream token to clipboard .