UploadBatchServiceLogsConfiguration Class

  • java.lang.Object
    • com.microsoft.azure.batch.protocol.models.UploadBatchServiceLogsConfiguration

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.

ComputeNodeIdentityReference 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.

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.

UploadBatchServiceLogsConfiguration withEndTime(DateTime endTime)

Set any log file containing a log message in the time range will be uploaded.

UploadBatchServiceLogsConfiguration withIdentityReference(ComputeNodeIdentityReference identityReference)

Set the identity must have write access to the Azure Blob Storage container.

UploadBatchServiceLogsConfiguration 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:

the containerUrl value

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:

the endTime value

identityReference

public ComputeNodeIdentityReference identityReference()

Get the identity must have write access to the Azure Blob Storage container.

Returns:

the identityReference value

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:

the startTime value

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:

containerUrl - the containerUrl value to set

Returns:

the UploadBatchServiceLogsConfiguration object itself.

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:

endTime - the endTime value to set

Returns:

the UploadBatchServiceLogsConfiguration object itself.

withIdentityReference

public UploadBatchServiceLogsConfiguration withIdentityReference(ComputeNodeIdentityReference identityReference)

Set the identity must have write access to the Azure Blob Storage container.

Parameters:

identityReference - the identityReference value to set

Returns:

the UploadBatchServiceLogsConfiguration object itself.

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:

startTime - the startTime value to set

Returns:

the UploadBatchServiceLogsConfiguration object itself.

Applies to