Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cyberhaven-incidents

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cyberhaven-incidents

  • 0.5.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Cyberhaven::Incidents

Summary

A ruby gem to interact with the Cyberhaven incident API. Tested on Cyberhaven version 23.11.


Installation

sudo gem install cyberhaven-incidents


Usage

In order to run Cyberhaven Incidents, you are required to add these two variables to the top of your file, under the require cyberhaven-incidents line.

#!/usr/bin/ruby

require "cyberhaven-incidents"

## UPDATE THESE VARIABLES ------------------------------------------------------
$refreshToken = "API-REFRESH-TOKEN"
$deployment = "company.cyberhaven.io"

Example Commands

## COMMANDS ########################################
Cyberhaven::Incidents::getBearerToken

## Incident Totals
Cyberhaven::Incidents::totalIncidents
Cyberhaven::Incidents::totalUnresolvedIncidents
Cyberhaven::Incidents::totalIgnoredIncidents
Cyberhaven::Incidents::totalInProgressIncidents
Cyberhaven::Incidents::totalResolvedIncidents

## Detailed Incident by ID
Cyberhaven::Incidents::Id::DetailedJson("incidentID")
Cyberhaven::Incidents::Id::DetailedYaml("incidentID")
Cyberhaven::Incidents::Id::DetailedReport("incidentID")

## Summarized Incident details by ID
Cyberhaven::Incidents::Id::SummaryJson("incidentID")
Cyberhaven::Incidents::Id::SummaryYaml("incidentID")
Cyberhaven::Incidents::Id::SummaryReport("incidentID")

## Incident details by user
puts Cyberhaven::Incidents::User::TotalIncidents("username")
puts Cyberhaven::Incidents::User::AllIncidents("username")
Cyberhaven::Incidents::User::AllIncidentsCSV("username")
puts Cyberhaven::Incidents::User::AllIncidentsJson("username")
puts Cyberhaven::Incidents::User::AllIncidentsYaml("username")

Reference

https://storage.googleapis.com/cyberhaven-docs/redoc-static.html#/paths/~1api~1rest~1v1~1incidents~1list/post*

FAQs

Package last updated on 20 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc