Module: UU::OperationalStats::OperationalStats
- Extended by:
- OperationalStats
- Included in:
- OperationalStats
- Defined in:
- uu_operational_stats-0.1.7/lib/uu/operational_stats/operational_stats.rb,
uu_operational_stats-0.1.7/lib/uu/operational_stats/operational_stats/operational_stats_entity_type.rb,
uu_operational_stats-0.1.7/lib/uu/operational_stats/operational_stats/operational_stats_territory_record.rb,
uu_operational_stats-0.1.7/lib/uu/operational_stats/operational_stats/operational_stats_get_territory_record_list.rb
Overview
Module Operational Stats.
Defined Under Namespace
Classes: OperationalStatsEntityType, OperationalStatsGetTerritoryRecordList, OperationalStatsTerritoryRecord
Constant Summary
- PATH =
Service path
'ues/stats/operationalstats'
Instance Method Summary (collapse)
-
- (UU::OS::REST::ResultList<OperationalStats::OperationalStatsTerritoryRecord, OperationalStats::OperationalStatsGetTerritoryRecordList>) get_territory_record_list(store_uri, criteria = nil)
Returns a list of territory stats records from the specified Stats Store.
Instance Method Details
- (UU::OS::REST::ResultList<OperationalStats::OperationalStatsTerritoryRecord, OperationalStats::OperationalStatsGetTerritoryRecordList>) get_territory_record_list(store_uri, criteria = nil)
Returns a list of territory stats records from the specified Stats Store. Records are filtered, grouped and ordered by the query criteria. Result list cannot be paged. The maximum number of records returned is 10,000. In case of exceeding the limit, an exception is thrown.
47 48 49 50 51 52 53 54 55 56 57 |
# File 'uu_operational_stats-0.1.7/lib/uu/operational_stats/operational_stats.rb', line 47 def get_territory_record_list(store_uri, criteria = nil) svc = UU::OS::REST::RemoteClient.new(OperationalStats) dto = OperationalStats::OperationalStatsGetTerritoryRecordList.new(criteria) svc.add_parameter('timeFrom', dto.time_from) svc.add_parameter('timeTo', dto.time_to) svc.add_parameter('query', dto.query) UU::OS::QoS::QoSHandler.auto_retry do res = svc.get('getTerritoryRecordList', store_uri) return UU::OS::REST::ResultList.new(OperationalStats::OperationalStatsGetTerritoryRecordList, OperationalStats::OperationalStatsTerritoryRecord, res) end end |