예제 #1
0
 internal OperationInfo(string regionsContacted,
                        long?responseSizeInBytes,
                        Cosmos.ConsistencyLevel?consistency,
                        string databaseName,
                        string containerName,
                        OperationType?operation,
                        ResourceType?resource,
                        int?statusCode)
 {
     this.RegionsContacted    = regionsContacted;
     this.ResponseSizeInBytes = responseSizeInBytes;
     if (responseSizeInBytes != null)
     {
         this.GreaterThan1Kb = responseSizeInBytes > ClientTelemetryOptions.OneKbToBytes;
     }
     this.Consistency   = OperationInfo.GetConsistencyString(consistency);
     this.DatabaseName  = databaseName;
     this.ContainerName = containerName;
     this.Operation     = operation?.ToOperationTypeString();
     this.Resource      = resource?.ToResourceTypeString();
     this.StatusCode    = statusCode;
 }