anchor.diff:  	Type = "AAAAccessUsage",
   	Status = "received",
   	F = fun({Milliseconds, N, P, Node, {ServerIP, ServerPort},
  -					{ClientIP, ClientPort}, AccessType,
  +					{ClientIP, ClientPort}, EventType,
   					RequestAttributes, ResponseAttributes}, Acc) ->
  -				ID = "access-" ++ integer_to_list(Milliseconds)
  +				ID = "auth-" ++ integer_to_list(Milliseconds)
   						++ integer_to_list(N),
   				Href = "/usageManagement/v1/usage/" ++ ID,
   				Date = ocs_log:iso8601(Milliseconds),
  
positive.code: 				end,
  				ServerAddress = inet:ntoa(ServerIP),
  				ClientAddress = inet:ntoa(ClientIP),
  				AccessChars = [{struct, [{name, "protocol"}, {value, Protocol}]},
  						{struct, [{name, "node"}, {value, atom_to_list(Node)}]},
  						{struct, [{name, "serverAddress"}, {value, ServerAddress}]},
  						{struct, [{name, "serverPort"}, {value, ServerPort}]},
  						{struct, [{name, "clientAddress"}, {value, ClientAddress}]},
  						{struct, [{name, "clientPort"}, {value, ClientPort}]},
  						{struct, [{name, "type"}, {value, atom_to_list(AccessType)}]}],
  				RequestChars = usage_characteristics(RequestAttributes),
  				ResponseChars = usage_characteristics(ResponseAttributes),
  				UsageChars = AccessChars ++ RequestChars ++ ResponseChars,
  				JsonObj = {struct, [{id, ID}, {href, Href},
  						{date, Date}, {type, Type}, {status, Status},
  						{usageSpecification, UsageSpec},
  
negative.code: 					{content_range, ContentRange}],
  			{ok, Headers, Body}
  	end;
  get_usage([{"type", "AAAAccountingUsage"}]) ->
  	{ok, MaxItems} = application:get_env(ocs, rest_page_size),
  	case ocs_log:last(ocs_acct, MaxItems) of
  		{error, _} ->
  			{error, 404};
  		{NewCount, Events} ->
  			JsonObj = usage_acct_auth(Events),
  			JsonArray = {array, JsonObj},
  			Body = mochijson:encode(JsonArray),
  			ContentRange = "items 1-" ++ integer_to_list(NewCount) ++ "/*",
  			Headers = [{content_type, "application/json"},
  					{content_range, ContentRange}],
  			{ok, Headers, Body}
  	end;
  get_usage(_Query) ->
  	{error, 404}.
  
  