export default (function (projectId, envId, appId, formatMessage) {
  return {
    autoQuery: true,
    transport: {
      read: {
        method: 'get',
        url: "/devops/v1/projects/".concat(projectId, "/app_service_instances/list_running_instance?env_id=").concat(envId, "&app_service_id=").concat(appId)
      }
    },
    events: {
      load: function load(_ref) {
        var dataSet = _ref.dataSet;
        // NOTE: 手动加入所有实例的option选项
        dataSet.create({
          code: formatMessage({
            id: 'all_instance'
          })
        }, 0);
      }
    }
  };
});