Sha256: 86cb1cddd34c99187578a5ae8afeb47b380d408abb16300defffbc2b882eb658

Contents?: true

Size: 1.96 KB

Versions: 21

Compression:

Stored size: 1.96 KB

Contents

export interface SQL {
  sql: string;
  database_type: string;
}

export interface HTTPRoute {
  method: string;
  uri: string;
}

export interface HTTPRequest {
  route: HTTPRoute;
  parameterNames: string[];
  statusCode: int;
}
 
export interface HTTPServerRequest {
  path: string;
  normalized_path: string;
  headers: {string:string};
}

export interface Event {
  id: integer;
  type: string;
  definedClass: string;
  methodId: string;
  labels: Set;
  sql: SQL;
  httpServerRequest: HTTPServerRequest;
  sqlQuery: string;
  isFunction: bool;
  returnValue: any;
  callEvent: Event;
  returnEvent: Event;
  codeObject: CodeObject;
  isCall: function(): boolean;
  isReturn: function(): boolean;
}

export interface SQLInfo {
  tables: string[];
  columns: string[];
}

export interface CodeObject {
  id: string;
  name: string;
  type: string;
  database_type: string;
  children: CodeObject[];
  parent: CodeObject;
  location: string; // Functions only
  static: boolean; // Functions only
}

export interface Trigram {
  callerId: string;
  codeObjectId: string;
  calleeId: string;

  id: string;
}

export interface CodeObjectMatcher {
  match: function(CodeObject) : string;
  pop: function() : void;
}

export interface CodeObjectMatch {
  appmap: string;
  codeObject: CodeObject;
}

export interface EventMatch {
  appmap: string;
  event: Event;
  ancestors: Event[];
  descendants: Event[];
  caller: Event;
  packageTrigrams: Trigram[];
  classTrigrams: Trigram[];
  functionTrigrams: Trigram[];
}

export interface CodeObjectMatchSpec {
  tokens: Array<(codeObject: CodeObject) => boolean>;
}

export interface Filter {
  name: string;
  value: string;
}

export interface FunctionStats {
  eventMatches: EventMatch[];
  returnValues: string[];
  httpServerRequests: string[];
  sqlQueries: string[];
  sqlTables: string[];
  callers: Event[];
  ancestors: Event[];
  descendants: Event[];
  packageTrigrams: Trigram[];
  classTrigrams: Trigram[];
  functionTrigrams: Trigram[];
}

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
appmap-0.62.1 ./node_modules/@appland/cli/src/search/types.d.ts