Sha256: d1d326fd47dd832e60c52d524b08523f49800f55b9365ddd31e954367db653cf
Contents?: true
Size: 1.4 KB
Versions: 9
Compression:
Stored size: 1.4 KB
Contents
# frozen_string_literal: true module DocomoNlu module Management class Log < Base self.element_name = "logs" self.prefix = "/management/v2.6/projects/:project_id/" # Format of params: # => { # => "details":[ # => {"operation":"","target":"input","query":"Hello"}, # => {"operation":"AND","target":"","query":"xx"}, # => ] # => } # operation: NOT or Empty in leading line, others are AND|OR|NOT. # target: input|output|startTopic|endTopic|userId|language|projectSpecific|responseTime_less_than|responseTime_greater_than # => It is possible to ambiguous search using "*" in the following target ( input|output|startTopic|endTopic|userId|language|projectSpecific) # query: String search within 200 characters. def download(params = {}) JSON.parse(connection.post(collection_path(prefix_options), params.to_json, self.class.headers).body) end def count(params = {}) JSON.parse(connection.post("#{collection_path(prefix_options)}/count", params.to_json, self.class.headers).body)["count"] end def all Rails.logger.debug "You shoud use 'download' or 'count' method" end def find Rails.logger.debug "You shoud use 'download' or 'count' method" end def where Rails.logger.debug "You shoud use 'download' or 'count' method" end end end end
Version data entries
9 entries across 9 versions & 1 rubygems