Galileo

This version is in Beta, there may be issues we're still working out.

Reports

Reports Overview

{
  "id": "foo",
String

Unique identifier for the individual report.

  "name": "foo",
String

Display name for Report.

  "slug": "foo",
String

Slugified representation of the Display Name for the report.

  "default": true,
Boolean

Boolean denoting whether the Report is the initial report loaded when viewing the Environment reports.

  dataRows: [
Array

List of rows to be displayed within the UI.

    {
    { ... }
Object

Report Data Row

      "slug": "foo",
String

Slugified representation of the Display Name for the report data row.

      "enabled": true
Boolean

Boolean denoting whether report data row is to be shown within the UI.

    }
  ]
  "grouping": "foo",
String

Comma delimited string composed of ALF fields in dot notation form (i.e. har.log.entries.request.host).

  filters: [
Array

List of report filters

    {
    { ... }
Object

Filter

      "dimension": "foo",
String

Dimension

      "operator": "foo",
String

Operator

      "value": "foo"
String

Value

    }
  ]
}

Environment Reports List

Open in API Explorer
GET /environments/{environmentId}/reports

The Environment Reports List endpoint returns an array of reports contained within the specified environment.

Example Request

Format:
curl --request GET \
  --url 'https://api.galileo.mashape.com/environments/foo/reports?sort=foo&page=256&pageSize=256' \
  --header 'accept: application/json' \
  --header 'service-token: YOUR API KEY HERE'
require 'uri'
require 'net/http'

url = URI("https://api.galileo.mashape.com/environments/foo/reports?sort=foo&page=256&pageSize=256")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["accept"] = 'application/json'
request["service-token"] = 'YOUR API KEY HERE'

response = http.request(request)
puts response.read_body
var http = require("https");

var options = {
  "method": "GET",
  "hostname": "api.galileo.mashape.com",
  "port": null,
  "path": "/environments/foo/reports?sort=foo&page=256&pageSize=256",
  "headers": {
    "accept": "application/json",
    "service-token": "YOUR API KEY HERE"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
import http.client

conn = http.client.HTTPSConnection("api.galileo.mashape.com")

headers = {
    'accept': "application/json",
    'service-token': "YOUR API KEY HERE"
    }

conn.request("GET", "/environments/foo/reports?sort=foo&page=256&pageSize=256", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.galileo.mashape.com/environments/foo/reports?sort=foo&page=256&pageSize=256",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => array(
    "accept: application/json",
    "service-token: YOUR API KEY HERE"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://api.galileo.mashape.com/environments/foo/reports?sort=foo&page=256&pageSize=256"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("accept", "application/json")
	req.Header.Add("service-token", "YOUR API KEY HERE")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Path Parameters

Name Type Required Description Example
environmentId String Required

The unique identifier (ID or Slug) of the desired environment.

foo

Query Parameters

Name Type Required Description Example
sort String Optional

Returns results sorted by field, prepend field with - for descending results.

foo
page Integer (int32) Optional

Returns results of the specified page index

256
pageSize Integer (int32) Optional

The number of results to return per page up to a maximum of 100. Defaults to 15

256

Responses

200 OK

Array containing the desired environment reports.

Reports Report success
{
  results: [
Array

Results

    {
    { ... }
Object

Report List Item

      "id": "foo",
String

Unique identifier for the individual report.

      "name": "foo",
String

Display name for Report.

      "slug": "foo"
String

Slugified representation of the Display Name for the report.

    }
  ]
  "totalCount": 42.0,
Number

Total number of ALFs within the Environment

  "currentPage": 42.0
Number

Current page of results

}
default Default

Unexpected error

Stats Error
{
  "code": 42.0,
Number

Code

  "message": "foo",
String

Message

  fields: [
Array

Returns array of field errors upon validation error.

    {
    { ... }
Object

Field Error

      "name": "foo",
String

Field name with error.

      "errors": [
    "foo",
    "foo",
    "foo"
  ]
Array

Array of error messages for the field.

    }
  ]
}

Create Report

Open in API Explorer
POST /environments/{environmentId}/reports

The Create Report endpoint takes report configuration details and returns the newly created report object. This endpoint requires authentication.

Example Request

Format:
curl --request POST \
  --url https://api.galileo.mashape.com/environments/foo/reports \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --header 'service-token: YOUR API KEY HERE' \
  --data '{"name":"foo","default":true,"grouping":"foo","filters":[{"dimension":"foo","operator":"foo","value":"foo"}],"dataRows":["foo","foo","foo"]}'
require 'uri'
require 'net/http'

url = URI("https://api.galileo.mashape.com/environments/foo/reports")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Post.new(url)
request["accept"] = 'application/json'
request["service-token"] = 'YOUR API KEY HERE'
request["content-type"] = 'application/json'
request.body = "{\"name\":\"foo\",\"default\":true,\"grouping\":\"foo\",\"filters\":[{\"dimension\":\"foo\",\"operator\":\"foo\",\"value\":\"foo\"}],\"dataRows\":[\"foo\",\"foo\",\"foo\"]}"

response = http.request(request)
puts response.read_body
var http = require("https");

var options = {
  "method": "POST",
  "hostname": "api.galileo.mashape.com",
  "port": null,
  "path": "/environments/foo/reports",
  "headers": {
    "accept": "application/json",
    "service-token": "YOUR API KEY HERE",
    "content-type": "application/json"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({ name: 'foo',
  default: true,
  grouping: 'foo',
  filters: [ { dimension: 'foo', operator: 'foo', value: 'foo' } ],
  dataRows: [ 'foo', 'foo', 'foo' ] }));
req.end();
import http.client

conn = http.client.HTTPSConnection("api.galileo.mashape.com")

payload = "{\"name\":\"foo\",\"default\":true,\"grouping\":\"foo\",\"filters\":[{\"dimension\":\"foo\",\"operator\":\"foo\",\"value\":\"foo\"}],\"dataRows\":[\"foo\",\"foo\",\"foo\"]}"

headers = {
    'accept': "application/json",
    'service-token': "YOUR API KEY HERE",
    'content-type': "application/json"
    }

conn.request("POST", "/environments/foo/reports", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.galileo.mashape.com/environments/foo/reports",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{\"name\":\"foo\",\"default\":true,\"grouping\":\"foo\",\"filters\":[{\"dimension\":\"foo\",\"operator\":\"foo\",\"value\":\"foo\"}],\"dataRows\":[\"foo\",\"foo\",\"foo\"]}",
  CURLOPT_HTTPHEADER => array(
    "accept: application/json",
    "content-type: application/json",
    "service-token: YOUR API KEY HERE"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://api.galileo.mashape.com/environments/foo/reports"

	payload := strings.NewReader("{\"name\":\"foo\",\"default\":true,\"grouping\":\"foo\",\"filters\":[{\"dimension\":\"foo\",\"operator\":\"foo\",\"value\":\"foo\"}],\"dataRows\":[\"foo\",\"foo\",\"foo\"]}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("accept", "application/json")
	req.Header.Add("service-token", "YOUR API KEY HERE")
	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Path Parameters

Name Type Required Description Example
environmentId String Required

The unique identifier (ID or Slug) of the desired environment.

foo

Request Body

Name Type Required Description Example
body Object Required
{
  "name": "foo",
String

Display name for the report, slug is generated from this value.

  "default": true,
Boolean

Boolean denoting whether the Report is the initial report loaded when viewing the Environment reports.

  "grouping": "foo",
String

Comma delimited string composed of ALF fields in dot notation form (i.e. har.log.entries.request.host).

  filters: [
Array

List of report filters

    {
    { ... }
Object

Filter

      "dimension": "foo",
String

Dimension

      "operator": "foo",
String

Operator

      "value": "foo"
String

Value

    }
  ]
  "dataRows": [
    "foo",
    "foo",
    "foo"
  ]
Array

List of string slugs representing enabled data row columns.

}

Responses

200 OK

Success Response

Reports Report success2
{
  results: [
Array

Results

    {
    { ... }
Object

Report

      "id": "foo",
String

Unique identifier for the individual report.

      "name": "foo",
String

Display name for Report.

      "slug": "foo",
String

Slugified representation of the Display Name for the report.

      "default": true,
Boolean

Boolean denoting whether the Report is the initial report loaded when viewing the Environment reports.

      dataRows: [
Array

List of rows to be displayed within the UI.

        {
        { ... }
Object

Report Data Row

          "slug": "foo",
String

Slugified representation of the Display Name for the report data row.

          "enabled": true
Boolean

Boolean denoting whether report data row is to be shown within the UI.

        }
      ]
      "grouping": "foo",
String

Comma delimited string composed of ALF fields in dot notation form (i.e. har.log.entries.request.host).

      filters: [
Array

List of report filters

        {
        { ... }
Object

Filter

          "dimension": "foo",
String

Dimension

          "operator": "foo",
String

Operator

          "value": "foo"
String

Value

        }
      ]
    }
  ]
}
default Default

Unexpected error

Stats Error
{
  "code": 42.0,
Number

Code

  "message": "foo",
String

Message

  fields: [
Array

Returns array of field errors upon validation error.

    {
    { ... }
Object

Field Error

      "name": "foo",
String

Field name with error.

      "errors": [
    "foo",
    "foo",
    "foo"
  ]
Array

Array of error messages for the field.

    }
  ]
}

Report

Open in API Explorer
GET /environments/{environmentId}/reports/{reportId}

Returns a single Report, specified by the reportId parameter for the desired Environment specified by the environmentId parameter.

Example Request

Format:
curl --request GET \
  --url https://api.galileo.mashape.com/environments/foo/reports/foo \
  --header 'accept: application/json' \
  --header 'service-token: YOUR API KEY HERE'
require 'uri'
require 'net/http'

url = URI("https://api.galileo.mashape.com/environments/foo/reports/foo")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["accept"] = 'application/json'
request["service-token"] = 'YOUR API KEY HERE'

response = http.request(request)
puts response.read_body
var http = require("https");

var options = {
  "method": "GET",
  "hostname": "api.galileo.mashape.com",
  "port": null,
  "path": "/environments/foo/reports/foo",
  "headers": {
    "accept": "application/json",
    "service-token": "YOUR API KEY HERE"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
import http.client

conn = http.client.HTTPSConnection("api.galileo.mashape.com")

headers = {
    'accept': "application/json",
    'service-token': "YOUR API KEY HERE"
    }

conn.request("GET", "/environments/foo/reports/foo", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.galileo.mashape.com/environments/foo/reports/foo",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => array(
    "accept: application/json",
    "service-token: YOUR API KEY HERE"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://api.galileo.mashape.com/environments/foo/reports/foo"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("accept", "application/json")
	req.Header.Add("service-token", "YOUR API KEY HERE")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Path Parameters

Name Type Required Description Example
environmentId String Required

The unique identifier (ID or Slug) of the desired environment.

foo
reportId String Required

The unique identifier (ID or Slug) of the desired report.

foo

Responses

200 OK

Individual report

Reports Report success23
{
  results: [
Array

Results

    {
    { ... }
Object

Report

      "id": "foo",
String

Unique identifier for the individual report.

      "name": "foo",
String

Display name for Report.

      "slug": "foo",
String

Slugified representation of the Display Name for the report.

      "default": true,
Boolean

Boolean denoting whether the Report is the initial report loaded when viewing the Environment reports.

      dataRows: [
Array

List of rows to be displayed within the UI.

        {
        { ... }
Object

Report Data Row

          "slug": "foo",
String

Slugified representation of the Display Name for the report data row.

          "enabled": true
Boolean

Boolean denoting whether report data row is to be shown within the UI.

        }
      ]
      "grouping": "foo",
String

Comma delimited string composed of ALF fields in dot notation form (i.e. har.log.entries.request.host).

      filters: [
Array

List of report filters

        {
        { ... }
Object

Filter

          "dimension": "foo",
String

Dimension

          "operator": "foo",
String

Operator

          "value": "foo"
String

Value

        }
      ]
    }
  ]
}
default Default

Unexpected error

Stats Error
{
  "code": 42.0,
Number

Code

  "message": "foo",
String

Message

  fields: [
Array

Returns array of field errors upon validation error.

    {
    { ... }
Object

Field Error

      "name": "foo",
String

Field name with error.

      "errors": [
    "foo",
    "foo",
    "foo"
  ]
Array

Array of error messages for the field.

    }
  ]
}

Update Report

Open in API Explorer
PUT /environments/{environmentId}/reports/{reportId}

The Update Report endpoint updates a single Report, specified by the reportId parameter with the details described in the body payload.

Example Request

Format:
curl --request PUT \
  --url https://api.galileo.mashape.com/environments/foo/reports/foo \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --header 'service-token: YOUR API KEY HERE' \
  --data '{"name":"foo","default":true,"grouping":"foo","filters":[{"dimension":"foo","operator":"foo","value":"foo"}],"dataRows":["foo","foo","foo"]}'
require 'uri'
require 'net/http'

url = URI("https://api.galileo.mashape.com/environments/foo/reports/foo")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Put.new(url)
request["accept"] = 'application/json'
request["service-token"] = 'YOUR API KEY HERE'
request["content-type"] = 'application/json'
request.body = "{\"name\":\"foo\",\"default\":true,\"grouping\":\"foo\",\"filters\":[{\"dimension\":\"foo\",\"operator\":\"foo\",\"value\":\"foo\"}],\"dataRows\":[\"foo\",\"foo\",\"foo\"]}"

response = http.request(request)
puts response.read_body
var http = require("https");

var options = {
  "method": "PUT",
  "hostname": "api.galileo.mashape.com",
  "port": null,
  "path": "/environments/foo/reports/foo",
  "headers": {
    "accept": "application/json",
    "service-token": "YOUR API KEY HERE",
    "content-type": "application/json"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({ name: 'foo',
  default: true,
  grouping: 'foo',
  filters: [ { dimension: 'foo', operator: 'foo', value: 'foo' } ],
  dataRows: [ 'foo', 'foo', 'foo' ] }));
req.end();
import http.client

conn = http.client.HTTPSConnection("api.galileo.mashape.com")

payload = "{\"name\":\"foo\",\"default\":true,\"grouping\":\"foo\",\"filters\":[{\"dimension\":\"foo\",\"operator\":\"foo\",\"value\":\"foo\"}],\"dataRows\":[\"foo\",\"foo\",\"foo\"]}"

headers = {
    'accept': "application/json",
    'service-token': "YOUR API KEY HERE",
    'content-type': "application/json"
    }

conn.request("PUT", "/environments/foo/reports/foo", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.galileo.mashape.com/environments/foo/reports/foo",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => "{\"name\":\"foo\",\"default\":true,\"grouping\":\"foo\",\"filters\":[{\"dimension\":\"foo\",\"operator\":\"foo\",\"value\":\"foo\"}],\"dataRows\":[\"foo\",\"foo\",\"foo\"]}",
  CURLOPT_HTTPHEADER => array(
    "accept: application/json",
    "content-type: application/json",
    "service-token: YOUR API KEY HERE"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://api.galileo.mashape.com/environments/foo/reports/foo"

	payload := strings.NewReader("{\"name\":\"foo\",\"default\":true,\"grouping\":\"foo\",\"filters\":[{\"dimension\":\"foo\",\"operator\":\"foo\",\"value\":\"foo\"}],\"dataRows\":[\"foo\",\"foo\",\"foo\"]}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("accept", "application/json")
	req.Header.Add("service-token", "YOUR API KEY HERE")
	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Path Parameters

Name Type Required Description Example
environmentId String Required

The unique identifier (ID or Slug) of the desired environment.

foo
reportId String Required

The unique identifier (ID or Slug) of the desired report.

foo

Request Body

Name Type Required Description Example
body Object Required

Body payload

{
  "name": "foo",
String

Display name for the report, slug is generated from this value.

  "default": true,
Boolean

Boolean denoting whether the Report is the initial report loaded when viewing the Environment reports.

  "grouping": "foo",
String

Comma delimited string composed of ALF fields in dot notation form (i.e. har.log.entries.request.host).

  filters: [
Array

List of report filters

    {
    { ... }
Object

Filter

      "dimension": "foo",
String

Dimension

      "operator": "foo",
String

Operator

      "value": "foo"
String

Value

    }
  ]
  "dataRows": [
    "foo",
    "foo",
    "foo"
  ]
Array

List of string slugs representing enabled data row columns.

}

Responses

200 OK

Update report success response

Reports Report success234
{
  results: [
Array

Results

    {
    { ... }
Object

Report

      "id": "foo",
String

Unique identifier for the individual report.

      "name": "foo",
String

Display name for Report.

      "slug": "foo",
String

Slugified representation of the Display Name for the report.

      "default": true,
Boolean

Boolean denoting whether the Report is the initial report loaded when viewing the Environment reports.

      dataRows: [
Array

List of rows to be displayed within the UI.

        {
        { ... }
Object

Report Data Row

          "slug": "foo",
String

Slugified representation of the Display Name for the report data row.

          "enabled": true
Boolean

Boolean denoting whether report data row is to be shown within the UI.

        }
      ]
      "grouping": "foo",
String

Comma delimited string composed of ALF fields in dot notation form (i.e. har.log.entries.request.host).

      filters: [
Array

List of report filters

        {
        { ... }
Object

Filter

          "dimension": "foo",
String

Dimension

          "operator": "foo",
String

Operator

          "value": "foo"
String

Value

        }
      ]
    }
  ]
}
default Default

Unexpected error

Stats Error
{
  "code": 42.0,
Number

Code

  "message": "foo",
String

Message

  fields: [
Array

Returns array of field errors upon validation error.

    {
    { ... }
Object

Field Error

      "name": "foo",
String

Field name with error.

      "errors": [
    "foo",
    "foo",
    "foo"
  ]
Array

Array of error messages for the field.

    }
  ]
}

Delete Report

Open in API Explorer
DELETE /environments/{environmentId}/reports/{reportId}

The Delete Report endpoint deletes a single Report, specified by the reportId parameter.

Example Request

Format:
curl --request DELETE \
  --url https://api.galileo.mashape.com/environments/foo/reports/foo \
  --header 'accept: application/json' \
  --header 'service-token: YOUR API KEY HERE'
require 'uri'
require 'net/http'

url = URI("https://api.galileo.mashape.com/environments/foo/reports/foo")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Delete.new(url)
request["accept"] = 'application/json'
request["service-token"] = 'YOUR API KEY HERE'

response = http.request(request)
puts response.read_body
var http = require("https");

var options = {
  "method": "DELETE",
  "hostname": "api.galileo.mashape.com",
  "port": null,
  "path": "/environments/foo/reports/foo",
  "headers": {
    "accept": "application/json",
    "service-token": "YOUR API KEY HERE"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
import http.client

conn = http.client.HTTPSConnection("api.galileo.mashape.com")

headers = {
    'accept': "application/json",
    'service-token': "YOUR API KEY HERE"
    }

conn.request("DELETE", "/environments/foo/reports/foo", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.galileo.mashape.com/environments/foo/reports/foo",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
  CURLOPT_HTTPHEADER => array(
    "accept: application/json",
    "service-token: YOUR API KEY HERE"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://api.galileo.mashape.com/environments/foo/reports/foo"

	req, _ := http.NewRequest("DELETE", url, nil)

	req.Header.Add("accept", "application/json")
	req.Header.Add("service-token", "YOUR API KEY HERE")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Path Parameters

Name Type Required Description Example
environmentId String Required

The unique identifier (ID or Slug) of the desired environment.

foo
reportId String Required

The unique identifier (ID or Slug) of the desired report.

foo

Responses

204 No Content

No Content

(Empty Response)
default Default

Unexpected error

Stats Error
{
  "code": 42.0,
Number

Code

  "message": "foo",
String

Message

  fields: [
Array

Returns array of field errors upon validation error.

    {
    { ... }
Object

Field Error

      "name": "foo",
String

Field name with error.

      "errors": [
    "foo",
    "foo",
    "foo"
  ]
Array

Array of error messages for the field.

    }
  ]
}

Report Results

Open in API Explorer
GET /environments/{environmentId}/reports/{reportId}/results

The Report Results endpoint provides histogram and tabular data for a single Report, specified by the reportId parameter.

Example Request

Format:
curl --request GET \
  --url 'https://api.galileo.mashape.com/environments/foo/reports/foo/results?from=&to=&filters=&sort=foo&interval=foo&chartValue=&page=256&pageSize=256' \
  --header 'accept: application/json' \
  --header 'service-token: YOUR API KEY HERE'
require 'uri'
require 'net/http'

url = URI("https://api.galileo.mashape.com/environments/foo/reports/foo/results?from=&to=&filters=&sort=foo&interval=foo&chartValue=&page=256&pageSize=256")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["accept"] = 'application/json'
request["service-token"] = 'YOUR API KEY HERE'

response = http.request(request)
puts response.read_body
var http = require("https");

var options = {
  "method": "GET",
  "hostname": "api.galileo.mashape.com",
  "port": null,
  "path": "/environments/foo/reports/foo/results?from=&to=&filters=&sort=foo&interval=foo&chartValue=&page=256&pageSize=256",
  "headers": {
    "accept": "application/json",
    "service-token": "YOUR API KEY HERE"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
import http.client

conn = http.client.HTTPSConnection("api.galileo.mashape.com")

headers = {
    'accept': "application/json",
    'service-token': "YOUR API KEY HERE"
    }

conn.request("GET", "/environments/foo/reports/foo/results?from=&to=&filters=&sort=foo&interval=foo&chartValue=&page=256&pageSize=256", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.galileo.mashape.com/environments/foo/reports/foo/results?from=&to=&filters=&sort=foo&interval=foo&chartValue=&page=256&pageSize=256",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => array(
    "accept: application/json",
    "service-token: YOUR API KEY HERE"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://api.galileo.mashape.com/environments/foo/reports/foo/results?from=&to=&filters=&sort=foo&interval=foo&chartValue=&page=256&pageSize=256"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("accept", "application/json")
	req.Header.Add("service-token", "YOUR API KEY HERE")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Path Parameters

Name Type Required Description Example
environmentId String Required

The unique identifier (ID or Slug) of the desired environment.

foo
reportId String Required

The unique identifier (ID or Slug) of the desired report.

foo

Query Parameters

Name Type Required Description Example
from Integer (UNIX timestamp) Optional

Returns results with a creation timestamp greater than the specified timestamp.

to Integer (UNIX timestamp) Optional

Returns results with a creation timestamp less than the specified timestamp.

filters String (Base64 Encoded JSON Array) Optional

Array of Report Filters.

sort String Optional

Returns results sorted by field, prepend field with - for descending results.

foo
interval String Optional

Returns results grouped by interval rate, possible values are minute, day, hour, month

foo
chartValue String (function(type)) Optional

Returns histogram results based on value given, possible values are count(request), avg(latency), avg(request.bodySize), avg(response.bodySize)

page Integer (int32) Optional

Returns results of the specified page index

256
pageSize Integer (int32) Optional

The number of results to return per page up to a maximum of 100. Defaults to 15

256

Responses

200 OK

Report histogram and tabular data

Reports Report success2345
{
  "results": {
  "results": { ... }
Object

Results

    columns: [
Array

Tabular column cells

      {
      { ... }
Object

Column

        "dimension": "foo",
String

Dimension

        "operator": "foo",
String

Operator

        "value": "foo"
String

Value

      }
    ]
    histogram: [
Array

Array of histogram points across a given interval

      {
      { ... }
Object

Histogram Point

        "timestamp": null,
Integer (Unix timestamp)

Timestamp

        "date": null,
String (Date-time)

Date

        "value": 42.0
Number

Value

      }
    ]
  },
  "totalCount": 42.0,
Number

Total number of ALFs within the Environment

  "currentPage": 42.0
Number

Current page of results

}
default Default

Unexpected error

Stats Error
{
  "code": 42.0,
Number

Code

  "message": "foo",
String

Message

  fields: [
Array

Returns array of field errors upon validation error.

    {
    { ... }
Object

Field Error

      "name": "foo",
String

Field name with error.

      "errors": [
    "foo",
    "foo",
    "foo"
  ]
Array

Array of error messages for the field.

    }
  ]
}

Report CSV

Open in API Explorer
GET /environments/{environmentId}/reports/{reportId}/csv

The Report CSV endpoint generates a CSV representation of a single Report, specified by the reportId parameter.

Example Request

Format:
curl --request GET \
  --url 'https://api.galileo.mashape.com/environments/foo/reports/foo/csv?from=&to=&filters=&sort=foo' \
  --header 'accept: application/json' \
  --header 'service-token: YOUR API KEY HERE'
require 'uri'
require 'net/http'

url = URI("https://api.galileo.mashape.com/environments/foo/reports/foo/csv?from=&to=&filters=&sort=foo")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["accept"] = 'application/json'
request["service-token"] = 'YOUR API KEY HERE'

response = http.request(request)
puts response.read_body
var http = require("https");

var options = {
  "method": "GET",
  "hostname": "api.galileo.mashape.com",
  "port": null,
  "path": "/environments/foo/reports/foo/csv?from=&to=&filters=&sort=foo",
  "headers": {
    "accept": "application/json",
    "service-token": "YOUR API KEY HERE"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
import http.client

conn = http.client.HTTPSConnection("api.galileo.mashape.com")

headers = {
    'accept': "application/json",
    'service-token': "YOUR API KEY HERE"
    }

conn.request("GET", "/environments/foo/reports/foo/csv?from=&to=&filters=&sort=foo", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.galileo.mashape.com/environments/foo/reports/foo/csv?from=&to=&filters=&sort=foo",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => array(
    "accept: application/json",
    "service-token: YOUR API KEY HERE"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://api.galileo.mashape.com/environments/foo/reports/foo/csv?from=&to=&filters=&sort=foo"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("accept", "application/json")
	req.Header.Add("service-token", "YOUR API KEY HERE")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Path Parameters

Name Type Required Description Example
environmentId String Required

The unique identifier (ID or Slug) of the desired environment.

foo
reportId String Required

The unique identifier (ID or Slug) of the desired report.

foo

Query Parameters

Name Type Required Description Example
from Integer (UNIX timestamp) Optional

Returns results with a creation timestamp greater than the specified timestamp.

to Integer (UNIX timestamp) Optional

Returns results with a creation timestamp less than the specified timestamp.

filters String (Base64 Encoded JSON Array) Optional

Array of Report Filters.

sort String Optional

Returns results sorted by field, prepend field with - for descending results.

foo

Responses

200 OK

CSV of Report

(Empty Response)
default Default

Unexpected error

Stats Error
{
  "code": 42.0,
Number

Code

  "message": "foo",
String

Message

  fields: [
Array

Returns array of field errors upon validation error.

    {
    { ... }
Object

Field Error

      "name": "foo",
String

Field name with error.

      "errors": [
    "foo",
    "foo",
    "foo"
  ]
Array

Array of error messages for the field.

    }
  ]
}