import * as plugins from '../plugins.ts';
import * as data from '../data/index.ts';

export interface IReq_GetServerStatus extends
  plugins.typedrequestInterfaces.implementsTR<
    plugins.typedrequestInterfaces.ITypedRequest,
    IReq_GetServerStatus
  > {
  method: 'getServerStatus';
  request: {
    identity: data.IIdentity;
  };
  response: {
    status: data.IServerStatus;
    connectionInfo: data.IConnectionInfo;
  };
}

export interface IReq_GetClusterHealth extends
  plugins.typedrequestInterfaces.implementsTR<
    plugins.typedrequestInterfaces.ITypedRequest,
    IReq_GetClusterHealth
  > {
  method: 'getClusterHealth';
  request: {
    identity: data.IIdentity;
  };
  response: {
    clusterHealth: data.IClusterHealth;
  };
}
