All URIs are relative to https://push.databox.com
Method | HTTP request | Description |
---|---|---|
data_delete | DELETE /data | |
data_metric_key_delete | DELETE /data/{metricKey} | |
data_post | POST /data | |
metrickeys_get | GET /metrickeys | |
metrickeys_post | POST /metrickeys | |
ping_get | GET /ping |
data_delete
require 'time'
require 'databox'
# setup authorization
Databox.configure do |config|
# Configure HTTP basic authorization: basicAuth
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = Databox::DefaultApi.new
begin
api_instance.data_delete
rescue Databox::ApiError => e
puts "Error when calling DefaultApi->data_delete: #{e}"
end
This returns an Array which contains the response data (nil
in this case), status code and headers.
<Array(nil, Integer, Hash)> data_delete_with_http_info
begin
data, status_code, headers = api_instance.data_delete_with_http_info
p status_code # => 2xx
p headers # => { ... }
p data # => nil
rescue Databox::ApiError => e
puts "Error when calling DefaultApi->data_delete_with_http_info: #{e}"
end
This endpoint does not need any parameter.
nil (empty response body)
- Content-Type: Not defined
- Accept: Not defined
data_metric_key_delete(metric_key)
require 'time'
require 'databox'
# setup authorization
Databox.configure do |config|
# Configure HTTP basic authorization: basicAuth
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = Databox::DefaultApi.new
metric_key = 'metric_key_example' # String |
begin
api_instance.data_metric_key_delete(metric_key)
rescue Databox::ApiError => e
puts "Error when calling DefaultApi->data_metric_key_delete: #{e}"
end
This returns an Array which contains the response data (nil
in this case), status code and headers.
<Array(nil, Integer, Hash)> data_metric_key_delete_with_http_info(metric_key)
begin
data, status_code, headers = api_instance.data_metric_key_delete_with_http_info(metric_key)
p status_code # => 2xx
p headers # => { ... }
p data # => nil
rescue Databox::ApiError => e
puts "Error when calling DefaultApi->data_metric_key_delete_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
metric_key | String |
nil (empty response body)
- Content-Type: Not defined
- Accept: Not defined
data_post(opts)
require 'time'
require 'databox'
# setup authorization
Databox.configure do |config|
# Configure HTTP basic authorization: basicAuth
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = Databox::DefaultApi.new
opts = {
push_data: [Databox::PushData.new] # Array<PushData> |
}
begin
api_instance.data_post(opts)
rescue Databox::ApiError => e
puts "Error when calling DefaultApi->data_post: #{e}"
end
This returns an Array which contains the response data (nil
in this case), status code and headers.
<Array(nil, Integer, Hash)> data_post_with_http_info(opts)
begin
data, status_code, headers = api_instance.data_post_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => nil
rescue Databox::ApiError => e
puts "Error when calling DefaultApi->data_post_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
push_data | Array<PushData> | [optional] |
nil (empty response body)
- Content-Type: application/json, application/vnd.databox.v2+json
- Accept: Not defined
metrickeys_get
require 'time'
require 'databox'
# setup authorization
Databox.configure do |config|
# Configure HTTP basic authorization: basicAuth
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = Databox::DefaultApi.new
begin
api_instance.metrickeys_get
rescue Databox::ApiError => e
puts "Error when calling DefaultApi->metrickeys_get: #{e}"
end
This returns an Array which contains the response data (nil
in this case), status code and headers.
<Array(nil, Integer, Hash)> metrickeys_get_with_http_info
begin
data, status_code, headers = api_instance.metrickeys_get_with_http_info
p status_code # => 2xx
p headers # => { ... }
p data # => nil
rescue Databox::ApiError => e
puts "Error when calling DefaultApi->metrickeys_get_with_http_info: #{e}"
end
This endpoint does not need any parameter.
nil (empty response body)
- Content-Type: Not defined
- Accept: Not defined
metrickeys_post(opts)
require 'time'
require 'databox'
# setup authorization
Databox.configure do |config|
# Configure HTTP basic authorization: basicAuth
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = Databox::DefaultApi.new
opts = {
body: { ... } # Object |
}
begin
api_instance.metrickeys_post(opts)
rescue Databox::ApiError => e
puts "Error when calling DefaultApi->metrickeys_post: #{e}"
end
This returns an Array which contains the response data (nil
in this case), status code and headers.
<Array(nil, Integer, Hash)> metrickeys_post_with_http_info(opts)
begin
data, status_code, headers = api_instance.metrickeys_post_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => nil
rescue Databox::ApiError => e
puts "Error when calling DefaultApi->metrickeys_post_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
body | Object | [optional] |
nil (empty response body)
- Content-Type: application/json, application/vnd.databox.v2+json
- Accept: Not defined
ping_get
require 'time'
require 'databox'
# setup authorization
Databox.configure do |config|
# Configure HTTP basic authorization: basicAuth
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = Databox::DefaultApi.new
begin
api_instance.ping_get
rescue Databox::ApiError => e
puts "Error when calling DefaultApi->ping_get: #{e}"
end
This returns an Array which contains the response data (nil
in this case), status code and headers.
<Array(nil, Integer, Hash)> ping_get_with_http_info
begin
data, status_code, headers = api_instance.ping_get_with_http_info
p status_code # => 2xx
p headers # => { ... }
p data # => nil
rescue Databox::ApiError => e
puts "Error when calling DefaultApi->ping_get_with_http_info: #{e}"
end
This endpoint does not need any parameter.
nil (empty response body)
- Content-Type: Not defined
- Accept: Not defined