WorkspaceInner Class

public final class WorkspaceInner
extends Resource

The top level Workspace resource container.

Constructor Summary

Constructor Description
WorkspaceInner()

Method Summary

Modifier and Type Method and Description
String createdDate()

Get the createdDate property: Workspace creation date.

String customerId()

Get the customerId property: This is a read-only property.

String defaultDataCollectionRuleResourceId()

Get the defaultDataCollectionRuleResourceId property: The resource ID of the default Data Collection Rule to use for this workspace.

String etag()

Get the etag property: The ETag of the workspace.

WorkspaceFeatures features()

Get the features property: Workspace features.

Boolean forceCmkForQuery()

Get the forceCmkForQuery property: Indicates whether customer managed storage is mandatory for query management.

String modifiedDate()

Get the modifiedDate property: Workspace modification date.

List<PrivateLinkScopedResource> privateLinkScopedResources()

Get the privateLinkScopedResources property: List of linked private link scope resources.

WorkspaceEntityStatus provisioningState()

Get the provisioningState property: The provisioning state of the workspace.

PublicNetworkAccessType publicNetworkAccessForIngestion()

Get the publicNetworkAccessForIngestion property: The network access type for accessing Log Analytics ingestion.

PublicNetworkAccessType publicNetworkAccessForQuery()

Get the publicNetworkAccessForQuery property: The network access type for accessing Log Analytics query.

Integer retentionInDays()

Get the retentionInDays property: The workspace data retention in days.

WorkspaceSku sku()

Get the sku property: The SKU of the workspace.

SystemDataAutoGenerated systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the resource.

void validate()

Validates the instance.

WorkspaceInner withDefaultDataCollectionRuleResourceId(String defaultDataCollectionRuleResourceId)

Set the defaultDataCollectionRuleResourceId property: The resource ID of the default Data Collection Rule to use for this workspace.

WorkspaceInner withEtag(String etag)

Set the etag property: The ETag of the workspace.

WorkspaceInner withFeatures(WorkspaceFeatures features)

Set the features property: Workspace features.

WorkspaceInner withForceCmkForQuery(Boolean forceCmkForQuery)

Set the forceCmkForQuery property: Indicates whether customer managed storage is mandatory for query management.

WorkspaceInner withLocation(String location)
WorkspaceInner withPublicNetworkAccessForIngestion(PublicNetworkAccessType publicNetworkAccessForIngestion)

Set the publicNetworkAccessForIngestion property: The network access type for accessing Log Analytics ingestion.

WorkspaceInner withPublicNetworkAccessForQuery(PublicNetworkAccessType publicNetworkAccessForQuery)

Set the publicNetworkAccessForQuery property: The network access type for accessing Log Analytics query.

WorkspaceInner withRetentionInDays(Integer retentionInDays)

Set the retentionInDays property: The workspace data retention in days.

WorkspaceInner withSku(WorkspaceSku sku)

Set the sku property: The SKU of the workspace.

WorkspaceInner withTags(Map<String,String> tags)
WorkspaceInner withWorkspaceCapping(WorkspaceCapping workspaceCapping)

Set the workspaceCapping property: The daily volume cap for ingestion.

WorkspaceCapping workspaceCapping()

Get the workspaceCapping property: The daily volume cap for ingestion.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

WorkspaceInner

public WorkspaceInner()

Method Details

createdDate

public String createdDate()

Get the createdDate property: Workspace creation date.

Returns:

the createdDate value.

customerId

public String customerId()

Get the customerId property: This is a read-only property. Represents the ID associated with the workspace.

Returns:

the customerId value.

defaultDataCollectionRuleResourceId

public String defaultDataCollectionRuleResourceId()

Get the defaultDataCollectionRuleResourceId property: The resource ID of the default Data Collection Rule to use for this workspace. Expected format is - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dcrName}.

Returns:

the defaultDataCollectionRuleResourceId value.

etag

public String etag()

Get the etag property: The ETag of the workspace.

Returns:

the etag value.

features

public WorkspaceFeatures features()

Get the features property: Workspace features.

Returns:

the features value.

forceCmkForQuery

public Boolean forceCmkForQuery()

Get the forceCmkForQuery property: Indicates whether customer managed storage is mandatory for query management.

Returns:

the forceCmkForQuery value.

modifiedDate

public String modifiedDate()

Get the modifiedDate property: Workspace modification date.

Returns:

the modifiedDate value.

privateLinkScopedResources

public List privateLinkScopedResources()

Get the privateLinkScopedResources property: List of linked private link scope resources.

Returns:

the privateLinkScopedResources value.

provisioningState

public WorkspaceEntityStatus provisioningState()

Get the provisioningState property: The provisioning state of the workspace.

Returns:

the provisioningState value.

publicNetworkAccessForIngestion

public PublicNetworkAccessType publicNetworkAccessForIngestion()

Get the publicNetworkAccessForIngestion property: The network access type for accessing Log Analytics ingestion.

Returns:

the publicNetworkAccessForIngestion value.

publicNetworkAccessForQuery

public PublicNetworkAccessType publicNetworkAccessForQuery()

Get the publicNetworkAccessForQuery property: The network access type for accessing Log Analytics query.

Returns:

the publicNetworkAccessForQuery value.

retentionInDays

public Integer retentionInDays()

Get the retentionInDays property: The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers documentation for details.

Returns:

the retentionInDays value.

sku

public WorkspaceSku sku()

Get the sku property: The SKU of the workspace.

Returns:

the sku value.

systemData

public SystemDataAutoGenerated systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the resource.

Returns:

the systemData value.

validate

public void validate()

Validates the instance.

withDefaultDataCollectionRuleResourceId

public WorkspaceInner withDefaultDataCollectionRuleResourceId(String defaultDataCollectionRuleResourceId)

Set the defaultDataCollectionRuleResourceId property: The resource ID of the default Data Collection Rule to use for this workspace. Expected format is - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dcrName}.

Parameters:

defaultDataCollectionRuleResourceId - the defaultDataCollectionRuleResourceId value to set.

Returns:

the WorkspaceInner object itself.

withEtag

public WorkspaceInner withEtag(String etag)

Set the etag property: The ETag of the workspace.

Parameters:

etag - the etag value to set.

Returns:

the WorkspaceInner object itself.

withFeatures

public WorkspaceInner withFeatures(WorkspaceFeatures features)

Set the features property: Workspace features.

Parameters:

features - the features value to set.

Returns:

the WorkspaceInner object itself.

withForceCmkForQuery

public WorkspaceInner withForceCmkForQuery(Boolean forceCmkForQuery)

Set the forceCmkForQuery property: Indicates whether customer managed storage is mandatory for query management.

Parameters:

forceCmkForQuery - the forceCmkForQuery value to set.

Returns:

the WorkspaceInner object itself.

withLocation

public WorkspaceInner withLocation(String location)

Overrides:

WorkspaceInner.withLocation(String location)

Parameters:

location

withPublicNetworkAccessForIngestion

public WorkspaceInner withPublicNetworkAccessForIngestion(PublicNetworkAccessType publicNetworkAccessForIngestion)

Set the publicNetworkAccessForIngestion property: The network access type for accessing Log Analytics ingestion.

Parameters:

publicNetworkAccessForIngestion - the publicNetworkAccessForIngestion value to set.

Returns:

the WorkspaceInner object itself.

withPublicNetworkAccessForQuery

public WorkspaceInner withPublicNetworkAccessForQuery(PublicNetworkAccessType publicNetworkAccessForQuery)

Set the publicNetworkAccessForQuery property: The network access type for accessing Log Analytics query.

Parameters:

publicNetworkAccessForQuery - the publicNetworkAccessForQuery value to set.

Returns:

the WorkspaceInner object itself.

withRetentionInDays

public WorkspaceInner withRetentionInDays(Integer retentionInDays)

Set the retentionInDays property: The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers documentation for details.

Parameters:

retentionInDays - the retentionInDays value to set.

Returns:

the WorkspaceInner object itself.

withSku

public WorkspaceInner withSku(WorkspaceSku sku)

Set the sku property: The SKU of the workspace.

Parameters:

sku - the sku value to set.

Returns:

the WorkspaceInner object itself.

withTags

public WorkspaceInner withTags(Map tags)

Overrides:

WorkspaceInner.withTags(Map<String,String> tags)

Parameters:

tags

withWorkspaceCapping

public WorkspaceInner withWorkspaceCapping(WorkspaceCapping workspaceCapping)

Set the workspaceCapping property: The daily volume cap for ingestion.

Parameters:

workspaceCapping - the workspaceCapping value to set.

Returns:

the WorkspaceInner object itself.

workspaceCapping

public WorkspaceCapping workspaceCapping()

Get the workspaceCapping property: The daily volume cap for ingestion.

Returns:

the workspaceCapping value.

Applies to