Aracılığıyla paylaş


ApplicationInsightsComponentProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.applicationinsights.fluent.models.ApplicationInsightsComponentProperties

Implements

public final class ApplicationInsightsComponentProperties
implements JsonSerializable<ApplicationInsightsComponentProperties>

Properties that define an Application Insights component resource.

Constructor Summary

Constructor Description
ApplicationInsightsComponentProperties()

Creates an instance of ApplicationInsightsComponentProperties class.

Method Summary

Modifier and Type Method and Description
String appId()

Get the appId property: Application Insights Unique ID for your Application.

String applicationId()

Get the applicationId property: The unique ID of your application.

ApplicationType applicationType()

Get the applicationType property: Type of application being monitored.

String connectionString()

Get the connectionString property: Application Insights component connection string.

OffsetDateTime creationDate()

Get the creationDate property: Creation Date for the Application Insights component, in ISO 8601 format.

Boolean disableIpMasking()

Get the disableIpMasking property: Disable IP masking.

Boolean disableLocalAuth()

Get the disableLocalAuth property: Disable Non-AAD based Auth.

FlowType flowType()

Get the flowType property: Used by the Application Insights system to determine what kind of flow this component was created by.

Boolean forceCustomerStorageForProfiler()

Get the forceCustomerStorageForProfiler property: Force users to create their own storage account for profiler and debugger.

static ApplicationInsightsComponentProperties fromJson(JsonReader jsonReader)

Reads an instance of ApplicationInsightsComponentProperties from the JsonReader.

String hockeyAppId()

Get the hockeyAppId property: The unique application ID created when a new application is added to HockeyApp, used for communications with HockeyApp.

String hockeyAppToken()

Get the hockeyAppToken property: Token used to authenticate communications with between Application Insights and HockeyApp.

Boolean immediatePurgeDataOn30Days()

Get the immediatePurgeDataOn30Days property: Purge data immediately after 30 days.

IngestionMode ingestionMode()

Get the ingestionMode property: Indicates the flow of the ingestion.

String instrumentationKey()

Get the instrumentationKey property: Application Insights Instrumentation key.

OffsetDateTime laMigrationDate()

Get the laMigrationDate property: The date which the component got migrated to LA, in ISO 8601 format.

String name()

Get the name property: Application name.

List<PrivateLinkScopedResource> privateLinkScopedResources()

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

String provisioningState()

Get the provisioningState property: Current state of this component: whether or not is has been provisioned within the resource group it is defined.

PublicNetworkAccessType publicNetworkAccessForIngestion()

Get the publicNetworkAccessForIngestion property: The network access type for accessing Application Insights ingestion.

PublicNetworkAccessType publicNetworkAccessForQuery()

Get the publicNetworkAccessForQuery property: The network access type for accessing Application Insights query.

RequestSource requestSource()

Get the requestSource property: Describes what tool created this Application Insights component.

Integer retentionInDays()

Get the retentionInDays property: Retention period in days.

Double samplingPercentage()

Get the samplingPercentage property: Percentage of the data produced by the application being monitored that is being sampled for Application Insights telemetry.

String tenantId()

Get the tenantId property: Azure Tenant Id.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ApplicationInsightsComponentProperties withApplicationType(ApplicationType applicationType)

Set the applicationType property: Type of application being monitored.

ApplicationInsightsComponentProperties withDisableIpMasking(Boolean disableIpMasking)

Set the disableIpMasking property: Disable IP masking.

ApplicationInsightsComponentProperties withDisableLocalAuth(Boolean disableLocalAuth)

Set the disableLocalAuth property: Disable Non-AAD based Auth.

ApplicationInsightsComponentProperties withFlowType(FlowType flowType)

Set the flowType property: Used by the Application Insights system to determine what kind of flow this component was created by.

ApplicationInsightsComponentProperties withForceCustomerStorageForProfiler(Boolean forceCustomerStorageForProfiler)

Set the forceCustomerStorageForProfiler property: Force users to create their own storage account for profiler and debugger.

ApplicationInsightsComponentProperties withHockeyAppId(String hockeyAppId)

Set the hockeyAppId property: The unique application ID created when a new application is added to HockeyApp, used for communications with HockeyApp.

ApplicationInsightsComponentProperties withImmediatePurgeDataOn30Days(Boolean immediatePurgeDataOn30Days)

Set the immediatePurgeDataOn30Days property: Purge data immediately after 30 days.

ApplicationInsightsComponentProperties withIngestionMode(IngestionMode ingestionMode)

Set the ingestionMode property: Indicates the flow of the ingestion.

ApplicationInsightsComponentProperties withPublicNetworkAccessForIngestion(PublicNetworkAccessType publicNetworkAccessForIngestion)

Set the publicNetworkAccessForIngestion property: The network access type for accessing Application Insights ingestion.

ApplicationInsightsComponentProperties withPublicNetworkAccessForQuery(PublicNetworkAccessType publicNetworkAccessForQuery)

Set the publicNetworkAccessForQuery property: The network access type for accessing Application Insights query.

ApplicationInsightsComponentProperties withRequestSource(RequestSource requestSource)

Set the requestSource property: Describes what tool created this Application Insights component.

ApplicationInsightsComponentProperties withRetentionInDays(Integer retentionInDays)

Set the retentionInDays property: Retention period in days.

ApplicationInsightsComponentProperties withSamplingPercentage(Double samplingPercentage)

Set the samplingPercentage property: Percentage of the data produced by the application being monitored that is being sampled for Application Insights telemetry.

ApplicationInsightsComponentProperties withWorkspaceResourceId(String workspaceResourceId)

Set the workspaceResourceId property: Resource Id of the log analytics workspace which the data will be ingested to.

String workspaceResourceId()

Get the workspaceResourceId property: Resource Id of the log analytics workspace which the data will be ingested to.

Methods inherited from java.lang.Object

Constructor Details

ApplicationInsightsComponentProperties

public ApplicationInsightsComponentProperties()

Creates an instance of ApplicationInsightsComponentProperties class.

Method Details

appId

public String appId()

Get the appId property: Application Insights Unique ID for your Application.

Returns:

the appId value.

applicationId

public String applicationId()

Get the applicationId property: The unique ID of your application. This field mirrors the 'Name' field and cannot be changed.

Returns:

the applicationId value.

applicationType

public ApplicationType applicationType()

Get the applicationType property: Type of application being monitored.

Returns:

the applicationType value.

connectionString

public String connectionString()

Get the connectionString property: Application Insights component connection string.

Returns:

the connectionString value.

creationDate

public OffsetDateTime creationDate()

Get the creationDate property: Creation Date for the Application Insights component, in ISO 8601 format.

Returns:

the creationDate value.

disableIpMasking

public Boolean disableIpMasking()

Get the disableIpMasking property: Disable IP masking.

Returns:

the disableIpMasking value.

disableLocalAuth

public Boolean disableLocalAuth()

Get the disableLocalAuth property: Disable Non-AAD based Auth.

Returns:

the disableLocalAuth value.

flowType

public FlowType flowType()

Get the flowType property: Used by the Application Insights system to determine what kind of flow this component was created by. This is to be set to 'Bluefield' when creating/updating a component via the REST API.

Returns:

the flowType value.

forceCustomerStorageForProfiler

public Boolean forceCustomerStorageForProfiler()

Get the forceCustomerStorageForProfiler property: Force users to create their own storage account for profiler and debugger.

Returns:

the forceCustomerStorageForProfiler value.

fromJson

public static ApplicationInsightsComponentProperties fromJson(JsonReader jsonReader)

Reads an instance of ApplicationInsightsComponentProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ApplicationInsightsComponentProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

hockeyAppId

public String hockeyAppId()

Get the hockeyAppId property: The unique application ID created when a new application is added to HockeyApp, used for communications with HockeyApp.

Returns:

the hockeyAppId value.

hockeyAppToken

public String hockeyAppToken()

Get the hockeyAppToken property: Token used to authenticate communications with between Application Insights and HockeyApp.

Returns:

the hockeyAppToken value.

immediatePurgeDataOn30Days

public Boolean immediatePurgeDataOn30Days()

Get the immediatePurgeDataOn30Days property: Purge data immediately after 30 days.

Returns:

the immediatePurgeDataOn30Days value.

ingestionMode

public IngestionMode ingestionMode()

Get the ingestionMode property: Indicates the flow of the ingestion.

Returns:

the ingestionMode value.

instrumentationKey

public String instrumentationKey()

Get the instrumentationKey property: Application Insights Instrumentation key. A read-only value that applications can use to identify the destination for all telemetry sent to Azure Application Insights. This value will be supplied upon construction of each new Application Insights component.

Returns:

the instrumentationKey value.

laMigrationDate

public OffsetDateTime laMigrationDate()

Get the laMigrationDate property: The date which the component got migrated to LA, in ISO 8601 format.

Returns:

the laMigrationDate value.

name

public String name()

Get the name property: Application name.

Returns:

the name value.

privateLinkScopedResources

public List<PrivateLinkScopedResource> privateLinkScopedResources()

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

Returns:

the privateLinkScopedResources value.

provisioningState

public String provisioningState()

Get the provisioningState property: Current state of this component: whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Succeeded, Deploying, Canceled, and Failed.

Returns:

the provisioningState value.

publicNetworkAccessForIngestion

public PublicNetworkAccessType publicNetworkAccessForIngestion()

Get the publicNetworkAccessForIngestion property: The network access type for accessing Application Insights ingestion.

Returns:

the publicNetworkAccessForIngestion value.

publicNetworkAccessForQuery

public PublicNetworkAccessType publicNetworkAccessForQuery()

Get the publicNetworkAccessForQuery property: The network access type for accessing Application Insights query.

Returns:

the publicNetworkAccessForQuery value.

requestSource

public RequestSource requestSource()

Get the requestSource property: Describes what tool created this Application Insights component. Customers using this API should set this to the default 'rest'.

Returns:

the requestSource value.

retentionInDays

public Integer retentionInDays()

Get the retentionInDays property: Retention period in days.

Returns:

the retentionInDays value.

samplingPercentage

public Double samplingPercentage()

Get the samplingPercentage property: Percentage of the data produced by the application being monitored that is being sampled for Application Insights telemetry.

Returns:

the samplingPercentage value.

tenantId

public String tenantId()

Get the tenantId property: Azure Tenant Id.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withApplicationType

public ApplicationInsightsComponentProperties withApplicationType(ApplicationType applicationType)

Set the applicationType property: Type of application being monitored.

Parameters:

applicationType - the applicationType value to set.

Returns:

the ApplicationInsightsComponentProperties object itself.

withDisableIpMasking

public ApplicationInsightsComponentProperties withDisableIpMasking(Boolean disableIpMasking)

Set the disableIpMasking property: Disable IP masking.

Parameters:

disableIpMasking - the disableIpMasking value to set.

Returns:

the ApplicationInsightsComponentProperties object itself.

withDisableLocalAuth

public ApplicationInsightsComponentProperties withDisableLocalAuth(Boolean disableLocalAuth)

Set the disableLocalAuth property: Disable Non-AAD based Auth.

Parameters:

disableLocalAuth - the disableLocalAuth value to set.

Returns:

the ApplicationInsightsComponentProperties object itself.

withFlowType

public ApplicationInsightsComponentProperties withFlowType(FlowType flowType)

Set the flowType property: Used by the Application Insights system to determine what kind of flow this component was created by. This is to be set to 'Bluefield' when creating/updating a component via the REST API.

Parameters:

flowType - the flowType value to set.

Returns:

the ApplicationInsightsComponentProperties object itself.

withForceCustomerStorageForProfiler

public ApplicationInsightsComponentProperties withForceCustomerStorageForProfiler(Boolean forceCustomerStorageForProfiler)

Set the forceCustomerStorageForProfiler property: Force users to create their own storage account for profiler and debugger.

Parameters:

forceCustomerStorageForProfiler - the forceCustomerStorageForProfiler value to set.

Returns:

the ApplicationInsightsComponentProperties object itself.

withHockeyAppId

public ApplicationInsightsComponentProperties withHockeyAppId(String hockeyAppId)

Set the hockeyAppId property: The unique application ID created when a new application is added to HockeyApp, used for communications with HockeyApp.

Parameters:

hockeyAppId - the hockeyAppId value to set.

Returns:

the ApplicationInsightsComponentProperties object itself.

withImmediatePurgeDataOn30Days

public ApplicationInsightsComponentProperties withImmediatePurgeDataOn30Days(Boolean immediatePurgeDataOn30Days)

Set the immediatePurgeDataOn30Days property: Purge data immediately after 30 days.

Parameters:

immediatePurgeDataOn30Days - the immediatePurgeDataOn30Days value to set.

Returns:

the ApplicationInsightsComponentProperties object itself.

withIngestionMode

public ApplicationInsightsComponentProperties withIngestionMode(IngestionMode ingestionMode)

Set the ingestionMode property: Indicates the flow of the ingestion.

Parameters:

ingestionMode - the ingestionMode value to set.

Returns:

the ApplicationInsightsComponentProperties object itself.

withPublicNetworkAccessForIngestion

public ApplicationInsightsComponentProperties withPublicNetworkAccessForIngestion(PublicNetworkAccessType publicNetworkAccessForIngestion)

Set the publicNetworkAccessForIngestion property: The network access type for accessing Application Insights ingestion.

Parameters:

publicNetworkAccessForIngestion - the publicNetworkAccessForIngestion value to set.

Returns:

the ApplicationInsightsComponentProperties object itself.

withPublicNetworkAccessForQuery

public ApplicationInsightsComponentProperties withPublicNetworkAccessForQuery(PublicNetworkAccessType publicNetworkAccessForQuery)

Set the publicNetworkAccessForQuery property: The network access type for accessing Application Insights query.

Parameters:

publicNetworkAccessForQuery - the publicNetworkAccessForQuery value to set.

Returns:

the ApplicationInsightsComponentProperties object itself.

withRequestSource

public ApplicationInsightsComponentProperties withRequestSource(RequestSource requestSource)

Set the requestSource property: Describes what tool created this Application Insights component. Customers using this API should set this to the default 'rest'.

Parameters:

requestSource - the requestSource value to set.

Returns:

the ApplicationInsightsComponentProperties object itself.

withRetentionInDays

public ApplicationInsightsComponentProperties withRetentionInDays(Integer retentionInDays)

Set the retentionInDays property: Retention period in days.

Parameters:

retentionInDays - the retentionInDays value to set.

Returns:

the ApplicationInsightsComponentProperties object itself.

withSamplingPercentage

public ApplicationInsightsComponentProperties withSamplingPercentage(Double samplingPercentage)

Set the samplingPercentage property: Percentage of the data produced by the application being monitored that is being sampled for Application Insights telemetry.

Parameters:

samplingPercentage - the samplingPercentage value to set.

Returns:

the ApplicationInsightsComponentProperties object itself.

withWorkspaceResourceId

public ApplicationInsightsComponentProperties withWorkspaceResourceId(String workspaceResourceId)

Set the workspaceResourceId property: Resource Id of the log analytics workspace which the data will be ingested to. This property is required to create an application with this API version. Applications from older versions will not have this property.

Parameters:

workspaceResourceId - the workspaceResourceId value to set.

Returns:

the ApplicationInsightsComponentProperties object itself.

workspaceResourceId

public String workspaceResourceId()

Get the workspaceResourceId property: Resource Id of the log analytics workspace which the data will be ingested to. This property is required to create an application with this API version. Applications from older versions will not have this property.

Returns:

the workspaceResourceId value.

Applies to