nexosis_api 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2f9380a789d239e77f6878bd42e9e4dcb2b64d17
4
- data.tar.gz: fb52c150b9a2b535d72ec86c742c83f7d3ee1005
3
+ metadata.gz: 39c45114fbc2c2566b4b0f7962a22c17ce00d5bd
4
+ data.tar.gz: 356110f9cad638e3c144b114ae7ae7879bff4b59
5
5
  SHA512:
6
- metadata.gz: 57b071e66f509b18075801b6c017abfb52aa5d4dec29a5b462947009003265618c0cd41294b9cd63e24d6d09ecea57c7baf03a24a74ac40580241515bd9a7d77
7
- data.tar.gz: d5504612707b4589fcb9b77d45bdd97f99f8d0ea0e3476cf0e8727b99ab9e29b2373007ff1d2e01f110c97a9da356c7a7038499919669b070273a5676fc18ee3
6
+ metadata.gz: 5423c7ce18dae1ebcb53f9a554f02b92bccc46dfd6fb4dff4bc519546f1d801d5a562aaef36d84750c333a8af14b7fad428bc69b60149a316c84caed126b6b9d
7
+ data.tar.gz: 813881c20e3e2629595d2c0d9bad0fff831dc1ef9ccb3a4060ab4b300f4c07bc3caae83d6ebabf9914af4ce7afc57de41744d6403cd0a879fbd5cc0fce2a0bed
@@ -48,7 +48,7 @@ module NexosisApi
48
48
  #
49
49
  # @param dataset_name [String] name of the dataset for which to retrieve data.
50
50
  # @param page_number [Integer] zero-based page number of results to retrieve
51
- # @param page_size [Integer] Count of results to retrieve in each page (max 100).
51
+ # @param page_size [Integer] Count of results to retrieve in each page (max 1000).
52
52
  # @param query_options [Hash] options hash for limiting and projecting returned results
53
53
  # @note Query Options includes start_date as a DateTime or ISO 8601 compliant string,
54
54
  # end_date, also as a DateTime or string, and :include as an Array of strings indicating the columns to return.
@@ -66,7 +66,7 @@ module NexosisApi
66
66
  #
67
67
  # @param dataset_name [String] name of the dataset for which to retrieve data.
68
68
  # @param page_number [Integer] zero-based page number of results to retrieve
69
- # @param page_size [Integer] Count of results to retrieve in each page (max 100).
69
+ # @param page_size [Integer] Count of results to retrieve in each page (max 1000).
70
70
  # @param query_options [Hash] options hash for limiting and projecting returned results
71
71
  # @note Query Options includes start_date as a DateTime or ISO 8601 compliant string,
72
72
  # end_date, also as a DateTime or string, and :include as an Array of strings indicating the columns to return.
@@ -11,19 +11,23 @@ module NexosisApi
11
11
  # List sessions previously submitted
12
12
  #
13
13
  # @param query_options [Hash] optionally provide query parameters to limit the search of sessions.
14
+ # @param page [Integer] optionally provide a page number for paging. Defaults to 0 (first page).
15
+ # @param pageSize [Integer] optionally provide a page size to limit the total number of results. Defaults to 50, max 1000
14
16
  # @return [Array of NexosisApi::SessionResponse] with all sessions matching the query or all if no query
15
17
  # @note query parameters hash members are dataset_name, event_name, requested_before_date, and requested_after_date.
16
18
  # After and before dates refer to the session requested date.
17
19
  # @example query for just one dataset
18
20
  # sessions = NexosisApi.client.list_sessions :dataset_name => 'MyDataset'
19
- def list_sessions(query_options = {})
21
+ def list_sessions(query_options = {}, page = 0, pageSize = 50)
20
22
  sessions_url = '/sessions'
21
23
  query = {
22
24
  "dataSetName" => query_options[:dataset_name],
23
25
  "eventName" => query_options[:event_name],
24
26
  "requestedAfterDate" => query_options[:requested_after_date],
25
27
  "requestedBeforeDate" => query_options[:requested_before_date],
26
- "type" => query_options[:type]
28
+ "type" => query_options[:type],
29
+ "page" => page,
30
+ "pageSize" => pageSize
27
31
  }
28
32
  response = self.class.get(sessions_url, :headers => @headers, :query => query)
29
33
  if(response.success?)
data/nexosisapi.gemspec CHANGED
@@ -16,6 +16,6 @@ Gem::Specification.new do |spec|
16
16
  spec.require_paths = ['lib']
17
17
  spec.required_ruby_version = '>= 2.0.0'
18
18
  spec.summary = "Ruby client for working with the Nexosis API"
19
- spec.version = '1.1.0'
19
+ spec.version = '1.1.1'
20
20
  spec.metadata["yard.run"] = "yri"
21
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexosis_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nexosis,Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-12 00:00:00.000000000 Z
11
+ date: 2017-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler