Build API signature for logging to 'Azure Log Analytics'
Source:R/logger_level.R
dot-build_signature.Rd
'Azure Log Analytics' HTTP REST API documentation for 'Python' is followed to create the 'R' version of it. 'Python' version of this function is described at https://learn.microsoft.com/en-us/azure/azure-monitor/logs/data-collector-api?tabs=python#sample-requests/
Usage
.build_signature(
customer_id,
shared_key,
date,
content_length,
method,
content_type,
resource
)
Arguments
- customer_id
customer_id
of the 'Azure Log Analytics' workspace- shared_key
shared_key
of the 'Azure Log Analytics' workspace- date
date-time of logging event
- content_length
Content length of the body
- method
Only one value is expected -
POST
- content_type
Only one value is expected -
application/json
- resource
Only one value is expected -
/api/logs