{"id":1847,"date":"2022-09-30T18:33:06","date_gmt":"2022-09-30T09:33:06","guid":{"rendered":"https:\/\/manvscloud.com\/?p=1847"},"modified":"2022-10-25T20:43:53","modified_gmt":"2022-10-25T11:43:53","slug":"ncp-%eb%84%a4%ec%9d%b4%eb%b2%84-%ed%81%b4%eb%9d%bc%ec%9a%b0%eb%93%9c%ec%97%90%ec%84%9c-%eb%b9%84%ec%9a%a9-%eb%aa%a8%eb%8b%88%ed%84%b0%eb%a7%81-%ec%84%a4%ec%a0%95-%eb%b0%8f-%ec%95%8c%eb%a6%bc","status":"publish","type":"post","link":"https:\/\/manvscloud.com\/?p=1847","title":{"rendered":"[NCLOUD] \ub124\uc774\ubc84 \ud074\ub77c\uc6b0\ub4dc\uc5d0\uc11c \ube44\uc6a9 \ubaa8\ub2c8\ud130\ub9c1 \uc124\uc815 \ubc0f \uc54c\ub9bc \ubc1b\uae30"},"content":{"rendered":"\n<p>\uc548\ub155\ud558\uc138\uc694. ManVSCloud \uae40\uc218\ud604\uc785\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\ud074\ub77c\uc6b0\ub4dc\ub97c \uc0ac\uc6a9\ud558\ub2e4\ubcf4\uba74 \ube44\uc6a9\uc5d0 \ub300\ud55c \uace0\ubbfc\uc774 \ube60\uc9c8 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"220\" src=\"https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2022\/09\/30162058\/Billing.png\" alt=\"\" class=\"wp-image-1855\"\/><\/figure><\/div>\n\n\n<p>\uacc4\uc815 \ud0c8\ucde8\ub85c \uc778\ud55c \ube44\uc6a9 \ud3ed\ud0c4\ubfd0\ub9cc \uc544\ub2c8\ub77c \ud559\uc0dd \ubc0f \ucde8\uc900\uc0dd\ub4e4\uc774 \ud559\uc2b5 \uc6a9\ub3c4\ub85c \uc2e4\uc2b5 \ud6c4 \ub9ac\uc18c\uc2a4\ub97c \uc0ad\uc81c\ud558\ub294 \uac83\uc744 \uae5c\ube61\ud558\uc5ec \uacfc\uae08\uc73c\ub85c \uc774\uc5b4\uc9c0\ub294 \uacbd\uc6b0\uac00 \uc7a6\uac8c \ubc1c\uc0dd\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\uc774\ub7ec\ud55c \ubb38\uc81c\ub85c \uc778\ud574 \ud0c0\ud074\ub77c\uc6b0\ub4dc\uc758 \uc11c\uc801\uc774\ub098 \uad50\uc721\uc5d0\uc11c\ub3c4 \ube44\uc6a9 \ubaa8\ub2c8\ud130\ub9c1\uc5d0 \ub300\ud55c \uc548\ub0b4\ub098 \ub9ac\uc18c\uc2a4 \uc0ad\uc81c\ub97c \uc0c1\ub2f9\ud788 \uac15\uc870\ud558\uace0 \uc788\uc73c\uba70 \ub124\uc774\ubc84 \ud074\ub77c\uc6b0\ub4dc \ud50c\ub7ab\ud3fc\uc5d0\uc11c\ub3c4 \ub3d9\uc77c\ud558\uac8c \uc758\ub3c4\ud558\uc9c0 \uc54a\uc740 \uacfc\uae08\uc744 \ub9c9\uae30 \uc704\ud574 \ube44\uc6a9 \ubaa8\ub2c8\ud130\ub9c1\uc740 \ubc18\ub4dc\uc2dc \ud544\uc218\ub85c \uc801\uc6a9\ud574\uc57c\ud560 \ubd80\ubd84\uc785\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\ud558\uc9c0\ub9cc \ud604\uc7ac\uae4c\uc9c0 \ub124\uc774\ubc84 \ud074\ub77c\uc6b0\ub4dc\uc5d0\uc11c \ube44\uc6a9 \ubaa8\ub2c8\ud130\ub9c1\uc744 \uc124\uc815\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud55c \uc11c\uc801\uc774\ub098 \ube14\ub85c\uadf8 \ud3ec\uc2a4\ud305\uc740 \ubc1c\uacac\ud558\uc9c0 \ubabb\ud588\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\uadf8\ub7ec\ubbc0\ub85c \uc624\ub298\uc740 \ub124\uc774\ubc84 \ud074\ub77c\uc6b0\ub4dc\uc5d0\uc11c \uccad\uad6c \ube44\uc6a9 \ubaa8\ub2c8\ud130\ub9c1\uc744 \uc0dd\uc131\ud558\uace0 \uc54c\ub78c\uc744 \ubc1b\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \ud3ec\uc2a4\ud305\ud558\uace0\uc790 \ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"340\" src=\"https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2022\/09\/30094135\/Naver-Cloud-Cost-Monitoring-1024x340.png\" alt=\"\" class=\"wp-image-1848\" srcset=\"https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2022\/09\/30094135\/Naver-Cloud-Cost-Monitoring-1024x340.png 1024w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2022\/09\/30094135\/Naver-Cloud-Cost-Monitoring-300x100.png 300w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2022\/09\/30094135\/Naver-Cloud-Cost-Monitoring-768x255.png 768w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2022\/09\/30094135\/Naver-Cloud-Cost-Monitoring-1080x359.png 1080w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2022\/09\/30094135\/Naver-Cloud-Cost-Monitoring.png 1212w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\uc774 \ud3ec\uc2a4\ud305\uc5d0\uc11c \uc791\uc131\ub420 \ube44\uc6a9 \ubaa8\ub2c8\ud130\ub9c1\uc758 \ud50c\ub85c\uc6b0\ub294 \uc704 \uadf8\ub9bc\uacfc \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<p>Cloud Insight\uc5d0\ub294 \uacc4\uc815\uc774 \uc0ac\uc6a9\ud55c \ub9ac\uc18c\uc2a4\uc758 \ube44\uc6a9\uc744 \ubaa8\ub2c8\ud130\ub9c1 \ud560 \uc218 \uc788\ub294 \uc9c0\ud45c\uac00 \uc5c6\uc2b5\ub2c8\ub2e4.<br>\uadf8\ub7ec\ubbc0\ub85c \uccad\uad6c \ube44\uc6a9\uc5d0 \ub300\ud55c Metric \uc0dd\uc131 \ubc0f \ub370\uc774\ud130\ub97c Cloud Insight\ub85c \ubcf4\ub0b4\uc8fc\ub294 \uc791\uc5c5\uc774 \ud544\uc694\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"has-white-color has-vivid-cyan-blue-background-color has-text-color has-background wp-block-heading\"> How?<\/h3>\n\n\n\n<p>\uba3c\uc800 <mark style=\"background-color:rgba(0, 0, 0, 0);color:#0088d7\" class=\"has-inline-color\"><strong>\uccad\uad6c \ube44\uc6a9\uc5d0 \ub300\ud55c \ub370\uc774\ud130\ub97c \ubcf4\ub0b4\ub294 \uc791\uc5c5\uc740 Cloud Functions\uc744 \uc0ac\uc6a9<\/strong><\/mark>\ud560 \uac83\uc785\ub2c8\ub2e4.<br>Cloud Functions\uc740 \ub124\uc774\ubc84 \ud074\ub77c\uc6b0\ub4dc\uc758 Serverless \uc0c1\ud488\uc785\ub2c8\ub2e4.<br>\uc11c\ubc84 \uad00\ub9ac\ub098 \ubcc4\ub3c4\uc758 \ud504\ub85c\ube44\uc800\ub2dd\uc5d0 \ub300\ud55c \ubd80\ub2f4 \uc5c6\uc774 \ucf54\ub4dc\uac00 \uc2e4\ud589\ub41c \ub9cc\ud07c\ub9cc \ube44\uc6a9\uc774 \ubc1c\uc0dd\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\ub610\ud55c Cloud Insight\ub85c \uc8fc\uae30\uc801\uc778 \ub370\uc774\ud130 \uc804\uc1a1\uc774 \ud544\uc694\ud55c\ub370 Cloud Functions\uc758 Trigger\ub294 cron\uc744 \uc81c\uacf5\ud558\ubbc0\ub85c \uc6d0\ud558\ub294 \uc8fc\uae30\uc5d0 \ub9de\ucdb0\uc11c \ub370\uc774\ud130 \uc804\uc1a1\uc774 \uac00\ub2a5\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\ubb3c\ub860 Server\uc5d0\uc11c \uc774\ub7ec\ud55c \uc791\uc5c5\uc744 \ud558\ub294 \uac83\ub3c4 \uac00\ub2a5\ud558\uc9c0\ub9cc \uc624\uc9c1 \uccad\uad6c \ube44\uc6a9\uc758 \ub370\uc774\ud130\ub97c \uc804\uc1a1\ud558\uae30 \uc704\ud574 Server\ub97c \uc0dd\uc131\ud558\ub294 \uac83\uc740 \uc0c1\ub2f9\ud788 \ube44\uc6a9 \ud6a8\uc728\uc801\uc774\uc9c0 \ubabb\ud55c \uc120\ud0dd\uc785\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\uadf8\ub807\ub2e4\uba74 \uccad\uad6c \ube44\uc6a9 \ub370\uc774\ud130\ub97c Cloud Insight\ub85c \ubcf4\ub0b8\ub2e4\uace0 \ud558\uc600\ub294\ub370 \uc5b4\ub514\ub85c \ubcf4\ub0b4\ub294\uac00?<\/p>\n\n\n\n<p>\ubc14\ub85c Cloud Insight\uc758 Custom Schema\ub97c \uc774\uc6a9\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0);color:#0088d7\" class=\"has-inline-color\"><strong>Custom Schema\ub294 CW_KEY\ub97c \uc0dd\uc131<\/strong><\/mark>\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br><em>(CW_KEY : Schema\ub97c \uad6c\ubd84\ud558\uae30 \uc704\ud55c key\ub85c \ub370\uc774\ud130 \uc804\uc1a1 \ubc0f \uc870\ud68c\uc5d0 \uc0ac\uc6a9)<\/em><\/p>\n\n\n\n<p>\ub610\ud55c <mark style=\"background-color: rgba(0, 0, 0, 0);\" class=\"has-inline-color\"><strong style=\"color: rgb(0, 136, 215);\">Custom Schema\ub97c \uc0dd\uc131 \uc2dc \ub370\uc774\ud130\ub97c \uc218\uc9d1\ud560 \ub300\uc0c1 \uc815\ubcf4\uc778 ID Dimension\uc640 Metric\uc744 \uc0dd\uc131<\/strong><\/mark>\ud574\uc904 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\uc989, <span style=\"text-decoration: underline;\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">Cloud Functions\uc740 Custom Schema\uc5d0\uc11c \uc0dd\uc131\ub41c CW_KEY\ub97c \uc774\uc6a9\ud558\uc5ec Dimension \ubc0f Metric \ub370\uc774\ud130\ub97c Cloud Insight\ub85c \uc804\uc1a1\ud558\uace0 \uc218\uc9d1\ub41c \ub370\uc774\ud130\ub97c \uc774\uc6a9\ud558\uc5ec Dashboard \uc0dd\uc131, Event Rule \ub4f1\uc744 \uc774\uc6a9\ud558\uc5ec \ubaa8\ub2c8\ud130\ub9c1\uc774 \uac00\ub2a5<\/mark><\/span>\ud558\ub294 \uac83\uc785\ub2c8\ub2e4. <\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"has-white-color has-vivid-green-cyan-background-color has-text-color has-background wp-block-heading\"> A to Z<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\ud574\ub2f9 A to Z \uacfc\uc815\uc740 VPC \ubc0f Subnet \ub4f1 \ub124\ud2b8\uc6cc\ud06c \uad6c\uc131\uc774 \uc644\ub8cc\ub418\uc5b4\uc788\ub2e4\uace0 \uac00\uc815\ud558\uace0 \uc9c4\ud589\ud569\ub2c8\ub2e4. <\/p><cite>\ub124\ud2b8\uc6cc\ud06c \uad6c\uc131 \uacfc\uc815\uc740 \uc544\ub798 URL\uc744 \ud1b5\ud574 \uc2e4\uc2b5 \ud6c4 \uc9c4\ud589 \ubd80\ud0c1\ub4dc\ub9bd\ub2c8\ub2e4.<\/cite><\/blockquote>\n\n\n<div class=\"vlp-link-container vlp-layout-basic wp-block-visual-link-preview-link\"><a href=\"https:\/\/guide.ncloud-docs.com\/docs\/vpc-start-vpc\" class=\"vlp-link\" title=\"VPC(Virtual Private Cloud) \uc2dc\uc791 - VPC\" rel=\"nofollow\" target=\"_blank\"><\/a><div class=\"vlp-layout-zone-side\"><div class=\"vlp-block-2 vlp-link-image\"><img decoding=\"async\" src=\"https:\/\/cdn.document360.io\/6998976f-9d95-4df8-b847-d375892b92c2\/Images\/Documentation\/ncp-manual-logo-ko-v2.svg\" style=\"max-width: 150px; max-height: 150px\" \/><\/div><\/div><div class=\"vlp-layout-zone-main\"><div class=\"vlp-block-0 vlp-link-title\">VPC(Virtual Private Cloud) \uc2dc\uc791 &#8211; VPC<\/div><div class=\"vlp-block-1 vlp-link-summary\">VPC(Virtual Private Cloud) \uc2dc\uc791<\/div><\/div><\/div>\n\n\n<h4 class=\"wp-block-heading\">1. Custom Schema \uc0dd\uc131<\/h4>\n\n\n\n<p>1) \ub85c\uadf8\uc778 \ubc0f \ucf58\uc194 \uc811\uc18d<br>2) Cloud Insight (Monitoring) &#8211; Configuration &#8211; Custom Schema \ud074\ub9ad<br>3) <strong>[+ Custom Schema \uc0dd\uc131] <\/strong>\ud074\ub9ad<br>4) \uc544\ub798 \uac12\uacfc \uac19\uc774 \uc124\uc815(Product Type, Description \ub4f1 \uc790\uc720\ub86d\uac8c \uae30\uc785 \uac00\ub2a5)<\/p>\n\n\n\n<p><strong><em><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7b7b7b\" class=\"has-inline-color\"># \uae30\ubcf8 \uc815\ubcf4<\/mark><\/em><\/strong><br>      &#8211; <strong>CW_KEY<\/strong> (\uc790\ub3d9 \uc0dd\uc131\ub428)<br>      &#8211; <strong>Product Type<\/strong> : Account-Billing-Costs<br><br><strong><em><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7b7b7b\" class=\"has-inline-color\"># Schema \uc124\uc815<\/mark><\/em><\/strong><br>  <strong> \u00b7  <span style=\"text-decoration: underline;\">\uc218\uc9d1 \ub300\uc0c1 \uc124\uc815<\/span><\/strong><br>      &#8211; <strong>ID Dimension<\/strong> : memberId<br>      &#8211; <strong>Description<\/strong> : Schema for sending account billing cost data<br>      &#8211; <strong>Data Type<\/strong> : STRING<\/p>\n\n\n\n<p>   <strong>\u00b7  <span style=\"text-decoration: underline;\">Metric<\/span><\/strong><br>      &#8211; <strong>Metric<\/strong> : total_cost<br>      &#8211; <strong>Description<\/strong> : Total cost per month<br>      &#8211; <strong>Data Type<\/strong> : INTEGER<br>      &#8211; <strong>Aggregation<\/strong> Cycle : Min1, Min5, Min30, Day1<br>      &#8211; <strong>Aggregation<\/strong> : MAX, COUNT, MIN, SUM, AVG<br>      &#8211; <strong>Unit<\/strong> : won<\/p>\n\n\n\n<p>\uc704 \uac12\uacfc \ub3d9\uc77c\ud558\uac8c \uc785\ub825\ud55c \ub4a4 [\uc0dd\uc131]\uc744 \ud074\ub9ad\ud558\uac8c \ub418\uba74 Custom Schema\uac00 \uc0dd\uc131\ub429\ub2c8\ub2e4.<br>\uc0dd\uc131\ub41c Custom Schema\ub97c \ud074\ub9ad\ud558\uc5ec [\ub370\uc774\ud130 \uc804\uc1a1 \uc608\uc2dc]\ub3c4 \ud655\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">&lt;\uc804\uc1a1\ud560 Sample Data \ud615\uc2dd&gt;<\/mark><\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">{\n\t\"cw_key\": \"777777777777777777\",\n\t\"data\": {\n\t\t\"memberId\": \"xgltddiwte8\",\n\t\t\"total_cost\": 331\n\t}\n}<\/pre>\n\n\n\n<p>\uc704\uc640 \uac19\uc740 JSON \ud615\ud0dc\ub85c Cloud Function\uc5d0\uc11c \ub370\uc774\ud130\ub97c \uc804\uc1a1\ud574\uc57c\ud569\ub2c8\ub2e4.<br>data \ubd80\ubd84\uc758 memberId\ub294 \uacc4\uc815\uba85, total_cost \ubd80\ubd84\uc740 \uccad\uad6c \ube44\uc6a9\uc774 \ub4e4\uc5b4\uac00\uba74 \ub429\ub2c8\ub2e4.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">2. Cloud Functions\uc73c\ub85c \uccad\uad6c \ube44\uc6a9 \ub370\uc774\ud130 \uc804\uc1a1<\/h4>\n\n\n\n<p>1) Cloud Function \ud074\ub9ad \ubc0f \uad6c\ub3c5<br>2) Cloud Function &#8211; Trigger \ud074\ub9ad<br>3) <strong>[+ Trigger \uc0dd\uc131]<\/strong> \ud074\ub9ad<\/p>\n\n\n\n<p><strong><em><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7b7b7b\" class=\"has-inline-color\"># \ud2b8\ub9ac\uac70 \uc885\ub958 \uc120\ud0dd<\/mark><\/em><\/strong><br>      &#8211; <strong>\ud2b8\ub9ac\uac70 \uc885\ub958<\/strong> : cron<\/p>\n\n\n\n<p><strong><em><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7b7b7b\" class=\"has-inline-color\"># \ud2b8\ub9ac\uac70 \uae30\ubcf8 \uc815\ubcf4<\/mark><\/em><\/strong><br>      &#8211; <strong>\uc774\ub984<\/strong> : CloudInsight-Send-Data-Trigger<br>      &#8211; <strong>\uc124\uba85<\/strong> : Cloud Insight\ub85c Metric Data \uc804\uc1a1\uc6a9 \ud2b8\ub9ac\uac70<br>      &#8211; <strong>\ub514\ud3f4\ud2b8 \ud30c\ub77c\ubbf8\ud130 (JSON)<\/strong> : &#8211; (\uacf5\ub780)<br><br><strong><em><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7b7b7b\" class=\"has-inline-color\"># \ud2b8\ub9ac\uac70 \uae30\ubcf8 \uc815\ubcf4<\/mark><\/em><\/strong><br>      &#8211; <strong>\uc0c1\uc138 \uc2e4\ud589 \uc635\uc158<\/strong> : *\/1 * * * *<\/p>\n\n\n\n<p style=\"font-size:15px\"><span style=\"text-decoration: underline;\">&#8211; \uc561\uc158\uc740 \uc5f0\uacb0\ud558\uc9c0 \uc54a\uace0 \uc0dd\uc131\ud569\ub2c8\ub2e4. Trigger\ub294 \uc561\uc158 \uc0dd\uc131 \uc2dc \uc5f0\uacb0\ud574\uc8fc\uaca0\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n\n\n\n<p>4) Cloud Function &#8211; Action \ud074\ub9ad<br>5) <strong>[+ Package \uc0dd\uc131]<\/strong> \ud074\ub9ad<br>&#8211; <strong>\ud328\ud0a4\uc9c0 \uc774\ub984<\/strong> : CloudInsight-Send-Data-Pkg<br>&#8211; <strong>\ud328\ud0a4\uc9c0 \uc124\uba85<\/strong> : Cloud Insight\ub85c Custom Metric Data\ub97c \uc804\uc1a1\ud558\uae30 \uc704\ud55c Cloud Function \ud328\ud0a4\uc9c0<br>&#8211; <strong>\ub514\ud3f4\ud2b8 \ud30c\ub77c\ubbf8\ud130<\/strong> : REGION, DMN_CD, CW_API_URL\uc740 \ub9ac\uc804\ubcc4, \ubbfc\uac04\uc6a9, \uae08\uc735\uae30\uad00\uc6a9, \uacf5\uacf5\uae30\uad00\uc6a9\uc5d0\ub530\ub77c \ubcc0\uacbd\uc774 \ud544\uc694\ud558\ub2c8 \ucc38\uace0\ud558\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4. <br>ex) DMN_CD : \ubbfc\uac04\uc6a9(PUB), \uae08\uc735\uae30\uad00\uc6a9(FIN), \uacf5\uacf5\uae30\uad00\uc6a9(GOV)<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"true\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">{\"REGION\":\"KR\",\"DMN_CD\":\"PUB\",\"CW_API_URL\":\"https:\/\/cw.apigw.ntruss.com\",\"CW_SENDDATA_API\":\"\/cw_collector\/real\/data\"}<\/pre>\n\n\n\n<p>6) <strong>[+ Action \uc0dd\uc131]<\/strong> \ud074\ub9ad<br>7) Trigger \ucd94\uac00 \ud6c4 [\ub2e4\uc74c]<\/p>\n\n\n\n<p><strong><em><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7b7b7b\" class=\"has-inline-color\"># \ud2b8\ub9ac\uac70 \uae30\ubcf8 \uc815\ubcf4<\/mark><\/em><\/strong><br>      &#8211; <strong>\ud2b8\ub9ac\uac70 \uc885\ub958<\/strong> : cron<br>      &#8211; <strong>\uc774\ub984<\/strong> : CloudInsight-Send-Data-Trigger<\/p>\n\n\n\n<p>8) Action \uc138\ubd80 \ub0b4\uc6a9 \uc785\ub825 \ud6c4 [\uc0dd\uc131]<br><strong><em><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7b7b7b\" class=\"has-inline-color\"># \uae30\ubcf8 \uc815\ubcf4<\/mark><\/em><\/strong><br>      &#8211; <strong>\ud328\ud0a4\uc9c0<\/strong> : CloudInsight-Send-Data-Pkg<br>      &#8211; <strong>\ud0c0\uc785<\/strong> : \uae30\ubcf8<br>      &#8211; <strong>\uc774\ub984<\/strong> : CloudInsight-Send-Data-Pkg\/Account-Cost-Action<br>      &#8211; <strong>\uc124\uba85 <\/strong>: \uacc4\uc815 \ube44\uc6a9\uc5d0 \ub300\ud55c \ub370\uc774\ud130(Custom Metric)\ub97c Cloud Insight\ub85c \uc804\uc1a1\ud558\ub294 Action<br><br><strong><em><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7b7b7b\" class=\"has-inline-color\"># \uc18c\uc2a4\ucf54\ub4dc<\/mark><\/em><\/strong><br>      &#8211; <strong>\uc5b8\uc5b4<\/strong> : Python 3.7<br>      &#8211; <strong>\ud0c0\uc785<\/strong> : \ucf54\ub4dc<\/p>\n\n\n\n<p style=\"font-size:15px\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">(\ucf54\ub4dc\ub294 \ub354\uc6b1 \uac04\uacb0\ud558\uace0 \uc88b\uac8c \ubcc0\uacbd\ud558\uc2e4 \uc218 \uc788\uc73c\uba74 \ubcc0\uacbd\ud558\uc154\ub3c4 \ub429\ub2c8\ub2e4? <br>\uc800\ub294 \uc544\ubb34\ub798\ub3c4 \uac1c\ubc1c\uc790\uac00 \uc544\ub2c8\ub2e4\ubcf4\ub2c8 \ub3d9\uc791\ud558\uac8c\ub9cc \ud574\ub454\uac70\ub77c&#8230;)<\/mark><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">import hashlib\nimport hmac\nimport base64\nimport requests\nimport time\nimport json\nfrom datetime import datetime\n\ndef tstamp():\n    ts = int(time.time() * 1000)\n    ts = str(ts)\n    \n    return ts\n    \n\ndef lookup_period():\n    now = datetime.now()\n    period = now.strftime(\"%Y%m\")\n    period = str(period)\n    \n    return period\n\n\ndef useAmount(args):\n    \n    timestamp = tstamp()\n    per = lookup_period()\n    \n    access_key = args['NCLOUD_ACCESS_KEY']\n    secret_key = args['NCLOUD_SECRET_KEY']\n    secret_key = bytes(secret_key, 'UTF-8')\n    \n    method = \"GET\"\n\n    uri = args['BILL_COSTLIST_API'] + \"?startMonth=\" + per + \"&amp;endMonth=\" + per + \"&amp;responseFormatType=json\"\n\n    message = method + \" \" + uri + \"\\n\" + timestamp + \"\\n\" + access_key\n    message = bytes(message, 'UTF-8')\n    signingKey = base64.b64encode(hmac.new(secret_key, message, digestmod=hashlib.sha256).digest())\n\n\n    http_header = {\n            'x-ncp-apigw-signature-v2': signingKey,\n            'x-ncp-apigw-timestamp': timestamp,\n            'x-ncp-iam-access-key': access_key,\n            'x-ncp-dmn_cd': args['DMN_CD']\n            }\n\n\n\n    response = requests.get(args['BILLING_API_URL'] + uri, headers=http_header)\n\n    data = json.loads(response.text)\n    data = data.get(\"getDemandCostListResponse\")\n\n    for cost in data['demandCostList']:\n            useAmount = cost['useAmount']\n            useAmount = str(useAmount)\n\n    return useAmount\n    \n    \ndef main(args):\n    \n    timestamp = tstamp()\n    amount = useAmount(args)\n    api_server = args['CW_API_URL']\n    uri = args['CW_SENDDATA_API']\n    bill_key = args['BILL_CW_KEY']\n    mem_id = args['MEM_ID']\n    \n    access_key = args['NCLOUD_ACCESS_KEY']\n    secret_key = args['NCLOUD_SECRET_KEY']\n    secret_key = bytes(secret_key, 'UTF-8')\n    \n    method = \"POST\"\n    \n    message = method + \" \" + uri + \"\\n\" + timestamp + \"\\n\" + access_key\n    message = bytes(message, 'UTF-8')\n    signingKey = base64.b64encode(hmac.new(secret_key, message, digestmod=hashlib.sha256).digest())\n    \n    http_header = {\n            'x-ncp-apigw-signature-v2': signingKey,\n            'x-ncp-apigw-timestamp': timestamp,\n            'x-ncp-iam-access-key': access_key\n            }\n            \n    payload = {\n            \"cw_key\": bill_key,\n            \"data\": {\n            \"total_cost\": amount,\n            \"memberNo\": mem_id\n            }\n        }\n    \n    response = requests.post(api_server + uri, headers=http_header, json=payload)\n    data = json.loads(response.text)\n    \n    return data\n<\/pre>\n\n\n\n<p><strong><em><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7b7b7b\" class=\"has-inline-color\"># VPC \uc5f0\uacb0 \uc815\ubcf4<\/mark><\/em><\/strong><br>      &#8211; <strong>VPC<\/strong> : VPC \uc120\ud0dd<br>      &#8211; <strong>Subnet<\/strong> : Subnet \uc120\ud0dd<br>        (\ud604\uc7ac\ub294 KR-2 Zone\uc5d0\uc11c \uc0dd\uc131\ud55c Subnet\ub9cc \uc5f0\uacb0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.)<br><br><strong><em><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7b7b7b\" class=\"has-inline-color\"># \uc635\uc158 \uc124\uc815<\/mark><\/em><\/strong><br>      &#8211; <strong>Main \ud568\uc218<\/strong> : main<br>      &#8211; <strong>\uc561\uc158 \uba54\ubaa8\ub9ac<\/strong> : 128MB<br>      &#8211; <strong>\uc561\uc158 Timeout<\/strong> : 60000<br>      &#8211; <strong>\uc6f9 \uc561\uc158 \uc124\uc815<\/strong> : False<\/p>\n\n\n\n<p><br><strong><em><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7b7b7b\" class=\"has-inline-color\"># \ub514\ud3f4\ud2b8 \ud30c\ub77c\ubbf8\ud130<\/mark><\/em><\/strong><br>\uc544\ub798 \ud30c\ub77c\ubbf8\ud130\uc5d0\uc11c \ubcc0\uacbd\ud574\uc8fc\uc5b4\uc57c\ud560 \ubd80\ubd84\uc740 NCLOUD_ACCESS_KEY, NCLOUD_SECRET_KEY, BILL_CW_KEY, MEM_ID \ucd1d 4\uac00\uc9c0\uc785\ub2c8\ub2e4.<br>(BILLING_API_URL \uc5ed\uc2dc \uae08\uc735\uae30\uad00\uc6a9, \uacf5\uacf5\uae30\uad00\uc6a9\uc77c \uacbd\uc6b0 \ubcc0\uacbd\uc774 \ud544\uc694\ud569\ub2c8\ub2e4.)<\/p>\n\n\n\n<ul><li>NCLOUD_ACCESS_KEY\uc640 NCLOUD_SECRET_KEY\ub294 \uacc4\uc815\uc758 \uc778\uc99d\ud0a4\ub97c \uc785\ub825<\/li><li>BILL_CW_KEY\ub294 \uc704\uc5d0\uc11c Custom Schema \uc0dd\uc131 \ud6c4 \ubc1c\uae09\ub41c cw_key\ub97c \uc785\ub825<\/li><li>MEM_ID\ub294 \uc790\uc2e0\uc758 \uacc4\uc815\uc744 \uc785\ub825 (\uc790\uc720\ub86d\uac8c)<\/li><\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">{\"BILLING_API_URL\":\"https:\/\/billingapi.apigw.ntruss.com\",\"NCLOUD_ACCESS_KEY\":\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\",\"BILL_CW_KEY\":\"777777777777777777\",\"NCLOUD_SECRET_KEY\":\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\",\"BILL_COSTLIST_API\":\"\/billing\/v1\/cost\/getDemandCostList\",\"MEM_ID\":\"example@naver.com\"}<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"520\" src=\"https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2022\/09\/30142613\/cloudfunction-monitoring-1024x520.png\" alt=\"\" class=\"wp-image-1850\" srcset=\"https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2022\/09\/30142613\/cloudfunction-monitoring-1024x520.png 1024w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2022\/09\/30142613\/cloudfunction-monitoring-300x152.png 300w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2022\/09\/30142613\/cloudfunction-monitoring-768x390.png 768w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2022\/09\/30142613\/cloudfunction-monitoring-1536x779.png 1536w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2022\/09\/30142613\/cloudfunction-monitoring-2048x1039.png 2048w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2022\/09\/30142613\/cloudfunction-monitoring-1080x548.png 1080w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Action \uc0dd\uc131 \ud6c4 \uc0dd\uc131\ub41c Action\uc758 \ubaa8\ub2c8\ud130\ub9c1\uc744 \uc120\ud0dd\ud558\uc5ec \uc704 \uadf8\ub9bc\uacfc \uac19\uc774 \uc815\uc0c1\uc801\uc73c\ub85c Code\uac00 \ub3d9\uc791\ud558\ub294\uc9c0 \ud655\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3. Event Rule \uc0dd\uc131<\/h4>\n\n\n\n<ul class=\"has-text-color\" style=\"color:#656565\"><li><em>Cloud Insight &#8211; Template \uc0dd\uc131\uc5c6\uc774 Event Rule\ub85c \uac04\ub7b5\ud558\uac8c \ud3ec\uc2a4\ud305\ud558\uc600\uc2b5\ub2c8\ub2e4. <\/em><\/li><\/ul>\n\n\n\n<p>1) Cloud Insight(Monitoring) Configuration &#8211; Event Rule \ud074\ub9ad<br>2) [+ Event Rules \uc0dd\uc131] \ud074\ub9ad<br>3) \uc544\ub798\ub97c \ucc38\uace0\ud558\uc5ec Event Rule \uc0dd\uc131<\/p>\n\n\n\n<p><strong><em><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7b7b7b\" class=\"has-inline-color\"># \uac10\uc2dc \uc0c1\ud488 \uc120\ud0dd<\/mark><\/em><\/strong><br>      &#8211; \uc0dd\uc131\ud55c Custom Schema\uc758 Product Type \uc120\ud0dd (Account-Billing-Costs)<br><br><strong><em><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7b7b7b\" class=\"has-inline-color\"># \uac10\uc2dc \ub300\uc0c1 \uc124\uc815<\/mark><\/em><\/strong><br>      &#8211;  <strong>[\uc804\uccb4 \ubcf4\uae30]<\/strong> \ud074\ub9ad \ud6c4 MEM_ID\uc5d0 \uc785\ub825\ud55c \uacc4\uc815 \uc120\ud0dd<\/p>\n\n\n\n<p><strong><em><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7b7b7b\" class=\"has-inline-color\"># \uac10\uc2dc \ud56d\ubaa9 \uc124\uc815<\/mark><\/em><\/strong><br>      &#8211; <strong>[\uc804\uccb4 \ubcf4\uae30]<\/strong> \ud074\ub9ad \ud6c4 total_cost \uc120\ud0dd <br>      &#8211; <strong>\ub808\ubca8<\/strong> : Critical<br>      &#8211; <strong>\uc870\uac74<\/strong> : &gt;= 300000<br>                     (\uccad\uad6c \ube44\uc6a9\uc774 30\ub9cc\uc6d0 \uc774\uc0c1 \ubc1c\uc0dd \uc2dc \uc54c\ub9bc \ubc1c\uc0dd)<br>      &#8211; <strong>\uc9d1\uc57d \ubc29\ubc95<\/strong> : AVG<br>      &#8211; <strong>\uc9c0\uc18d \uc2dc\uac04<\/strong> : 1 (min)<br><br><strong><em><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7b7b7b\" class=\"has-inline-color\"># \uc561\uc158 \uc124\uc815<\/mark><\/em><\/strong><br>      &#8211; <strong>\uc54c\ub9bc \uba54\uc2dc\uc9c0 \ubc1c\uc1a1<\/strong> : \ud1b5\ubcf4 \ub300\uc0c1\uc790 \uc120\ud0dd<br><br><strong><em><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7b7b7b\" class=\"has-inline-color\"># \uae30\ubcf8\uc815\ubcf4<\/mark><\/em><\/strong><br>      &#8211; <strong>\uaddc\uce59 \uc774\ub984<\/strong> : Account-Billing-Cost-Event-Rule<br>      &#8211; <strong>\uc124\uba85<\/strong> : \uacc4\uc815 \uccad\uad6c \ube44\uc6a9 \uc774\ubca4\ud2b8 \ubc1c\uc0dd \uc2dc \uc54c\ub9bc\uc744 \uc704\ud55c \ub8f0 (30\ub9cc\uc6d0 \uc774\uc0c1 \uc0ac\uc6a9 \uc2dc \uc54c\ub9bc)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"333\" src=\"https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2022\/09\/30150704\/cost-cloudinsight-dashboard-1024x333.png\" alt=\"\" class=\"wp-image-1852\" srcset=\"https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2022\/09\/30150704\/cost-cloudinsight-dashboard-1024x333.png 1024w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2022\/09\/30150704\/cost-cloudinsight-dashboard-300x98.png 300w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2022\/09\/30150704\/cost-cloudinsight-dashboard-768x250.png 768w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2022\/09\/30150704\/cost-cloudinsight-dashboard-1080x352.png 1080w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2022\/09\/30150704\/cost-cloudinsight-dashboard.png 1146w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Dashboard\uc5d0\uc11c \ube44\uc6a9\uc744 \ud655\uc778\ud560 \uc218\ub3c4 \uc788\uace0,<br>\uc544\ub798\uc640 \uac19\uc774 \uc54c\ub9bc\ub3c4 \ubc1b\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2022\/09\/30150715\/cost-cloudinsight-alarm-1024x573.jpg\" alt=\"\" class=\"wp-image-1853\" width=\"380\" height=\"212\" srcset=\"https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2022\/09\/30150715\/cost-cloudinsight-alarm-1024x573.jpg 1024w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2022\/09\/30150715\/cost-cloudinsight-alarm-300x168.jpg 300w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2022\/09\/30150715\/cost-cloudinsight-alarm-768x430.jpg 768w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2022\/09\/30150715\/cost-cloudinsight-alarm-1080x605.jpg 1080w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2022\/09\/30150715\/cost-cloudinsight-alarm.jpg 1170w\" sizes=\"(max-width: 380px) 100vw, 380px\" \/><\/figure><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"has-white-color has-vivid-red-background-color has-text-color has-background wp-block-heading\"> Question<\/h3>\n\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\"><strong>Q1. Cloud Insight\uc5d0 \ub300\ud55c \ube44\uc6a9\uc774 \ubc1c\uc0dd\ud558\uc9c0 \uc54a\ub098\uc694?<\/strong><\/mark><\/p>\n\n\n\n<p> <strong>Answer<\/strong> : Cloud Insight \uc11c\ube44\uc2a4\ub294 \ud604\uc7ac Beta \uae30\uac04\uc73c\ub85c \ud55c\uc2dc\uc801 \ubb34\ub8cc \uc81c\uacf5\uc774 \ub418\uace0 \uc788\uc2b5\ub2c8\ub2e4.<br>\ub610\ud55c \ud55c\uc2dc\uc801 \ubb34\ub8cc \uc81c\uacf5\uc774 \ub05d\ub098\ub354\ub77c\ub3c4 Custom Metric \uc218\uc9d1 \ud69f\uc218\uc5d0 \ub300\ud55c \uacfc\uae08 \uad6c\uac04\uc740 \ubb34\ub8cc\uc5d0 \ud574\ub2f9\ub41c\ub2e4\uace0 \ubcfc \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<p>Cloud Insight \uc11c\ube44\uc2a4\uc758 \ubb34\ub8cc \uad6c\uac04\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-regular has-medium-font-size\"><table><thead><tr><th class=\"has-text-align-center\" data-align=\"center\"><strong>\uc11c\ube44\uc2a4<\/strong><\/th><th class=\"has-text-align-center\" data-align=\"center\"><strong>\uad6c\uac04<\/strong><\/th><th class=\"has-text-align-center\" data-align=\"center\"><strong>\uae30\uc900<\/strong><\/th><\/tr><\/thead><tbody><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>Dashboards<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">3\uac74 \uc774\ud558<\/td><td class=\"has-text-align-center\" data-align=\"center\">\ub300\uc2dc\ubcf4\ub4dc \uc218<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>Basic Metric<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">\uc804 \uad6c\uac04 \ub3d9\uc77c<\/td><td class=\"has-text-align-center\" data-align=\"center\">\uc218\uc9d1 \ud69f\uc218<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>Extended Metric<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">432,000\uac74 \uc774\ud558<\/td><td class=\"has-text-align-center\" data-align=\"center\">\uc218\uc9d1 \ud69f\uc218<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>Custom Metric<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">432,000\uac74 \uc774\ud558<\/td><td class=\"has-text-align-center\" data-align=\"center\">\uc218\uc9d1 \ud69f\uc218<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>Read API Calls<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">1,000,000\uac74 \uc774\ud558<\/td><td class=\"has-text-align-center\" data-align=\"center\">\ud638\ucd9c \uc218<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>Write API Calls<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">1,000,000\uac74 \uc774\ud558<\/td><td class=\"has-text-align-center\" data-align=\"center\">\ud638\ucd9c \uc218<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>Event Rule<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">10\uac74 \uc774\ud558<\/td><td class=\"has-text-align-center\" data-align=\"center\">Event Rule \uc218<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>Event SMS<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">50\uac74 \uc774\ud558<\/td><td class=\"has-text-align-center\" data-align=\"center\">\ubc1c\uc1a1 \uac74\uc218<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>Email Notifications<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">1,000\uac74 \uc774\ud558<\/td><td class=\"has-text-align-center\" data-align=\"center\">\ubc1c\uc1a1 \uac74\uc218<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">Q2. Cloud Functions\uc5d0 \ub300\ud55c \ube44\uc6a9\uc774 \ubc1c\uc0dd\ud558\uc9c0 \uc54a\uc744\uae4c\uc694?<\/mark><\/strong><\/p>\n\n\n\n<p> <strong>Answer<\/strong> : Cloud Functions \uc5ed\uc2dc \ubb34\ub8cc \uad6c\uac04\uc774 \uc788\uc73c\uba70 \ube44\uc6a9\uc774 \ud06c\uac8c \ubc1c\uc0dd\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.<br>Cloud Functions\uc758 \ubb34\ub8cc \uad6c\uac04\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th class=\"has-text-align-center\" data-align=\"center\">\uad6c\ubd84<\/th><th class=\"has-text-align-center\" data-align=\"center\">\uc0ac\uc6a9\ub7c9 \uad6c\uac04<\/th><th class=\"has-text-align-center\" data-align=\"center\">\uae30\uc900<\/th><\/tr><\/thead><tbody><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>(\uc2e4\ud589) \uc694\uccad<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">1,000,000 \uc774\ud558<\/td><td class=\"has-text-align-center\" data-align=\"center\">1,000,000\uac74<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>(\ucef4\ud4e8\ud305 \uc0ac\uc6a9) \uc18c\uc694\uc2dc\uac04<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">400,000 \uc774\ud558<\/td><td class=\"has-text-align-center\" data-align=\"center\">GB-\ucd08<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\uc704 Cloud Funtions\uc5d0\uc11c \uc0dd\uc131\ud55c \uae30\uc900\uc73c\ub85c \uacc4\uc0b0\uc744 \ud574\ubd05\uc2dc\ub2e4. <br>(\uc815\uc0c1 \uc791\ub3d9 \uc2dc \ud3c9\uade0 \uc2e4\ud589 \uc2dc\uac04\uc740 100~200ms \uac00 \ubc1c\uc0dd\ud569\ub2c8\ub2e4.)<\/p>\n\n\n\n<ul><li><strong>\ud3c9\uade0 \uc2e4\ud589 \uc2dc\uac04<\/strong> : 100~200 (\ubc00\ub9ac\ucd08)<\/li><li><strong>\uc561\uc158 \uba54\ubaa8\ub9ac<\/strong> : 128 (MB)<\/li><li><strong>\uc6d4 \uc694\uccad \uc218<\/strong> : 60(\ubd84) x 24(\uc2dc\uac04) x 30(\uc77c) = 43,200(\ud68c)<\/li><\/ul>\n\n\n\n<p><strong><em><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7b7b7b\" class=\"has-inline-color\"># \ucef4\ud4e8\ud305 \uc0ac\uc6a9<\/mark><\/em><\/strong><br>    \u00b7  \ucd1d \ucef4\ud4e8\ud305 \uc2dc\uac04(\ud3c9\uade0 \uc2e4\ud589 \uc2dc\uac04 * \uc6d4 \uc694\uccad\uc218) : 200(\ubc00\ub9ac\ucd08) x 43,200(\ud68c) <br>        = 8,640,000(\ubc00\ub9ac\ucd08) = 8,640(GB-\ucd08)<br><br><strong>\ubb34\ub8cc \uad6c\uac04(\uc6d4) : 400,000(GB-\ucd08) \uc774\ubbc0\ub85c \uacfc\uae08\uc774 \ubc1c\uc0dd\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.<\/strong><\/p>\n\n\n\n<p><strong><em><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7b7b7b\" class=\"has-inline-color\"># \uc2e4\ud589 \uc694\uccad<\/mark><\/em><\/strong><br>    \u00b7  \uc6d4 \uc694\uccad \uc218 : 43,200(\ud68c)<br><br><strong>\ubb34\ub8cc \uad6c\uac04(\uc6d4) : 1,000,000 (\ud68c)\uc73c\ub85c \uacfc\uae08\uc774 \ubc1c\uc0dd\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.<\/strong><\/p>\n\n\n\n<p>\uc989, \uc774 \ud3ec\uc2a4\ud305\uc758 &#8216;\uccad\uad6c \ube44\uc6a9 \ubaa8\ub2c8\ud130\ub9c1&#8217;\uc744 \uc704\ud574 Cloud Functions\uc744 \uc0dd\uc131\ud558\uc5ec\ub3c4 <br>\ucef4\ud4e8\ud305 \uc0ac\uc6a9 \ube44\uc6a9 0\uc6d0, \uc2e4\ud589 \uc694\uccad \ube44\uc6a9 0\uc6d0\uc774 \ubc1c\uc0dd\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">Q3. \uc5b4\ub5a4 API\ub97c \uc0ac\uc6a9\ud558\uc600\ub098\uc694?<\/mark><\/strong><\/p>\n\n\n\n<p> <strong>Answer<\/strong> : \ub124\uc774\ubc84 \ud074\ub77c\uc6b0\ub4dc\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 getDemandCostList\uc640 SendData\ub97c \uc0ac\uc6a9\ud558\uc600\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n<div class=\"vlp-link-container vlp-layout-basic wp-block-visual-link-preview-link\"><a href=\"https:\/\/api.ncloud-docs.com\/docs\/platform-costandusage-getdemandcostlist\" class=\"vlp-link\" title=\"getDemandCostList - Cost And Usage\" rel=\"nofollow\" target=\"_blank\"><\/a><div class=\"vlp-layout-zone-side\"><div class=\"vlp-block-2 vlp-link-image\"><img decoding=\"async\" src=\"https:\/\/cdn.document360.io\/6998976f-9d95-4df8-b847-d375892b92c2\/Images\/Documentation\/ncp-apidocs-logo-ko-v2.svg\" style=\"max-width: 150px; max-height: 150px\" \/><\/div><\/div><div class=\"vlp-layout-zone-main\"><div class=\"vlp-block-0 vlp-link-title\">getDemandCostList &#8211; Cost And Usage<\/div><div class=\"vlp-block-1 vlp-link-summary\">\uccad\uad6c \ube44\uc6a9 \ub9ac\uc2a4\ud2b8\ub97c \uc870\ud68c\ud569\ub2c8\ub2e4.<\/div><\/div><\/div>\n\n<div class=\"vlp-link-container vlp-layout-basic wp-block-visual-link-preview-link\"><a href=\"https:\/\/api.ncloud-docs.com\/docs\/management-cloudinsight-senddata\" class=\"vlp-link\" title=\"SendData - Cloud Insight\" rel=\"nofollow\" target=\"_blank\"><\/a><div class=\"vlp-layout-zone-side\"><div class=\"vlp-block-2 vlp-link-image\"><img decoding=\"async\" src=\"https:\/\/cdn.document360.io\/6998976f-9d95-4df8-b847-d375892b92c2\/Images\/Documentation\/ncp-apidocs-logo-ko-v2.svg\" style=\"max-width: 150px; max-height: 150px\" \/><\/div><\/div><div class=\"vlp-layout-zone-main\"><div class=\"vlp-block-0 vlp-link-title\">SendData &#8211; Cloud Insight<\/div><div class=\"vlp-block-1 vlp-link-summary\">JSON \ub370\uc774\ud130\ub97c Cloud Insight Collector\ub85c \ubcf4\ub0c5\ub2c8\ub2e4.<\/div><\/div><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"has-white-color has-cyan-bluish-gray-background-color has-text-color has-background wp-block-heading\"> Personal Comments<\/h3>\n\n\n\n<p>\uc774 \ud3ec\uc2a4\ud305\uc73c\ub85c \uc778\ud574 \uc758\ub3c4\ud558\uc9c0 \uc54a\uc740 \ube44\uc6a9 \ubc1c\uc0dd\uc744 \uc904\uc774\uace0 \ub124\uc774\ubc84 \ud074\ub77c\uc6b0\ub4dc\ub97c \uc0ac\uc6a9\ud558\ub294 \uc720\uc800\ub4e4\uc774 \uc774\ub7ec\ud55c \ubb38\uc81c\ub85c Bad Experience\uac00 \uc0dd\uae30\uc9c0 \uc54a\uae38 \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\ud2b9\ud788 \ub124\uc774\ubc84 \ud074\ub77c\uc6b0\ub4dc\ub97c \uc2dc\uc791\ud558\ub294 \ud559\uc0dd\ub4e4\uacfc \ucde8\uc900\uc0dd\ub4e4\uc5d0\uac8c\ub294 \ub354\uc6b1 \uc774 \ud3ec\uc2a4\ud305\uc774 \uc54c\ub824\uc84c\uc73c\uba74 \ud569\ub2c8\ub2e4. <\/p>\n\n\n\n<p>\ub124\uc774\ubc84 \ud074\ub77c\uc6b0\ub4dc\ub97c \uc2dc\uc791\ud558\uac8c\ub418\uba74 VPC \uc0dd\uc131 \ud6c4 Server\ub97c \uc0dd\uc131\ud558\uac70\ub098 \ub2e4\ub978 \uc11c\ube44\uc2a4\ub4e4 \uba3c\uc800 \uc0ac\uc6a9\ud574\ubcf4\uace0 \uc2f6\uaca0\uc9c0\ub9cc \uc7a0\uc2dc \ubbf8\ub904\ub450\uace0 \ube44\uc6a9 \ubaa8\ub2c8\ud130\ub9c1 \uc54c\ub9bc\ubd80\ud130 \uad6c\ucd95\ud558\ub294 \uac83\uc774 \uc608\uc0c1\uce58\ubabb\ud55c \uacfc\uae08\uc744 \ub9c9\ub294 \ubc29\ubc95\uc785\ub2c8\ub2e4.<\/p>\n\n\n\n<p style=\"font-size:15px\"><mark style=\"background-color:rgba(0, 0, 0, 0);color:#007349\" class=\"has-inline-color\">p.s. \uc9c0\uc18d\uc801\uc778 \ub2ec\ub7ec \ud3ed\ub4f1&#8230; \ub124\uc774\ubc84 \ud074\ub77c\uc6b0\ub4dc \ud50c\ub7ab\ud3fc\uc740 \ub354\uc6b1 \ube44\uc6a9 \ud6a8\uc728\uc801\uc778 \ud074\ub77c\uc6b0\ub4dc\uac00 \ub418\uc5c8\uc2b5\ub2c8\ub2e4? <br>       \ube44\uc6a9 \ubaa8\ub2c8\ud130\ub9c1 \uc0dd\uc131 \ud6c4 \ub9c8\uc74c\uaecf \uc0ac\uc6a9\ud569\uc2dc\ub2e4!<\/mark><\/p>\n\n\n\n<p>\uae34 \uae00 \uc77d\uc5b4\uc8fc\uc154\uc11c \uac10\uc0ac\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"137\" src=\"https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2021\/08\/25143135\/ncloud-master-1.png\" alt=\"\" class=\"wp-image-1265\" srcset=\"https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2021\/08\/25143135\/ncloud-master-1.png 800w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2021\/08\/25143135\/ncloud-master-1-300x51.png 300w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2021\/08\/25143135\/ncloud-master-1-768x132.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\uc548\ub155\ud558\uc138\uc694. ManVSCloud \uae40\uc218\ud604\uc785\ub2c8\ub2e4. \ud074\ub77c\uc6b0\ub4dc\ub97c \uc0ac\uc6a9\ud558\ub2e4\ubcf4\uba74 \ube44\uc6a9\uc5d0 \ub300\ud55c \uace0\ubbfc\uc774 \ube60\uc9c8 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4. \uacc4\uc815 \ud0c8\ucde8\ub85c \uc778\ud55c \ube44\uc6a9 \ud3ed\ud0c4\ubfd0\ub9cc \uc544\ub2c8\ub77c \ud559\uc0dd \ubc0f \ucde8\uc900\uc0dd\ub4e4\uc774 \ud559\uc2b5 \uc6a9\ub3c4\ub85c \uc2e4\uc2b5 \ud6c4 \ub9ac\uc18c\uc2a4\ub97c \uc0ad\uc81c\ud558\ub294 \uac83\uc744 \uae5c\ube61\ud558\uc5ec \uacfc\uae08\uc73c\ub85c \uc774\uc5b4\uc9c0\ub294 \uacbd\uc6b0\uac00 \uc7a6\uac8c \ubc1c\uc0dd\ud569\ub2c8\ub2e4. \uc774\ub7ec\ud55c \ubb38\uc81c\ub85c \uc778\ud574 \ud0c0\ud074\ub77c\uc6b0\ub4dc\uc758 \uc11c\uc801\uc774\ub098 \uad50\uc721\uc5d0\uc11c\ub3c4 \ube44\uc6a9 \ubaa8\ub2c8\ud130\ub9c1\uc5d0 \ub300\ud55c \uc548\ub0b4\ub098 \ub9ac\uc18c\uc2a4 \uc0ad\uc81c\ub97c \uc0c1\ub2f9\ud788 \uac15\uc870\ud558\uace0 \uc788\uc73c\uba70 \ub124\uc774\ubc84 \ud074\ub77c\uc6b0\ub4dc \ud50c\ub7ab\ud3fc\uc5d0\uc11c\ub3c4 \ub3d9\uc77c\ud558\uac8c \uc758\ub3c4\ud558\uc9c0 \uc54a\uc740 \uacfc\uae08\uc744 \ub9c9\uae30 \uc704\ud574 \ube44\uc6a9 \ubaa8\ub2c8\ud130\ub9c1\uc740 \ubc18\ub4dc\uc2dc \ud544\uc218\ub85c \uc801\uc6a9\ud574\uc57c\ud560 \ubd80\ubd84\uc785\ub2c8\ub2e4. \ud558\uc9c0\ub9cc \ud604\uc7ac\uae4c\uc9c0 \ub124\uc774\ubc84 \ud074\ub77c\uc6b0\ub4dc\uc5d0\uc11c \ube44\uc6a9 \ubaa8\ub2c8\ud130\ub9c1\uc744 \uc124\uc815\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud55c \uc11c\uc801\uc774\ub098 \ube14\ub85c\uadf8 \ud3ec\uc2a4\ud305\uc740 \ubc1c\uacac\ud558\uc9c0 \ubabb\ud588\uc2b5\ub2c8\ub2e4. \uadf8\ub7ec\ubbc0\ub85c \uc624\ub298\uc740 \ub124\uc774\ubc84 \ud074\ub77c\uc6b0\ub4dc\uc5d0\uc11c \uccad\uad6c \ube44\uc6a9 \ubaa8\ub2c8\ud130\ub9c1\uc744 \uc0dd\uc131\ud558\uace0 \uc54c\ub78c\uc744 \ubc1b\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \ud3ec\uc2a4\ud305\ud558\uace0\uc790 \ud569\ub2c8\ub2e4. \uc774 \ud3ec\uc2a4\ud305\uc5d0\uc11c \uc791\uc131\ub420 \ube44\uc6a9 \ubaa8\ub2c8\ud130\ub9c1\uc758 \ud50c\ub85c\uc6b0\ub294 \uc704 \uadf8\ub9bc\uacfc \uac19\uc2b5\ub2c8\ub2e4. Cloud Insight\uc5d0\ub294 \uacc4\uc815\uc774 \uc0ac\uc6a9\ud55c \ub9ac\uc18c\uc2a4\uc758 \ube44\uc6a9\uc744 \ubaa8\ub2c8\ud130\ub9c1 \ud560 \uc218 \uc788\ub294 \uc9c0\ud45c\uac00 \uc5c6\uc2b5\ub2c8\ub2e4.\uadf8\ub7ec\ubbc0\ub85c \uccad\uad6c \ube44\uc6a9\uc5d0 \ub300\ud55c Metric \uc0dd\uc131 \ubc0f \ub370\uc774\ud130\ub97c Cloud Insight\ub85c \ubcf4\ub0b4\uc8fc\ub294 \uc791\uc5c5\uc774 \ud544\uc694\ud569\ub2c8\ub2e4. How? \uba3c\uc800 \uccad\uad6c \ube44\uc6a9\uc5d0 \ub300\ud55c \ub370\uc774\ud130\ub97c \ubcf4\ub0b4\ub294 \uc791\uc5c5\uc740 Cloud Functions\uc744 \uc0ac\uc6a9\ud560 \uac83\uc785\ub2c8\ub2e4.Cloud Functions\uc740 \ub124\uc774\ubc84 \ud074\ub77c\uc6b0\ub4dc\uc758 Serverless \uc0c1\ud488\uc785\ub2c8\ub2e4.\uc11c\ubc84 \uad00\ub9ac\ub098 \ubcc4\ub3c4\uc758 \ud504\ub85c\ube44\uc800\ub2dd\uc5d0 \ub300\ud55c \ubd80\ub2f4 \uc5c6\uc774 \ucf54\ub4dc\uac00 \uc2e4\ud589\ub41c \ub9cc\ud07c\ub9cc \ube44\uc6a9\uc774 \ubc1c\uc0dd\ud569\ub2c8\ub2e4. \ub610\ud55c Cloud Insight\ub85c \uc8fc\uae30\uc801\uc778 \ub370\uc774\ud130 \uc804\uc1a1\uc774 \ud544\uc694\ud55c\ub370 Cloud Functions\uc758 Trigger\ub294 cron\uc744 \uc81c\uacf5\ud558\ubbc0\ub85c \uc6d0\ud558\ub294 \uc8fc\uae30\uc5d0 \ub9de\ucdb0\uc11c \ub370\uc774\ud130 \uc804\uc1a1\uc774 \uac00\ub2a5\ud569\ub2c8\ub2e4. \ubb3c\ub860 Server\uc5d0\uc11c \uc774\ub7ec\ud55c \uc791\uc5c5\uc744 \ud558\ub294 \uac83\ub3c4 \uac00\ub2a5\ud558\uc9c0\ub9cc \uc624\uc9c1 \uccad\uad6c \ube44\uc6a9\uc758 \ub370\uc774\ud130\ub97c \uc804\uc1a1\ud558\uae30 \uc704\ud574 Server\ub97c \uc0dd\uc131\ud558\ub294 \uac83\uc740 \uc0c1\ub2f9\ud788 \ube44\uc6a9 \ud6a8\uc728\uc801\uc774\uc9c0 \ubabb\ud55c \uc120\ud0dd\uc785\ub2c8\ub2e4. \uadf8\ub807\ub2e4\uba74 \uccad\uad6c \ube44\uc6a9 \ub370\uc774\ud130\ub97c Cloud Insight\ub85c \ubcf4\ub0b8\ub2e4\uace0 \ud558\uc600\ub294\ub370 \uc5b4\ub514\ub85c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"[NCP] \ub124\uc774\ubc84 \ud074\ub77c\uc6b0\ub4dc\uc5d0\uc11c \ube44\uc6a9 \ubaa8\ub2c8\ud130\ub9c1 \uc124\uc815 \ubc0f \uc54c\ub9bc \ubc1b\uae30","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[457,657,704,702,32,87,91,17,90,16,126,703,699,89,202,398,540,698,700,705,701],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/manvscloud.com\/index.php?rest_route=\/wp\/v2\/posts\/1847"}],"collection":[{"href":"https:\/\/manvscloud.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/manvscloud.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/manvscloud.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/manvscloud.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1847"}],"version-history":[{"count":11,"href":"https:\/\/manvscloud.com\/index.php?rest_route=\/wp\/v2\/posts\/1847\/revisions"}],"predecessor-version":[{"id":1902,"href":"https:\/\/manvscloud.com\/index.php?rest_route=\/wp\/v2\/posts\/1847\/revisions\/1902"}],"wp:attachment":[{"href":"https:\/\/manvscloud.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/manvscloud.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1847"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/manvscloud.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}