...
Table of Contents | ||||
---|---|---|---|---|
|
Wrangler is an operating system written in KRL for picos. Wrangler provides developers a way to programmatically and easily manage picos.
...
A user friendly way to make an HTTP request. It provides cleanup and returns the error if the returned HTTP status was not 200.
Parameter | Datatype | Required |
---|---|---|
<eci> | <string> | YES |
<mod> | ||
<func> | ||
<params> | ||
<_host> | ||
<_path> | ||
<_root_url> |
Code Block |
---|
Defactions
Events/Rules
When a rule raises an event in the postlude, it will also pass along all the attributes it received (including any attributes not used in that event) in addition to any new information that may be relevant to other rules.
Ruleset Events
installRulesets
(Domain: wrangler, Type: install_rulesets_requested)
Installs the given rulesets in the pico that receives this event.
eventAttrs:
Attribute | Datatype | Required | Additional Description |
---|---|---|---|
<rids> | <array> OR <string> | YES | The array is an array of strings, where each string represents the name of the ruleset (the RID) to be installed. You may alternatively provide a single string that is separated by semicolons. Multiple rulesets are not required. |
Directives Returned:
Code Block |
---|
send_directive("rulesets installed", { "rids": /* An array of rids that were installed*/ }); |
Raised Events:
Domain | Type | Attributes Added | ||
---|---|---|---|---|
wrangler | ruleset_added |
|
Sent Events:
None