Sha256: c12f08652b9dbfe2909911b9cf650319e093ec78d512243a76e9a06d05fab675
Contents?: true
Size: 492 Bytes
Versions: 11
Compression:
Stored size: 492 Bytes
Contents
# frozen_string_literal: true $LOAD_PATH.unshift("#{__dir__}/../lib") require "hachi" api = Hachi::API.new # create a simple alert api.alert.create(title: "test", description: "test", type: "test", source: "test") # create an alert with artifacts artifacts = [ { data: "1.1.1.1", data_type: "ip", message: "test" }, { data: "github.com", data_type: "domain", tags: ["test"] } ] api.alert.create(title: "test", description: "test", type: "test", source: "test", artifacts: artifacts)
Version data entries
11 entries across 11 versions & 1 rubygems