anchor.diff:  		get_usage/1, get_usage/2, get_usagespec/1, get_usagespec/2,
   		get_ipdr/1]).
   
  --export([query_auth/8]).
  -
   -include_lib("radius/include/radius.hrl").
   -include("ocs_log.hrl").
   
  
positive.code: %% 	`GET /usageManagement/v1/usage/{id}'
  %% 	requests.
  get_usage("auth-" ++ _ = Id, [] = _Query) ->
  	{ok, MaxItems} = application:get_env(ocs, rest_page_size),
  	try
  		["auth", TimeStamp, Serial] = string:tokens(Id, [$-]),
  		TS = list_to_integer(TimeStamp),
  		N = list_to_integer(Serial),
  		case query_auth(start, TS, TS, '_', '_', '_', '_', MaxItems) of
  			{error, _} ->
  				{error, 500};
  			{_, Events} ->
  
negative.code: 			{error, 404}
  	end;
  get_usage("acct-" ++ _ = Id, [] = _Query) ->
  	try
  		["acct", TimeStamp, Serial] = string:tokens(Id, [$-]),
  		TS = list_to_integer(TimeStamp),
  		N = list_to_integer(Serial),
  		case ocs_log:acct_query(start, TS, TS, '_', '_', '_') of
  			{error, _} ->
  				{error, 500};
  			{_, Events} ->
  