Sha256: a61da73ca5d6fedfa9180eb646c0848607f7752668f458bca778cd9abefccb91

Contents?: true

Size: 1.04 KB

Versions: 14

Compression:

Stored size: 1.04 KB

Contents

api Execution Data
============================


With Kaya you can add data to the execution. Then you can find that data through the API by using

    /kaya/api/results/<result id>/data

This will give you the JSON (a part of the result) with the data you setted while your execution was running.

---------------------------------------

How to add execution data
============================

Basically you have to add kaya gem to your project

    require 'kaya'

Before, you have to add it to your Gemfile

    # Gemfile
    gem 'kaya'


After adding the gem to your project, you can do:

    Kaya::Custom::ExecutionData.add("my_data_key", "some value for data key")


Once the execution it is finished, you can see the values through:

    http::/host:port/kaya/api/results/<result_id>/data

And you'll see something like:

    {
      type: "result",
      _id: 1427901370053,
      status: "stopped (Inactivity Timeout reached)",
      execution_data: {
        my_data_key: "some value for data key"
      }
    }


Think about this for integration tests.

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
kaya-0.0.14 documentation/api_execution_data.md
kaya-0.0.13 documentation/api_execution_data.md
kaya-0.0.12 documentation/api_execution_data.md
kaya-0.0.11 documentation/api_execution_data.md
kaya-0.0.10 documentation/api_execution_data.md
kaya-0.0.9 documentation/api_execution_data.md
kaya-0.0.8 documentation/api_execution_data.md
kaya-0.0.7 documentation/api_execution_data.md
kaya-0.0.6 documentation/api_execution_data.md
kaya-0.0.5 documentation/api_execution_data.md
kaya-0.0.4 documentation/api_execution_data.md
kaya-0.0.3 documentation/api_execution_data.md
kaya-0.0.2 documentation/api_execution_data.md
kaya-0.0.1 documentation/api_execution_data.md