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