From 9cfe25fd21a1ca02402a326d6ece3129d05a166e Mon Sep 17 00:00:00 2001 From: Priyanka Chatterjee Date: Fri, 31 May 2024 14:45:27 +0530 Subject: [PATCH] Update columns type from json to string --- azure/table_azure_application_insight.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/azure/table_azure_application_insight.go b/azure/table_azure_application_insight.go index e7cef5d8..46488eac 100644 --- a/azure/table_azure_application_insight.go +++ b/azure/table_azure_application_insight.go @@ -137,6 +137,18 @@ func tableAzureApplicationInsight(_ context.Context) *plugin.Table { Transform: transform.FromField("ApplicationInsightsComponentProperties.WorkspaceResourceID"), Type: proto.ColumnType_STRING, }, + { + Name: "public_network_access_for_ingestion", + Description: "The network access type for accessing Application Insights ingestion.", + Transform: transform.FromField("ApplicationInsightsComponentProperties.PublicNetworkAccessForIngestion"), + Type: proto.ColumnType_STRING, + }, + { + Name: "public_network_access_for_query", + Description: "The network access type for accessing Application Insights query.", + Transform: transform.FromField("ApplicationInsightsComponentProperties.PublicNetworkAccessForQuery"), + Type: proto.ColumnType_STRING, + }, { Name: "application_type", Description: "Type of application being monitored.", @@ -161,18 +173,6 @@ func tableAzureApplicationInsight(_ context.Context) *plugin.Table { Transform: transform.FromField("ApplicationInsightsComponentProperties.PrivateLinkScopedResources"), Type: proto.ColumnType_JSON, }, - { - Name: "public_network_access_for_ingestion", - Description: "The network access type for accessing Application Insights ingestion.", - Transform: transform.FromField("ApplicationInsightsComponentProperties.PublicNetworkAccessForIngestion"), - Type: proto.ColumnType_JSON, - }, - { - Name: "public_network_access_for_query", - Description: "The network access type for accessing Application Insights query.", - Transform: transform.FromField("ApplicationInsightsComponentProperties.PublicNetworkAccessForQuery"), - Type: proto.ColumnType_JSON, - }, // Steampipe standard columns {