Kaa releases
Shortcuts
Skip to end of metadata
Go to start of metadata

The Administration UI guide assumes that Kaa has been already installed and Kaa UI is available from the web. If it's not the case look at the Installation guide for more info.

The Administration UI guide provides instructions and explanations on Kaa administration. The instructions were created on the basis of Kaa Sandbox system.

Kaa user types

The following three user types are available in Kaa:

  • Kaa admin
  • Tenant admin
  • Tenant developer

Kaa Sandbox provides default credentials for all three types of Kaa users.

Kaa admin

The Kaa admin is the highest level administrator of Kaa. He is able to create, edit, and delete tenant admins. 

To log into the Kaa UI as a Kaa admin, use the default Sandbox username/password for the Kaa admin - kaa/kaa123.

To customize the account, click Settings -> Profile in the upper right corner of the window and change the first/last name and e-mail to the private ones. Click Save to apply the changes.
Note that Email is a mandatory field.

To set a private password, click Settings -> Change password and fill in the fields as required.

Configuring general settings

General settings page allows to configure application title and application base URL parameters. These parameters used for sending email notifications for registered users.

To customize the general settings, click Settings -> General Settings and fill in the fields as required.

Configuring outgoing mail settings

Outgoing mail settings are used to send emails to newly created users with the information about their passwords, as well as for sending other notifications.

To customize the outgoing mail settings, click Settings -> Outgoing Mail Settings and fill in the fields according to your SMTP mail server configuration.

Managing tenant admins

The Tenants window, which is the starting window for a Kaa admin, displays the list of tenant admins. A Kaa admin can edit a tenant admin's name/e-mail and delete tenant admins from the system.

 

To view a tenant admin's details, select the tenant admin either from the list or from the navigation panel on the left side.

To create a new tenant admin, click Add new tenant and then fill in all the required fields. Click Add to apply the changes.

The newly created tenant admin will receive an e-mail with his or her login to Kaa web UI credentials window.

Tenant admin

The tenant admin is a Kaa user who is responsible for managing applications, users and event class families.

To log into the Kaa UI as a tenant admin, use the default Sandbox username/password for the tenant admin - admin/admin123.

To customize the account, click Settings -> Profile and change the first/last name and e-mail to private ones.

To set a private password, click Settings -> Change password and fill in the fields as required.

Managing applications

As a tenant admin, you can add, edit and delete applications.

To create a new application, do the following:

  1. Open the Applications window by clicking the corresponding link on the navigation panel.
  2. Click Add new application at the top of the window.
  3. Enter the title of your application and then click Add.

NOTE: If you open the Application details window of the newly created application (by clicking this application on either the Applications menu on the navigation panel or the Applications window), you will notice that the Application Token field has been filled in automatically. This is a unique auto-generated application ID.

To edit the application, open the Application details window by clicking the application name either on the navigation panel or in the list in the Applications window.

To delete the application, open the Applications window and click Delete next to the application name.

Managing users

The tenant admin can add, edit and delete users.

To add a user, do the following:

  1. Open to the Users window and click Add new user
  2. In the Add new user window that opens, enter the username and email.
  3. In the Account role field, select Tenant developer.

To edit a user's profile, open the User details window by clicking the user's name either on the navigation panel or in the list in the Users window..

To delete a user, open the Users window and click Delete next to the user's name.

Managing event class families

To use the Kaa  events feature for one or more applications, the tenant admin should create an event class family (ECF). Each ECF should be described using the Avro format.  

To create a new ECF, do the following:

  1. Open the Event class families window by clicking the corresponding link on the navigation panel.
  2. In the Event class families window, click Add new ECF.
  3. In the Add new ECF window that opens, fill in all the required fields and then click Add.
    Note that the namespace and class name values should be unique.

After saving the new ECF, you will be redirected to the Event class family details window. In this window you can add a shema by clicking Add schema under the Schemas table. Schemas should be written in the Avro format as a separate file and describe how the event classes should be grouped depending on subject areas.

NOTE: More than one schema can be added to an ECF.

A unique version number is assigned to a schema after its creation and then the schema appears as a clickable line in the Schemas table. To review the ECF schema details, click the appropriate schema line in the Schemas table. Each schema automatically splits into event classes. A full qualifier name, schema and type are shown for each event class in the table with the same name.

Tenant developer

The tenant developer is a user that creates SDKs based on customer requirements. Tenant developers set the Kaa schemas, group endpoints, and control notification processes.

To log into the Kaa UI as a tenant developer, use the default Sandbox credentials for the tenant developer - devuser/devuser123.

To customize this account, click Settings -> Profile and change the first/last name and e-mail to private ones.

To set a private password, click Settings -> Change password.

NOTE: A tenant developer is able to work only with those applications which have been created by his tenant admin. The list of available applications is displayed in the Applications window, as well as on the navigation panel under the Applications menu.

Generating SDK

To create an SDK for a particular application, do the following:

  1. Under the Applications menu on the navigation panel, select the application.
  2. In the Application details window that opens, click Generate SDK.
  3. In the Generate SDK window that opens, select all necessary schema versions and target platforms that will be compatible with the endpoints.
  4. To use the Kaa events feature, click Event class families and select the required event class family.
  5. Click Generate SDK to finish the setup.

Adding schemas

In Kaa, an SDK for an application is generated based on the following four schemas: profile, configuration, notification, and log. Every application has default schemas, which can be accessed from the Schema submenu in the corresponding application menu on the navigation panel.

Profile schema

The list of profile schemas created by a tenant developer for the application is shown in the Profile schemas window, which can be opened from the application menu on the navigation panel as illustrated by the following screenshot.

As a tenant developer, you can create new profile schemas for the application as follows:

  1. Create the schema in the avro format as a separate file.
  2. In the Profile schemas window for the application, click Add new schema and attach the newly created schema file.
  3. Click Add to save the schema.

If you want to review the avro schema, open the Profile schema details window by clicking the schema in the Profile schemas window.

Configuration schema

The list of configuration schemas created by a tenant developer for the application is shown in the Configuration schemas window.

As a tenant developer, you can create new configuration schemas for the application as follows:

  1. Create the schema in the avro format as a separate file.
  2. In the Configuration schemas window for the application, click Add new schema and attach the newly created schema file.
  3. Click Add to save the schema.

If you want to review the avro schema, open the Configuration schema details window by clicking the schema in the Configuration schemas window.

Notification schema

The list of notification schemas created by a tenant developer for the application is shown in the Notification schemas window.

As a tenant developer, you can create new notification schemas for the application as follows:

  1. Create the schema in the avro format as a separate file.
  2. In the Notification schemas window for the application, click Add new schema and attach the newly created schema file.
  3. Click Add to save the schema.

If you want to review the avro schema, open the Notification schema details window by clicking the schema in the Notification schemas window.

Log schema

The list of log schemas created by a tenant developer for the application is shown in the Log schemas window.

As a tenant developer, you can create new log schemas for the application as follows:

  1. Create the schema in the avro format as a separate file.
  2. In the Log schemas window for the application, click Add new schema and attach the newly created schema file.
  3. Click Add to save the schema.

If you want to review the avro schema, open the Log schema details window by clicking the schema in the Log schemas window.

Adding notification topics

Notification topics are used for grouping notifications by subject. An endpoint group will receive only those notifications which correspond to the notification topics this endpoint group is subscribed to.

To add a new notification topic to the application, do the following:

  1. Open the Notification topics window by clicking Notification topics under the application menu on the navigation panel and then click Add new notification topic.
  2. Fill in all necessary fields and then click Add.

The newly created topic will appear in the Notification topics window.

Sending notifications

To send a notification for the application, do the following:

  1. In the Notification topics, click the mail icon next to the appropriate notification topic.
  2. In the Send notification window that opens, fill in all required fields, attach the file with the notification and then click Send.

NOTE: The contents of the file should match the corresponding notification schema structure.

For example, the default Sandbox notification schema structure is the following:

The file with the following contents will match the default Sandbox notification schema.

Adding endpoint groups

Endpoint groups are created based on the profile filter and configuration.

To add a new endpoint group, do the following:

  1. Open the Endpoint groups window by clicking Endpoint groups under the application menu on the navigation panel and then click Add new endpoint group.
  2. In the Add new endpoint group window that opens, fill in the required fields and then click Add.
  3. In the Endpoint group details window that opens, add profile filters, configurations, and notifications topics to the group, if necessary.

Add profile filter to endpoint group

To add a profile filter to the endpoint group, do the following:

  1. In the Endpoint group details window, click Add profile filter.
  2. In the Profile filter window that opens, on the Draft tab, select the schema version, enter the description and filter body, and then click Save.
    NOTE: You can save the data on the Draft tab and return to update it later as many times as needed until you click Activate.
  3. Click Activate to activate the profile filter.
    All the specified information will be displayed on the Active tab.

Add configuration to endpoint group

To add a configuration to the endpoint group, do the following:

  1. In the Endpoint group details window, click Add configuration.
  2. In the Configuration window, on the Draft tab, select the schema version, enter the description and configuration body, and then click Save.
    NOTE: You can save the data on the Draft tab and return to update it later as many times as needed until you click Activate.
     
  3. Click Activate to activate the configuration.
    All the specified information will be displayed on the Active tab.

Add notification topic to endpoint group

To add a notification topic to the endpoint group, do the following:

  1. In the Endpoint group details window, under the Notification topics form, click Add notification topic. 
  2. In the Add topic to endpoint group window that opens, select the topics and click Add.
    Now all the endpoints belonging to the current group will receive notifications on these topics.


Adding event family mappings

Event family mappings are used by tenant developers to set event class families for the application and determine the actions for each class family - whether an application should be a source, a sink or both.

To view the list of ECFs which are mapped to the application, open the Event family mappings window by clicking Event family mappings under the application's menu on the navigation panel. 

To add a new mapping, do the following: In the Event family mappings window, click Add new family event mapping, then select an appropriate ECF from the drop-down list and set appropriate actions for each class of the family.

Log appenders

A tenant developer can set a log appender for a schema depending on the data storage type - a file system, MongoDB, Hadoop, CDAP or Oracle NoSQL. All created log appenders are displayed in the Log appenders window. Each schema type can have only one log appender at a time.

File appender

To create a log appender of the file system storage type, do the following:

  1. In the Log appenders window, click Add new log appender.
  2. Enter the log appender name and description, select the minimum and maximum supported schema version, select necessary log metadata fields.
  3. Set the log appender type to File.
  4. Fill in the File appender configuration form.
  5. Click Add.

MongoDB appender

To create a log appender of the MongoDB storage type, do the following:

  1. In the Log appenders window, click Add new log appender.
  2. Enter the log appender name and description, select the minimum and maximum supported schema version, select necessary log metadata fields.
  3. Set the log appender type to Mongo.
  4. Fill in the Mongo appender configuration form.
  5. Click Add.

Flume appender

To create a log appender which will be integrated with Hadoop, do the following:

  1. In the Log appenders window, click Add new log appender.
  2. Enter the log appender name and description, select the minimum and maximum supported schema version, select necessary log metadata fields.
  3. Set the log appender type to Flume.
  4. Fill in the Flume appender configuration form.
    NOTE: Flume log appenders can have either prioritized or round robin host balancing.
  5. For the prioritized host balancing, add the number of hosts which is equal to the number of Flume nodes. For every host, enter the host address, port and priority. The highest priority is 1. When choosing a server to which to save logs, an endpoint will send requests to the servers starting from the server with the highest priority.
  6. For round robin host balancing, add the number of hosts which is equal to the number of Flume nodes. For every host, enter the host address and port. When choosing a server to which to save logs, an endpoint will send requests to the servers according to the round robin algorithm.
  7. Click Add.

CDAP appender

To create a log appender which will be integrated with CDAP, do the following:

  1. In the Log appenders window, click Add new log appender.
  2. Enter the log appender name and description, select the minimum and maximum supported schema version, select necessary log metadata fields.
  3. Set the log appender type to Cdap.
  4. Fill in the CDAP appender configuration form.
  5. Click Add.

Oracle NoSQL appender

To create a log appender of the Oracle NoSQL key/value storage type, do the following:

  1. In the Log appenders window, click Add new log appender.
  2. Enter the log appender name and description, select the minimum and maximum supported schema version, select necessary log metadata fields.
  3. Set the log appender type to Oracle NoSQL.
  4. Fill in the Oracle NoSQL appender configuration form.
  5. Click Add.

Further reading

Use the following guides and references to make the most of Kaa.

GuideWhat it is for
Design referenceUse this reference to learn about features and capabilities of Kaa.
Programming guideUse this guide to create your own Kaa applications.
Contribute to KaaUse this guide to learn how to contribute to Kaa project and which code/documentation style conventions we use.

Copyright © 2014, CyberVision, Inc.

  • No labels