Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

  • new Client(configuration: IConfig, baseUrl?: string, http?: { fetch: any }): Client

Properties

baseUrl: string
http: { fetch: any }

Type declaration

  • fetch:function
    • fetch(url: RequestInfo, init?: RequestInit): Promise<Response>
jsonParseReviver: undefined | ((key: string, value: any) => any) = undefined

Methods

  • deleteAlerts(alertIds: string[]): Promise<void>
  • deleteComment(body: number[]): Promise<boolean>
  • get(id: string, tags: undefined | boolean, annotations: undefined | boolean): Promise<Alert>
  • Get Alert without context

    Parameters

    • id: string

      Alert ID

    • tags: undefined | boolean

      (optional) If the parameter exists and the value is TRUE all the alert tags will be included in the response.

    • annotations: undefined | boolean

      (optional) If the parameter exists and the value is TRUE all the alert annotations will be included in the response.

    Returns Promise<Alert>

  • getAlerts(nameFilter: undefined | string, idFilter: undefined | string, body: undefined | Pageable): Promise<AlertDefinition[]>
  • getListByCriterias(limit: string, offset: string, from: string, to: string, orderby: undefined | string, orderasc: undefined | boolean, showAll: undefined | boolean): Promise<AlertExtended[]>
  • Get Alerts

    Parameters

    • limit: string

      The limit, max number of elements returned

    • offset: string

      The offset, start element in the element number

    • from: string

      The date from in epoch time,with milliseconds obtain from new Date(Long.parseLong(from))

    • to: string

      The date to in epoch time,with milliseconds,obtain from new Date(Long.parseLong(from))

    • orderby: undefined | string

      (optional) Field to order, must be: id, domain, priority, context, category, srcPort, srcIp, srcHost, dstIp, dstPort, dstHost, protocol, username, application, engine, extraData, status, ack_status_date, createDate, updateDate.

    • orderasc: undefined | boolean

      (optional) Order Ascending

    • showAll: undefined | boolean

      (optional) Obtain all (false positive and close status included) Default:False

    Returns Promise<AlertExtended[]>

  • getListByCriteriasOverview(showAll: undefined | boolean): Promise<string>
  • getStatistics(hours: undefined | number, from: undefined | number, type: undefined | string, filterName: undefined | string, showAll: undefined | boolean): Promise<FunnelStatistics[]>
  • Get Alert statistics

    Parameters

    • hours: undefined | number

      (optional) Hours back to obtain data

    • from: undefined | number

      (optional) From to obtain data

    • type: undefined | string

      (optional) Type of result, may be 'raw', 'funnel, 'list'

    • filterName: undefined | string

      (optional) filter by name context

    • showAll: undefined | boolean

      (optional) Obtain all (false positive and close status included) Default:False

    Returns Promise<FunnelStatistics[]>

  • listStatus(from: undefined | string): Promise<string>
  • Get Alert statuses

    Parameters

    • from: undefined | string

      (optional) The date from in epoch time, with miliseconds. Default value 24 hours before petition

    Returns Promise<string>

  • processAddComment(response: Response): Promise<boolean>
  • processAddComments(response: Response): Promise<string[]>
  • processDeleteAlerts(response: Response): Promise<void>
  • processDeleteComment(response: Response): Promise<boolean>
  • processGet(response: Response): Promise<Alert>
  • processGetListByCriterias(response: Response): Promise<AlertExtended[]>
  • processGetListByCriteriasOverview(response: Response): Promise<string>
  • processListStatus(response: Response): Promise<string>
  • processSetTags(response: Response): Promise<any>
  • processUpdateComment(response: Response): Promise<boolean>
  • processUpdateComments(response: Response): Promise<string>
  • processUpdateStatus(response: Response): Promise<Alert>
  • processUpdateStatusLists(response: Response): Promise<any>
  • transformOptions(options: RequestInit): Promise<RequestInit>
  • transformResult(url: string, response: Response, processor: ((response: Response) => any)): any
  • updateStatus(id: string, status: number): Promise<Alert>
  • Update Alert status

    Parameters

    • id: string

      Alert ID

    • status: number

      Alert status with this possible values: UNREAD = 0; UPDATED = 1; FALSE POSTIVE = 2; WATCHED = 100; CLOSED = 300; REMINDER = 500; RECOVERY = 600; ANTI FLOOD = 700;

    Returns Promise<Alert>

  • updateStatusLists(status: number, body: undefined | Blob): Promise<any>
  • Update Alert status

    Parameters

    • status: number

      Alert status with this possible values: UNREAD = 0; UPDATED = 1; FALSE POSTIVE = 2; WATCHED = 100; CLOSED = 300; REMINDER = 500; RECOVERY = 600; ANTI FLOOD = 700;

    • body: undefined | Blob

      (optional)

    Returns Promise<any>

Generated using TypeDoc