Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added general template for documenting an event.

...

Table of Contents
maxLevel34
indent15px

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.

ParameterDatatypeRequired
<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:

AttributeDatatypeRequiredAdditional Description
<rids><array> OR <string>YESThe 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:

DomainTypeAttributes Added
wranglerruleset_added


Code Block
{
"rids": /* An array of rids that were installed*/
}


Sent Events:

None