InvestigationsResource
Investigation API methods.
Investigation API methods.
Functions
constructor__init__(client) -> NoneInitialize the resource.
paramclientKitaruAPIClientAPI client used to send requests.
Returns
Nonefunccreate(request, idempotency_key=None) -> InvestigationResponseCreate an investigation with its sessions in one shot.
paramrequestInvestigationCreateRequestInvestigation create request.
paramidempotency_keystr | None= NoneIdempotency key overriding the transport's random default.
Returns
kitaru.api_models.v1.investigation.InvestigationResponseCreated investigation.
funcget(investigation_id) -> InvestigationResponseGet an investigation by id.
paraminvestigation_iduuid.UUIDId of the investigation.
Returns
kitaru.api_models.v1.investigation.InvestigationResponseStored investigation.
funclist(params=None) -> Page[InvestigationResponse]List investigations.
paramparamsInvestigationListParams | None= NoneInvestigation list params.
Returns
kitaru.api_models.v1.base.PagePage of investigations.
funciter(params=None) -> AsyncIterator[InvestigationResponse]Iterate over all investigations.
paramparamsInvestigationListParams | None= NoneInvestigation list params.
Returns
collections.abc.AsyncIteratorAsync iterator over every investigation.
funcupdate(investigation_id, request) -> InvestigationResponseUpdate an investigation's name, description, and status.
paraminvestigation_iduuid.UUIDId of the investigation.
paramrequestInvestigationUpdateRequestInvestigation update request, unset fields stay unchanged.
Returns
kitaru.api_models.v1.investigation.InvestigationResponseUpdated investigation.
funcdelete(investigation_id) -> NoneDelete an investigation, cascading its sessions and answers.
paraminvestigation_iduuid.UUIDId of the investigation.
Returns
Nonefunclist_sessions(investigation_id, params=None) -> Page[InvestigationSessionResponse]List the sessions of an investigation, ordered by position.
paraminvestigation_iduuid.UUIDId of the investigation.
paramparamsInvestigationSessionsListParams | None= NoneInvestigation sessions list params.
Returns
kitaru.api_models.v1.base.PagePage of investigation sessions, ordered by position.
funciter_sessions(investigation_id, params=None) -> AsyncIterator[InvestigationSessionResponse]Iterate over all sessions of an investigation, ordered by position.
paraminvestigation_iduuid.UUIDId of the investigation.
paramparamsInvestigationSessionsListParams | None= NoneInvestigation sessions list params.
Returns
collections.abc.AsyncIteratorAsync iterator over every session of the investigation, ordered
funcupdate_session(investigation_id, session_id, request) -> InvestigationSessionResponseSet or clear an investigation session's verdict.
paraminvestigation_iduuid.UUIDId of the investigation.
paramsession_iduuid.UUIDId of the session.
paramrequestInvestigationSessionUpdateRequestInvestigation session update request.
Returns
kitaru.api_models.v1.investigation.InvestigationSessionResponseUpdated investigation session.