Policy types for @turbot/servicenow-gcp-logging

GCP > Logging > Exclusion > ServiceNow

URI
tmod:@turbot/servicenow-gcp-logging#/policy/types/exclusionServiceNow
Targets

GCP > Logging > Exclusion > ServiceNow > Configuration Item

Synchronize the data for the GCP > Logging > Exclusion based on the policies GCP > Logging > Exclusion > 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 GCP > Logging > Exclusion information within the ServiceNow CMDB.

URI
tmod:@turbot/servicenow-gcp-logging#/policy/types/exclusionServiceNowConfigurationItem
Valid Value
[
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
]
Schema
{
"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"
}

GCP > Logging > Exclusion > 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 GCP > Logging > Exclusion 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.

URI
tmod:@turbot/servicenow-gcp-logging#/policy/types/exclusionServiceNowConfigurationItemRecord
Default Template Input
"{\n resource: exclusion{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
Default Template
"create_time: {{ $.resource.data.createTime | dump | safe }}\ndescription: {{ $.resource.data.description | dump | safe }}\ndisabled: {{ $.resource.data.disabled | dump | safe }}\nexclusion_name: {{ $.resource.data.name | dump | safe }}\nfilter: {{ $.resource.data.filter | dump | safe }}\nproject: {{ $.resource.metadata.gcp.projectId | dump | safe }}\nupdate_time: {{ $.resource.data.updateTime | dump | safe }}\n"
Schema
{
"type": "object"
}

GCP > Logging > Exclusion > ServiceNow > Configuration Item > Table Definition

This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the GCP > Logging > Exclusion data will be stored, and the details of the columns used for archiving purposes.

URI
tmod:@turbot/servicenow-gcp-logging#/policy/types/exclusionServiceNowConfigurationItemTableDefinition
Default Template Input
[
"{\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-gcp-logging#/policy/types/exclusionServiceNowTableDefinition 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"
]
Default Template
"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"
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"tableName"
],
"properties": {
"tableName": {
"type": "string"
},
"archiveColumns": {
"type": "object"
}
}
}

GCP > Logging > Exclusion > ServiceNow > Table

Configure a Table for GCP > Logging > Exclusion resource type in ServiceNow via the GCP > Logging > Exclusion > ServiceNow > Table > * policies.

URI
tmod:@turbot/servicenow-gcp-logging#/policy/types/exclusionServiceNowTable
Valid Value
[
"Skip",
"Check: Configured",
"Enforce: Configured"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Configured",
"Enforce: Configured"
],
"example": [
"Skip"
],
"default": "Skip"
}

GCP > Logging > Exclusion > 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 GCP > Logging > Exclusion data.

URI
tmod:@turbot/servicenow-gcp-logging#/policy/types/exclusionServiceNowTableDefinition
Schema
{
"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_gcp_logging_exclusion",
"label": "GCP > Logging > Exclusion",
"extendsTable": "cmdb_ci"
},
"columns": [
{
"name": "create_time",
"label": "Create Time"
},
{
"name": "description",
"label": "Description"
},
{
"name": "disabled",
"label": "Disabled",
"type": "boolean"
},
{
"name": "exclusion_name",
"label": "Name"
},
{
"name": "filter",
"label": "Filter"
},
{
"name": "project",
"label": "Project"
},
{
"name": "update_time",
"label": "Update Time"
}
]
}
}

GCP > Logging > Metric > ServiceNow

URI
tmod:@turbot/servicenow-gcp-logging#/policy/types/metricServiceNow
Targets

GCP > Logging > Metric > ServiceNow > Configuration Item

Synchronize the data for the GCP > Logging > Metric based on the policies GCP > Logging > Metric > 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 GCP > Logging > Metric information within the ServiceNow CMDB.

URI
tmod:@turbot/servicenow-gcp-logging#/policy/types/metricServiceNowConfigurationItem
Valid Value
[
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
]
Schema
{
"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"
}

GCP > Logging > Metric > 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 GCP > Logging > Metric 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.

URI
tmod:@turbot/servicenow-gcp-logging#/policy/types/metricServiceNowConfigurationItemRecord
Default Template Input
"{\n resource: metric{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
Default Template
"bucket_name: {{ $.resource.data.bucketName | dump | safe }}\nbucket_options: {{ $.resource.data.bucketOptions | dump | safe }}\ncreate_time: {{ $.resource.data.createTime | dump | safe }}\ndescription: {{ $.resource.data.description | dump | safe }}\ndisabled: {{ $.resource.data.disabled | dump | safe }}\nfilter: {{ $.resource.data.filter | dump | safe }}\nlabel_extractors: {{ $.resource.data.labelExtractors | dump | safe }}\nmetric_descriptor: {{ $.resource.data.metricDescriptor | dump | safe }}\nmetric_name: {{ $.resource.data.name | dump | safe }}\nproject: {{ $.resource.metadata.gcp.projectId | dump | safe }}\nupdate_time: {{ $.resource.data.updateTime | dump | safe }}\nvalue_extractor: {{ $.resource.data.valueExtractor | dump | safe }}\nversion: {{ $.resource.data.version | dump | safe }}\n"
Schema
{
"type": "object"
}

GCP > Logging > Metric > ServiceNow > Configuration Item > Table Definition

This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the GCP > Logging > Metric data will be stored, and the details of the columns used for archiving purposes.

URI
tmod:@turbot/servicenow-gcp-logging#/policy/types/metricServiceNowConfigurationItemTableDefinition
Default Template Input
[
"{\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-gcp-logging#/policy/types/metricServiceNowTableDefinition 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"
]
Default Template
"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"
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"tableName"
],
"properties": {
"tableName": {
"type": "string"
},
"archiveColumns": {
"type": "object"
}
}
}

GCP > Logging > Metric > ServiceNow > Table

Configure a Table for GCP > Logging > Metric resource type in ServiceNow via the GCP > Logging > Metric > ServiceNow > Table > * policies.

URI
tmod:@turbot/servicenow-gcp-logging#/policy/types/metricServiceNowTable
Valid Value
[
"Skip",
"Check: Configured",
"Enforce: Configured"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Configured",
"Enforce: Configured"
],
"example": [
"Skip"
],
"default": "Skip"
}

GCP > Logging > Metric > 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 GCP > Logging > Metric data.

URI
tmod:@turbot/servicenow-gcp-logging#/policy/types/metricServiceNowTableDefinition
Schema
{
"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_gcp_logging_metric",
"label": "GCP > Logging > Metric",
"extendsTable": "cmdb_ci"
},
"columns": [
{
"name": "bucket_name",
"label": "Bucket Name"
},
{
"name": "bucket_options",
"label": "Bucket Options",
"type": "string",
"size": 1000
},
{
"name": "create_time",
"label": "Create Time"
},
{
"name": "description",
"label": "Description"
},
{
"name": "disabled",
"label": "Disabled",
"type": "boolean"
},
{
"name": "filter",
"label": "Filter"
},
{
"name": "label_extractors",
"label": "Label Extractors",
"type": "string",
"size": 1000
},
{
"name": "metric_descriptor",
"label": "Metric Descriptor",
"type": "string",
"size": 2000
},
{
"name": "metric_name",
"label": "Name"
},
{
"name": "project",
"label": "Project"
},
{
"name": "update_time",
"label": "Update Time"
},
{
"name": "value_extractor",
"label": "Value Extractor"
},
{
"name": "version",
"label": "Version"
}
]
}
}

GCP > Logging > Sink > ServiceNow

URI
tmod:@turbot/servicenow-gcp-logging#/policy/types/sinkServiceNow
Targets

GCP > Logging > Sink > ServiceNow > Configuration Item

Synchronize the data for the GCP > Logging > Sink based on the policies GCP > Logging > Sink > 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 GCP > Logging > Sink information within the ServiceNow CMDB.

URI
tmod:@turbot/servicenow-gcp-logging#/policy/types/sinkServiceNowConfigurationItem
Valid Value
[
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
]
Schema
{
"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"
}

GCP > Logging > Sink > 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 GCP > Logging > Sink 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.

URI
tmod:@turbot/servicenow-gcp-logging#/policy/types/sinkServiceNowConfigurationItemRecord
Default Template Input
"{\n resource: sink{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
Default Template
"create_time: {{ $.resource.data.createTime | dump | safe }}\ndescription: {{ $.resource.data.description | dump | safe }}\ndestination: {{ $.resource.data.destination | dump | safe }}\ndisabled: {{ $.resource.data.disabled | dump | safe }}\nexclusions: {{ $.resource.data.exclusions | dump | safe }}\nfilter: {{ $.resource.data.filter | dump | safe }}\ninclude_children: {{ $.resource.data.includeChildren | dump | safe }}\noutput_version_format: {{ $.resource.data.outputVersionFormat | dump | safe }}\nproject: {{ $.resource.metadata.gcp.projectId | dump | safe }}\nsink_name: {{ $.resource.data.name | dump | safe }}\nupdate_time: {{ $.resource.data.updateTime | dump | safe }}\nwriter_identity: {{ $.resource.data.writerIdentity | dump | safe }}\n"
Schema
{
"type": "object"
}

GCP > Logging > Sink > ServiceNow > Configuration Item > Table Definition

This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the GCP > Logging > Sink data will be stored, and the details of the columns used for archiving purposes.

URI
tmod:@turbot/servicenow-gcp-logging#/policy/types/sinkServiceNowConfigurationItemTableDefinition
Default Template Input
[
"{\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-gcp-logging#/policy/types/sinkServiceNowTableDefinition 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"
]
Default Template
"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"
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"tableName"
],
"properties": {
"tableName": {
"type": "string"
},
"archiveColumns": {
"type": "object"
}
}
}

GCP > Logging > Sink > ServiceNow > Table

Configure a Table for GCP > Logging > Sink resource type in ServiceNow via the GCP > Logging > Sink > ServiceNow > Table > * policies.

URI
tmod:@turbot/servicenow-gcp-logging#/policy/types/sinkServiceNowTable
Valid Value
[
"Skip",
"Check: Configured",
"Enforce: Configured"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Configured",
"Enforce: Configured"
],
"example": [
"Skip"
],
"default": "Skip"
}

GCP > Logging > Sink > 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 GCP > Logging > Sink data.

URI
tmod:@turbot/servicenow-gcp-logging#/policy/types/sinkServiceNowTableDefinition
Schema
{
"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_gcp_logging_sink",
"label": "GCP > Logging > Sink",
"extendsTable": "cmdb_ci"
},
"columns": [
{
"name": "create_time",
"label": "Create Time"
},
{
"name": "description",
"label": "Description"
},
{
"name": "destination",
"label": "Destination"
},
{
"name": "disabled",
"label": "Disabled",
"type": "boolean"
},
{
"name": "exclusions",
"label": "Exclusions",
"type": "string",
"size": 1000
},
{
"name": "filter",
"label": "Filter"
},
{
"name": "include_children",
"label": "Include Children",
"type": "boolean"
},
{
"name": "output_version_format",
"label": "Output Version Format",
"type": "string",
"size": 1000
},
{
"name": "project",
"label": "Project"
},
{
"name": "sink_name",
"label": "Name"
},
{
"name": "update_time",
"label": "Update Time"
},
{
"name": "writer_identity",
"label": "Writer Identity"
}
]
}
}