Calls

Index

All Calls functions

Name Function header Example Result Description Errorhandling
ingridCall func(slap string, v interface{}) (Data IngridMsg) [[ $v := ingridCall "main" $req ]] Sends a Request to the hive to Slap “main”. $v contains a request, that should contain a Result
ingridCallRaw func(slap string, data string) []byte [[ $v := ingridCallRaw "another_slap" $myrawdata ]] Sends a Request to the hive to Slap “another_slap” with the Raw Data of $myrawdata. $v will be a array of bytes with the response in it
ingridExec func(slap string, v interface{}) (err error) [[ $v := ingridExec "some_broadcast" $req ]] Sends a Request to the hive to Slap “some_broadcast”. $v should be nil unless there is a error while sending to the hive
log func(severity string, message string) bool [[ log "error" "log this error" ]] Sends a Log Message to the hive as error with the given message
logIt func(severity string, actor string, message string) bool [[ logIt "warn" "myworker" "log this error" ]] Sends a Log Message to the hive as warning with the given message and the given actor
audit func(workflow string, process string, requestid string, version string, data string) bool [[ audit "CoolWorkflow" "Step1" "1234" "1.0" "Audit this user request" ]] Send an Audit Message to the Hive.
auditIt func(severity string, actor string, requestid string, message string, tags string) bool [[ auditIt "warn" "myworker" "1234" "Audit this user request" "nutz" ]] Send an Audit Message to the Hive.
openIncident func(incidentType string, message string, tags string, requestid string) bool [[ openIncident "critical" "No db conn" "db-updater" "example-request-id" ]] Sends a incident message to the hive with open
openIncidentRaw func(incidentType string, actor string, message string, status string, tags string, requestid string, incidentid string) bool [[ openIncidentRaw "critical" "mysql" "No db conn" "open" "db-updater" "example-request-id" "example-incident-id" ]] Sends a incident message to the hive with open
closeIncident func(incidentid string) bool [[ closeIncident "example-id" ]] Sends a incident message to the hive with close
closeAllIncidents func(tag string) bool [[ closeAllIncidents "db-updater" ]] Sends a incident message to the hive with closeall

audit

// TODO

func(workflow string, process string, requestid string, version string, data string) bool

The audit function …

Example with audit

[[ $v := audit ... ]]

$v contains …

auditIt

// TODO

func(severity string, actor string, requestid string, message string, tags string) bool

The auditIt function …

Example with auditIt

[[ $v := auditIt ... ]]

$v contains …

closeAllIncidents

// TODO

func(tag string) bool

The closeAllIncidents function …

Example with closeAllIncidents

[[ $v := closeAllIncidents ... ]]

$v contains …

closeIncident

// TODO

func(incidentid string) bool

The closeIncident function …

Example with closeIncident

[[ $v := closeIncident ... ]]

$v contains …

ingridCall

// TODO

func(slap string, v interface{}) (Data IngridMsg)

The ingridCall function …

Example with ingridCall

[[ $v := ingridCall ... ]]

$v contains …

ingridCallRaw

// TODO

func(slap string, data string) []byte

The ingridCallRaw function …

Example with ingridCallRaw

[[ $v := ingridCallRaw ... ]]

$v contains …

ingridExec

// TODO

func(slap string, v interface{}) (err error)

The ingridExec function …

Example with ingridExec

[[ $v := ingridExec ... ]]

$v contains …

log

// TODO

func(severity string, message string) bool

The log function …

Example with log

[[ $v := log ... ]]

$v contains …

logIt

// TODO

func(severity string, actor string, message string) bool

The logIt function …

Example with logIt

[[ $v := logIt ... ]]

$v contains …

openIncident

// TODO

func(incidentType string, message string, tags string, requestid string) bool

The openIncident function …

Example with openIncident

[[ $v := openIncident ... ]]

$v contains …

openIncidentRaw

// TODO

func(incidentType string, actor string, message string, status string, tags string, requestid string, incidentid string) bool

The openIncidentRaw function …

Example with openIncidentRaw

[[ $v := openIncidentRaw ... ]]

$v contains …