es.systems

Systems indexing/searching

all

(all)
return all existing systems

clone

(clone id {:keys [hostname], :as spec})
clones an existing system

create

(create system)(create system id)
create a system returning its id

delete

(delete id)
delete a system from ES

exists?

(exists? id)

get

(get id)
Grabs a system by an id, return nil if missing

get!

(get! id)
Grabs a system by an id

get-system-by-host

(get-system-by-host host)
Search for a system using its hostname

keywordize

(keywordize m)
converting ES values back into keywords

missing-systems

(missing-systems systems)
Filter systems that aren't persisted already

partial

(partial id part)
partial update of a system into ES

put

(put id system)
Update a system

query

(query query & {:keys [from size], :or {size 100, from 0}})
basic query string

system-val

(system-val spec ks)
grabbing instance id of spec

update-ip

(update-ip system-id ip)
updates public ip address in the machine persisted data