forked from threatgrid/ctim
/
investigations.cljc
37 lines (33 loc) · 1.37 KB
/
investigations.cljc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
(ns ctim.examples.investigations
(:require [ctim.schemas.common :as c]))
(def investigation-maximal
{:id "http://ex.tld/ctia/investigation/investigation-2805d697-66b3-4e14-9b32-179e7a72eab6"
:type "investigation"
:schema_version c/ctim-schema-version
:revision 1
:external_ids [(str "http://ex.tld/ctia/investigation/investigation-"
"f867a601-ac76-4491-a0d6-51968c9f9021")
(str "http://ex.tld/ctia/investigation/investigation-"
"53468a66-5d95-49b5-88ec-454bdf894db9")]
:external_references [{:source_name "source"
:external_id "T1067"
:url "https://ex.tld/wiki/T1067"
:hashes ["#section1"]
:description "Description text"}]
:timestamp #inst "2017-10-23T19:25:27.278-00:00"
:language "language"
:title "investigation-title"
:description "description"
:short_description "short desc"
:source "a source"
:source_uri "http://example.com/somewhere-else"
:tlp "green"})
(def investigation-minimal
{:id "http://ex.tld/ctia/investigation/investigation-2805d697-66b3-4e14-9b32-179e7a72eab6"
:source "a source"
:schema_version c/ctim-schema-version
:type "investigation"})
(def new-investigation-maximal
investigation-maximal)
(def new-investigation-minimal
{:source "a source"})