UploadBatchServiceLogsConfiguration Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. UploadBatchServiceLogsConfiguration
- com.
public class UploadBatchServiceLogsConfiguration
The Azure Batch service log files upload configuration for a Compute Node.
Constructor Summary
Constructor | Description | |
---|---|---|
UploadBatchServiceLogsConfiguration() |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
containerUrl()
Get if a user assigned managed identity is not being used, the URL must include a Shared Access Signature (SAS) granting write permissions to the container. |
org.joda.time.DateTime |
endTime()
Get any log file containing a log message in the time range will be uploaded. |
Compute |
identityReference()
Get the identity must have write access to the Azure Blob Storage container. |
org.joda.time.DateTime |
startTime()
Get any log file containing a log message in the time range will be uploaded. |
Upload |
withContainerUrl(String containerUrl)
Set if a user assigned managed identity is not being used, the URL must include a Shared Access Signature (SAS) granting write permissions to the container. |
Upload |
withEndTime(DateTime endTime)
Set any log file containing a log message in the time range will be uploaded. |
Upload |
withIdentityReference(ComputeNodeIdentityReference identityReference)
Set the identity must have write access to the Azure Blob Storage container. |
Upload |
withStartTime(DateTime startTime)
Set any log file containing a log message in the time range will be uploaded. |
Methods inherited from java.lang.Object
Constructor Details
UploadBatchServiceLogsConfiguration
public UploadBatchServiceLogsConfiguration()
Method Details
containerUrl
public String containerUrl()
Get if a user assigned managed identity is not being used, the URL must include a Shared Access Signature (SAS) granting write permissions to the container. The SAS duration must allow enough time for the upload to finish. The start time for SAS is optional and recommended to not be specified.
Returns:
endTime
public DateTime endTime()
Get any log file containing a log message in the time range will be uploaded. This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded, but the operation should not retrieve fewer logs than have been requested. If omitted, the default is to upload all logs available after the startTime.
Returns:
identityReference
public ComputeNodeIdentityReference identityReference()
Get the identity must have write access to the Azure Blob Storage container.
Returns:
startTime
public DateTime startTime()
Get any log file containing a log message in the time range will be uploaded. This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded, but the operation should not retrieve fewer logs than have been requested.
Returns:
withContainerUrl
public UploadBatchServiceLogsConfiguration withContainerUrl(String containerUrl)
Set if a user assigned managed identity is not being used, the URL must include a Shared Access Signature (SAS) granting write permissions to the container. The SAS duration must allow enough time for the upload to finish. The start time for SAS is optional and recommended to not be specified.
Parameters:
Returns:
withEndTime
public UploadBatchServiceLogsConfiguration withEndTime(DateTime endTime)
Set any log file containing a log message in the time range will be uploaded. This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded, but the operation should not retrieve fewer logs than have been requested. If omitted, the default is to upload all logs available after the startTime.
Parameters:
Returns:
withIdentityReference
public UploadBatchServiceLogsConfiguration withIdentityReference(ComputeNodeIdentityReference identityReference)
Set the identity must have write access to the Azure Blob Storage container.
Parameters:
Returns:
withStartTime
public UploadBatchServiceLogsConfiguration withStartTime(DateTime startTime)
Set any log file containing a log message in the time range will be uploaded. This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded, but the operation should not retrieve fewer logs than have been requested.
Parameters:
Returns:
Applies to
Azure SDK for Java