Day 1 – Basics and Notify

Getting this party started!

ruleset a60x11 {
  meta {
    name "The basics of basic"
    author "Michael Grace"
    description <<
      The basics of basic
    >>
    logging on
  }

  rule my_first_kynetx_app {
    select when pageview ".*"
    {
      notify("Title of notify","Content of notify") with sticky = true;
    }
  }

}

App run on example.com with bookmarklet:

  • This app is a ruleset… also known as a set of rules.
  • Default name of generated bookmarklets, browser extensions, and app listing is based on the name set in the meta block.
  • Kynetx server logs pertinent to the execution of selected rules event’s directives because logging is turned on.
  • Clicking bookmarklet raises a pageview event to the Kynetx server in the web domain.
  • Select statement is a regular expression that gets matched against the current pages URL when the event is in the web domain
  • .* is a regular expression that matches anything so it doesn’t really matter what URL this app gets run on
  • The action block has a single action in it that puts a notification on the page with a title and body

Get the bookmarklet to try it out yourself!

About these ads
This entry was posted in Kynetx and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s