How to use skipper - 4 common examples

To help you get started, we’ve selected a few skipper examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github spring-cloud / spring-cloud-dataflow-ui / ui / src / app / runtime / runtime-apps / runtime-apps.component.ts View on Github external
grafanaDashboard(runtimeApp: RuntimeApp): void {
    let appName = '';
    let streamName = '';
    if (runtimeApp.appInstances && runtimeApp.appInstances.length > 0) {
      const firstInstance: RuntimeAppInstance = runtimeApp.appInstances[0];
      if (firstInstance.attributes) {
        appName = firstInstance.attributes['skipper.application.name'];
        streamName = firstInstance.attributes['skipper.release.name'];
      }
    }
    if (streamName && appName) {
      this.grafanaService.getDashboardApplication(streamName, appName).subscribe((url: string) => {
        window.open(url);
      });
    } else {
      this.notificationService.error('Sorry, we can\' open this grafana dashboard');
    }
  }
github spring-cloud / spring-cloud-dataflow-ui / ui / src / app / runtime / runtime-app / runtime-app.component.ts View on Github external
grafanaInstanceDashboard(instance: RuntimeAppInstance): void {
    let appName = '';
    let streamName = '';
    let guid = '';
    if (instance.attributes) {
      appName = instance.attributes['skipper.application.name'];
      streamName = instance.attributes['skipper.release.name'];
      guid = instance.attributes['guid'];
    }
    if (streamName && appName && guid) {
      this.grafanaService.getDashboardApplicationInstance(streamName, appName, guid).subscribe((url: string) => {
        window.open(url);
      });
    } else {
      this.notificationService.error('Sorry, we can\' open this grafana dashboard');
    }
  }
github spring-cloud / spring-cloud-dataflow-ui / ui / src / app / runtime / runtime-app / runtime-app.component.ts View on Github external
grafanaInstanceDashboard(instance: RuntimeAppInstance): void {
    let appName = '';
    let streamName = '';
    let guid = '';
    if (instance.attributes) {
      appName = instance.attributes['skipper.application.name'];
      streamName = instance.attributes['skipper.release.name'];
      guid = instance.attributes['guid'];
    }
    if (streamName && appName && guid) {
      this.grafanaService.getDashboardApplicationInstance(streamName, appName, guid).subscribe((url: string) => {
        window.open(url);
      });
    } else {
      this.notificationService.error('Sorry, we can\' open this grafana dashboard');
    }
  }
github spring-cloud / spring-cloud-dataflow-ui / ui / src / app / runtime / runtime-apps / runtime-apps.component.ts View on Github external
grafanaDashboard(runtimeApp: RuntimeApp): void {
    let appName = '';
    let streamName = '';
    if (runtimeApp.appInstances && runtimeApp.appInstances.length > 0) {
      const firstInstance: RuntimeAppInstance = runtimeApp.appInstances[0];
      if (firstInstance.attributes) {
        appName = firstInstance.attributes['skipper.application.name'];
        streamName = firstInstance.attributes['skipper.release.name'];
      }
    }
    if (streamName && appName) {
      this.grafanaService.getDashboardApplication(streamName, appName).subscribe((url: string) => {
        window.open(url);
      });
    } else {
      this.notificationService.error('Sorry, we can\' open this grafana dashboard');
    }
  }

skipper

Bodyparser for Express/Sails. Exposes simple API for streaming multiple files to disk, S3, etc. without buffering to a .tmp directory.

MIT
Latest version published 2 months ago

Package Health Score

55 / 100
Full package analysis