Policy types for @turbot/servicenow-gcp-logging
- GCP > Logging > Exclusion > ServiceNow
- GCP > Logging > Exclusion > ServiceNow > Configuration Item
- GCP > Logging > Exclusion > ServiceNow > Configuration Item > Record
- GCP > Logging > Exclusion > ServiceNow > Configuration Item > Table Definition
- GCP > Logging > Exclusion > ServiceNow > Table
- GCP > Logging > Exclusion > ServiceNow > Table > Definition
- GCP > Logging > Metric > ServiceNow
- GCP > Logging > Metric > ServiceNow > Configuration Item
- GCP > Logging > Metric > ServiceNow > Configuration Item > Record
- GCP > Logging > Metric > ServiceNow > Configuration Item > Table Definition
- GCP > Logging > Metric > ServiceNow > Table
- GCP > Logging > Metric > ServiceNow > Table > Definition
- GCP > Logging > Sink > ServiceNow
- GCP > Logging > Sink > ServiceNow > Configuration Item
- GCP > Logging > Sink > ServiceNow > Configuration Item > Record
- GCP > Logging > Sink > ServiceNow > Configuration Item > Table Definition
- GCP > Logging > Sink > ServiceNow > Table
- GCP > Logging > Sink > ServiceNow > Table > Definition
GCP > Logging > Exclusion > ServiceNow
tmod:@turbot/servicenow-gcp-logging#/policy/types/exclusionServiceNow
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.
tmod:@turbot/servicenow-gcp-logging#/policy/types/exclusionServiceNowConfigurationItem
[ "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"}
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.
tmod:@turbot/servicenow-gcp-logging#/policy/types/exclusionServiceNowConfigurationItemRecord
"{\n resource: exclusion{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
"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"
{ "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.
tmod:@turbot/servicenow-gcp-logging#/policy/types/exclusionServiceNowConfigurationItemTableDefinition
[ "{\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"]
"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" } }}
GCP > Logging > Exclusion > ServiceNow > Table
Configure a Table for GCP > Logging > Exclusion
resource type in ServiceNow via the GCP > Logging > Exclusion > ServiceNow > Table > *
policies.
tmod:@turbot/servicenow-gcp-logging#/policy/types/exclusionServiceNowTable
[ "Skip", "Check: Configured", "Enforce: Configured"]
{ "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.
tmod:@turbot/servicenow-gcp-logging#/policy/types/exclusionServiceNowTableDefinition
{ "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
tmod:@turbot/servicenow-gcp-logging#/policy/types/metricServiceNow
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.
tmod:@turbot/servicenow-gcp-logging#/policy/types/metricServiceNowConfigurationItem
[ "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"}
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.
tmod:@turbot/servicenow-gcp-logging#/policy/types/metricServiceNowConfigurationItemRecord
"{\n resource: metric{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
"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"
{ "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.
tmod:@turbot/servicenow-gcp-logging#/policy/types/metricServiceNowConfigurationItemTableDefinition
[ "{\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"]
"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" } }}
GCP > Logging > Metric > ServiceNow > Table
Configure a Table for GCP > Logging > Metric
resource type in ServiceNow via the GCP > Logging > Metric > ServiceNow > Table > *
policies.
tmod:@turbot/servicenow-gcp-logging#/policy/types/metricServiceNowTable
[ "Skip", "Check: Configured", "Enforce: Configured"]
{ "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.
tmod:@turbot/servicenow-gcp-logging#/policy/types/metricServiceNowTableDefinition
{ "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
tmod:@turbot/servicenow-gcp-logging#/policy/types/sinkServiceNow
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.
tmod:@turbot/servicenow-gcp-logging#/policy/types/sinkServiceNowConfigurationItem
[ "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"}
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.
tmod:@turbot/servicenow-gcp-logging#/policy/types/sinkServiceNowConfigurationItemRecord
"{\n resource: sink{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
"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"
{ "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.
tmod:@turbot/servicenow-gcp-logging#/policy/types/sinkServiceNowConfigurationItemTableDefinition
[ "{\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"]
"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" } }}
GCP > Logging > Sink > ServiceNow > Table
Configure a Table for GCP > Logging > Sink
resource type in ServiceNow via the GCP > Logging > Sink > ServiceNow > Table > *
policies.
tmod:@turbot/servicenow-gcp-logging#/policy/types/sinkServiceNowTable
[ "Skip", "Check: Configured", "Enforce: Configured"]
{ "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.
tmod:@turbot/servicenow-gcp-logging#/policy/types/sinkServiceNowTableDefinition
{ "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" } ] }}