Policy types for @turbot/servicenow-azure-applicationinsights
- Azure > Application Insights > Application Insight > ServiceNow
- Azure > Application Insights > Application Insight > ServiceNow > Configuration Item
- Azure > Application Insights > Application Insight > ServiceNow > Configuration Item > Record
- Azure > Application Insights > Application Insight > ServiceNow > Configuration Item > Table Definition
- Azure > Application Insights > Application Insight > ServiceNow > Table
- Azure > Application Insights > Application Insight > ServiceNow > Table > Definition
Azure > Application Insights > Application Insight > ServiceNow
tmod:@turbot/servicenow-azure-applicationinsights#/policy/types/applicationInsightServiceNow
Azure > Application Insights > Application Insight > ServiceNow > Configuration Item
Synchronize the data for the Azure > Application Insights > Application Insight
based on the policies Azure > Application Insights > Application Insight > ServiceNow > Configuration Item > *
The Configuration Item control is responsible for automatically synchronizing records in a designated ServiceNow table, maintaining an up-to-date reflection of the Azure > Application Insights > Application Insight
information within the ServiceNow CMDB.
tmod:@turbot/servicenow-azure-applicationinsights#/policy/types/applicationInsightServiceNowConfigurationItem
[ "Skip", "Check: Archived", "Check: Deleted", "Check: Sync", "Enforce: Archived", "Enforce: Deleted", "Enforce: Sync", "Enforce: Sync, archive on delete"]
{ "type": "string", "enum": [ "Skip", "Check: Archived", "Check: Deleted", "Check: Sync", "Enforce: Archived", "Enforce: Deleted", "Enforce: Sync", "Enforce: Sync, archive on delete" ], "example": [ "Skip" ], "default": "Skip"}
Azure > Application Insights > Application Insight > ServiceNow > Configuration Item > Record
The policy facilitates the accurate representation of cloud resource within the ServiceNow environment, ensuring that critical data is effectively mapped and managed. Attribute of an Azure > Application Insights > Application Insight
is systematically mapped to a specific column in a ServiceNow table.
The policy allows enabling organizations to select and map only those attributes that are most relevant to their operational needs. It significantly reduces the manual effort involved in data transfer and minimizes the risk of errors, thereby enhancing the overall efficiency of data management.
tmod:@turbot/servicenow-azure-applicationinsights#/policy/types/applicationInsightServiceNowConfigurationItemRecord
"{\n resource: applicationInsight{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
"app_id: {{ $.resource.data.appId | dump | safe }}\napplication_insight_name: {{ $.resource.data.name | dump | safe }}\napplication_type: {{ $.resource.data.applicationType | dump | safe }}\ncreation_date: {{ $.resource.data.creationDate | dump | safe }}\ndisable_local_auth: {{ $.resource.data.disableLocalAuth | dump | safe }}\netag: {{ $.resource.data.etag | dump | safe }}\nflow_type: {{ $.resource.data.flowType | dump | safe }}\nid: {{ $.resource.data.id | dump | safe }}\ningestion_mode: {{ $.resource.data.ingestionMode | dump | safe }}\ninstrumentation_key: {{ $.resource.data.instrumentationKey | dump | safe }}\nkind: {{ $.resource.data.kind | dump | safe }}\nprovisioning_state: {{ $.resource.data.provisioningState | dump | safe }}\nregion: {{ $.resource.data.location | dump | safe }}\nrequest_source: {{ $.resource.data.requestSource | dump | safe }}\nresource_group: {{ $.resource.metadata.azure.resourceGroupName | dump | safe }}\nretention_in_days: {{ $.resource.data.retentionInDays | dump | safe }}\nsubscription_id: {{ $.resource.metadata.azure.subscriptionId | dump | safe }}\ntags: {{ $.resource.turbot.tags | dump | safe }}\ntenant_id: {{ $.resource.data.tenantId | dump | safe }}\ntype: {{ $.resource.data.type | dump | safe }}\n"
{ "type": "object"}
Azure > Application Insights > Application Insight > ServiceNow > Configuration Item > Table Definition
This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the Azure > Application Insights > Application Insight
data will be stored, and the details of the columns used for archiving purposes.
tmod:@turbot/servicenow-azure-applicationinsights#/policy/types/applicationInsightServiceNowConfigurationItemTableDefinition
[ "{\n serviceNowInstance: resources(filter: \"resourceTypeId:tmod:@turbot/servicenow#/resource/types/instance level:self limit:1\") {\n items {\n turbot {\n id\n }\n }\n }\n}\n", "{\n tableDefinition: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow-azure-applicationinsights#/policy/types/applicationInsightServiceNowTableDefinition resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n applicationScope: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow#/policy/types/serviceNowApplicationScope resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n}\n"]
"tableName: "{%- if $.applicationScope.items | length == 0 or $.tableDefinition.items | length == 0 %} {%- else %}{{$.applicationScope.items[0].value}}_{{$.tableDefinition.items[0].value.table.name | lower}}{% endif %}"\n"
{ "type": "object", "additionalProperties": false, "required": [ "tableName" ], "properties": { "tableName": { "type": "string" }, "archiveColumns": { "type": "object" } }}
Azure > Application Insights > Application Insight > ServiceNow > Table
Configure a Table for Azure > Application Insights > Application Insight
resource type in ServiceNow via the Azure > Application Insights > Application Insight > ServiceNow > Table > *
policies.
tmod:@turbot/servicenow-azure-applicationinsights#/policy/types/applicationInsightServiceNowTable
[ "Skip", "Check: Configured", "Enforce: Configured"]
{ "type": "string", "enum": [ "Skip", "Check: Configured", "Enforce: Configured" ], "example": [ "Skip" ], "default": "Skip"}
Azure > Application Insights > Application Insight > ServiceNow > Table > Definition
The policy enables the definition of ServiceNow table properties, including its name and the base table from which it extends, and details the specific columns required for representing Azure > Application Insights > Application Insight
data.
tmod:@turbot/servicenow-azure-applicationinsights#/policy/types/applicationInsightServiceNowTableDefinition
{ "type": "object", "additionalProperties": false, "required": [ "table", "columns" ], "properties": { "table": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string", "pattern": "^([0-9a-z_])+$" }, "label": { "type": "string" }, "extendsTable": { "type": "string", "pattern": "^([0-9a-z_])+$" } } }, "columns": { "type": "array", "description": "An array of columns with their mappings to the CMDB.", "default": [], "items": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string", "description": "The name of the column in the table.", "pattern": "^([0-9a-z_])+$" }, "label": { "type": "string", "description": "The label for the column." }, "type": { "description": "The data type of the column.", "type": "string" }, "size": { "type": "integer", "description": "The length for data type." } } } } }, "default": { "table": { "name": "guardrails_azure_applicationinsights_applicationinsight", "label": "Azure > Application Insights > Application Insight", "extendsTable": "cmdb_ci" }, "columns": [ { "name": "app_id", "label": "App ID" }, { "name": "application_insight_name", "label": "Name" }, { "name": "application_type", "label": "Application Type", "type": "string", "size": 1000 }, { "name": "creation_date", "label": "Creation Date" }, { "name": "disable_local_auth", "label": "Disable Local Auth", "type": "boolean" }, { "name": "etag", "label": "Etag" }, { "name": "flow_type", "label": "Flow Type", "type": "string", "size": 1000 }, { "name": "id", "label": "ID" }, { "name": "ingestion_mode", "label": "Ingestion Mode", "type": "string", "size": 1000 }, { "name": "instrumentation_key", "label": "Instrumentation Key" }, { "name": "kind", "label": "Kind" }, { "name": "provisioning_state", "label": "Provisioning State" }, { "name": "region", "label": "Region" }, { "name": "request_source", "label": "Request Source" }, { "name": "resource_group", "label": "Resource Group" }, { "name": "retention_in_days", "label": "Retention In Days" }, { "name": "subscription_id", "label": "Subscription ID" }, { "name": "tags", "label": "Tags", "type": "string", "size": 1000 }, { "name": "tenant_id", "label": "Tenant ID" }, { "name": "type", "label": "Type" } ] }}