Finding History (risksense_api.__subject.__findinghistory.__findinghistory)

Finding history module defined for different history related api endpoints.

class risksense_api.__subject.__findinghistory.__findinghistory.FindingHistory(profile)[source]

Bases: Subject

Class for Finding History Definitions.

To utlise Finding history:

Parameters:

profile (object) – Profile Object

Usage:

self.{risksenseobjectname}.finding_history.{function}

Examples

To get findings history for an application finding using get_applicationfinding_history() function

>>> self.{risksenseobject}.finding_history.get_applicationfinding_history(112)
__init__(profile)[source]

Initialization of Finding history Object .

Parameters:

profile (object) – Profile Object

get_hostfinding_history(vulnerableids, client_id=None)[source]

Get history of hostfindings

Parameters:
  • vulnerableids (list) – The vulnerability ids

  • client_id (typing.Optional[int]) – The client id , if none, default client id is taken

Return type:

list

Returns:

The history data

Example

To get groupby data

>>> self.{risksenseobject}.finding_history.get_hostfinding_history([123,123]])
get_applicationfinding_history(vulnerableids, client_id=None)[source]

Get history of hostfindings

Parameters:
  • vulnerableids (list) – The vulnerability ids

  • client_id (typing.Optional[int]) – The client id , if none, default client id is taken

Return type:

list

Returns:

The history data

Example

To get groupby data

>>> self.{risksenseobject}.finding_history.get_hostfinding_history([123,123]])