lib/plugins/platform/platform.js/Platform/getEGSubscription
class Platform:  getEGSubscription(event, fn) {
    const subscription = {
      functionId: this.serverless.service.getFunction(fn).name,
      type: event.eventType,
      details: {
        function: this.serverless.service.getFunction(fn).name,
        type: event.type,
        app: this.data.app,
        service: this.data.service.name,
        stage: this.serverless.service.provider.stage,
        path: event.path || '/',
      },
      provider: {
        name: 'Serverless',
        tenant: this.data.tenant,
      },
      properties: {
        name: event.eventType,
        service: this.data.service.name,
        stage: this.serverless.service.provider.stage,
      },
    };

    if (event.type === 'sync') {
      subscription.details.source = 'Sls::EventGateway::http';
    } else if (event.type === 'async') {
      subscription.details.source = 'sls/eventgateway/com';
    }
    if (event.eventType === 'http.request') {
      subscription.details.method = event.method;
    }
    if (typeof event.cors === 'boolean' || typeof event.cors === 'object') {
      subscription.details.cors = event.cors;
    } else {
      subscription.details.cors = true;
    }
    subscription.event = event;
    return subscription;
  }