Beispiel #1
0
        public LogsClient(TokenCredential credential, LogsClientOptions options)
        {
            Argument.AssertNotNull(credential, nameof(credential));

            options ??= new LogsClientOptions();

            _clientDiagnostics = new ClientDiagnostics(options);
            _pipeline          = HttpPipelineBuilder.Build(options, new BearerTokenAuthenticationPolicy(credential, "https://api.loganalytics.io//.default"));
            _queryClient       = new QueryRestClient(_clientDiagnostics, _pipeline);
        }
 internal LogsBatchQuery(ClientDiagnostics clientDiagnostics, QueryRestClient restClient)
 {
     _clientDiagnostics = clientDiagnostics;
     _restClient        = restClient;
     _batch             = new BatchRequest();
 }