-
Notifications
You must be signed in to change notification settings - Fork 420
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e1a8296
commit f6626d0
Showing
4 changed files
with
5 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
-- Copyright (c) HashiCorp, Inc. | ||
-- SPDX-License-Identifier: MIT | ||
|
||
SELECT RAW:"Asset_Panda_Number"::NUMBER as ASSET_PANDA_NUMBER, RAW:"is_locked"::BOOLEAN as IS_LOCKED, RAW:"id"::VARCHAR as ID, RAW:"Date_Added"::TIMESTAMP_TZ as DATE_ADDED, RAW:"Storage_Capacity"::VARCHAR as STORAGE_CAPACITY, RAW:"Asset_Tag_Number"::VARCHAR as ASSET_TAG_NUMBER, RAW:"is_deletable"::BOOLEAN as IS_DELETABLE, RAW:"has_audit_history"::BOOLEAN as HAS_AUDIT_HISTORY, RAW:"Purchase_From"::VARCHAR as PURCHASE_FROM, RAW:"Department"::VARIANT as DEPARTMENT, RAW:"display_with_secondary"::VARCHAR as DISPLAY_WITH_SECONDARY, RAW:"object_appreciation"::BOOLEAN as OBJECT_APPRECIATION, RAW:"Status"::VARIANT as STATUS, RAW:"Purchase_date"::DATE as PURCHASE_DATE, RAW:"Yubikey_Identifier"::VARCHAR as YUBIKEY_IDENTIFIER, RAW:"display_name"::VARCHAR as DISPLAY_NAME, RAW:"Brand"::VARCHAR as BRAND, RAW:"Assigned_To"::VARIANT as ASSIGNED_TO, RAW:"share_url"::VARCHAR as SHARE_URL, RAW:"object_version_ids"::VARIANT as OBJECT_VERSION_IDS, RAW:"Creation_Date"::DATE as CREATION_DATE, RAW:"Created_By"::VARCHAR as CREATED_BY, RAW:"purchase_price"::FLOAT as PURCHASE_PRICE, RAW:"next_service"::DATE as NEXT_SERVICE, RAW:"building"::VARIANT as BUILDING, RAW:"category"::VARIANT as CATEGORY, RAW:"description"::VARCHAR as DESCRIPTION, RAW:"changed_by"::VARCHAR as CHANGED_BY, RAW:"wireless_status"::VARCHAR as WIRELESS_STATUS, RAW:"created_at"::TIMESTAMP_TZ as CREATED_AT, RAW:"gps_coordinates"::VARIANT as GPS_COORDINATES, RAW:"updated_at"::TIMESTAMP_TZ as UPDATED_AT, RAW:"loaner_pool"::BOOLEAN as LOANER_POOL, RAW:"default_attachment"::VARIANT as DEFAULT_ATTACHMENT, RAW:"room"::VARIANT as ROOM, RAW:"notes"::VARCHAR as NOTES, RAW:"object_depreciation"::BOOLEAN as OBJECT_DEPRECIATION, RAW:"is_editable"::BOOLEAN as IS_EDITABLE, RAW:"wifi_mac_address"::VARCHAR as WIFI_MAC_ADDRESS, RAW:"change_date"::DATE as CHANGE_DATE, RAW:"display_size"::VARCHAR as DISPLAY_SIZE, RAW:"operating_system"::VARCHAR as OPERATING_SYSTEM, RAW:"serial"::VARCHAR as SERIAL, RAW:"end_of_life_date"::DATE as END_OF_LIFE_DATE, RAW:"imei_meid"::VARCHAR as IMEI_MEID, RAW:"model"::VARCHAR as MODEL, RAW:"mac_address"::VARCHAR as MAC_ADDRESS, RAW:"entity"::VARIANT as ENTITY, RAW:"PO"::VARCHAR as PO FROM "SNOWALERT"."DATA"."ASSETPANDA_DEFAULT_CONNECTION"; | ||
SELECT RAW:"Asset_Panda_Number"::NUMBER as ASSET_PANDA_NUMBER, RAW:"is_locked"::BOOLEAN as IS_LOCKED, RAW:"id"::VARCHAR as ID, RAW:"Date_Added"::TIMESTAMP_TZ as DATE_ADDED, RAW:"Storage_Capacity"::VARCHAR as STORAGE_CAPACITY, RAW:"Asset_Tag_Number"::VARCHAR as ASSET_TAG_NUMBER, RAW:"is_deletable"::BOOLEAN as IS_DELETABLE, RAW:"has_audit_history"::BOOLEAN as HAS_AUDIT_HISTORY, RAW:"Purchase_From"::VARCHAR as PURCHASE_FROM, RAW:"Department"::VARIANT as DEPARTMENT, RAW:"display_with_secondary"::VARCHAR as DISPLAY_WITH_SECONDARY, RAW:"object_appreciation"::BOOLEAN as OBJECT_APPRECIATION, RAW:"Status"::VARIANT as STATUS, RAW:"Purchase_date"::DATE as PURCHASE_DATE, RAW:"Yubikey_Identifier"::VARCHAR as YUBIKEY_IDENTIFIER, RAW:"display_name"::VARCHAR as DISPLAY_NAME, RAW:"Brand"::VARCHAR as BRAND, RAW:"Assigned_To"::VARIANT as ASSIGNED_TO, RAW:"share_url"::VARCHAR as SHARE_URL, RAW:"object_version_ids"::VARIANT as OBJECT_VERSION_IDS, RAW:"Creation_Date"::DATE as CREATION_DATE, RAW:"Created_By"::VARCHAR as CREATED_BY, RAW:"purchase_price"::FLOAT as PURCHASE_PRICE, RAW:"next_service"::DATE as NEXT_SERVICE, RAW:"building"::VARIANT as BUILDING, RAW:"category"::VARIANT as CATEGORY, RAW:"description"::VARCHAR as DESCRIPTION, RAW:"changed_by"::VARCHAR as CHANGED_BY, RAW:"wireless_status"::VARCHAR as WIRELESS_STATUS, RAW:"created_at"::TIMESTAMP_TZ as CREATED_AT, RAW:"gps_coordinates"::VARIANT as GPS_COORDINATES, RAW:"updated_at"::TIMESTAMP_TZ as UPDATED_AT, RAW:"loaner_pool"::BOOLEAN as LOANER_POOL, RAW:"default_attachment"::VARIANT as DEFAULT_ATTACHMENT, RAW:"room"::VARIANT as ROOM, RAW:"notes"::VARCHAR as NOTES, RAW:"object_depreciation"::BOOLEAN as OBJECT_DEPRECIATION, RAW:"is_editable"::BOOLEAN as IS_EDITABLE, RAW:"wifi_mac_address"::VARCHAR as WIFI_MAC_ADDRESS, RAW:"change_date"::DATE as CHANGE_DATE, RAW:"display_size"::VARCHAR as DISPLAY_SIZE, RAW:"operating_system"::VARCHAR as OPERATING_SYSTEM, RAW:"serial"::VARCHAR as SERIAL, RAW:"end_of_life_date"::DATE as END_OF_LIFE_DATE, RAW:"imei_meid"::VARCHAR as IMEI_MEID, RAW:"model"::VARCHAR as MODEL, RAW:"mac_address"::VARCHAR as MAC_ADDRESS, RAW:"entity"::VARIANT as ENTITY, RAW:"PO"::VARCHAR as PO FROM "SNOWALERT"."DATA"."ASSETPANDA_DEFAULT_CONNECTION"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
-- Copyright (c) HashiCorp, Inc. | ||
-- SPDX-License-Identifier: MIT | ||
|
||
SELECT value:configRuleName::VARCHAR AS CONFIG_RULE_NAME, VALUE:complianceType::VARCHAR AS COMPLIANCE_TYPE, * FROM ( SELECT parse_json(CONFIGURATION:configRuleList) AS SRC, * FROM "SNOWALERT"."DATA"."AWS_CONFIG_DEFAULT_EVENTS_CONNECTION" WHERE RESOURCE_TYPE = 'AWS::Config::ResourceCompliance' ), lateral flatten(input => SRC) | ||
SELECT value:configRuleName::VARCHAR AS CONFIG_RULE_NAME, VALUE:complianceType::VARCHAR AS COMPLIANCE_TYPE, * FROM ( SELECT parse_json(CONFIGURATION:configRuleList) AS SRC, * FROM "SNOWALERT"."DATA"."AWS_CONFIG_DEFAULT_EVENTS_CONNECTION" WHERE RESOURCE_TYPE = 'AWS::Config::ResourceCompliance' ), lateral flatten(input => SRC) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters