public async Task <EntityShortRepresentation> UpdateRumApplicationDetectionRuleAsync(string id, ApplicationDetectionRuleConfig body = null, CancellationToken cancellationToken = default) { var result = await GetRumApplicationDetectionUrl() .AppendPathSegment(id) .PutJsonAsync(body, cancellationToken) .ReceiveJsonWithErrorChecking <EntityShortRepresentation>() .ConfigureAwait(false); return(result); }
public async Task <EntityShortRepresentation> CreateRumApplicationDetectionRuleAsync(Positions?position = null, ApplicationDetectionRuleConfig body = null, CancellationToken cancellationToken = default) { var result = await GetRumApplicationDetectionUrl() .SetQueryParam(nameof(position), s_positionsConverter.ConvertToString(position)) .PostJsonAsync(body, cancellationToken) .ReceiveJsonWithErrorChecking <EntityShortRepresentation>() .ConfigureAwait(false); return(result); }