CreateRuleGroup

Prev Next

Event Rule์„ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.

์š”์ฒญ ํ˜•์‹์„ ์„ค๋ช…ํ•ฉ๋‹ˆ๋‹ค. ์š”์ฒญ ํ˜•์‹์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.

๋ฉ”์„œ๋“œ URI
POST /cw_fea/real/cw/api/rule/group/ruleGrp

Cloud Insight API์—์„œ ๊ณตํ†ต์œผ๋กœ ์‚ฌ์šฉํ•˜๋Š” ํ—ค๋”์— ๋Œ€ํ•œ ์ •๋ณด๋Š” Cloud Insight ์š”์ฒญ ํ—ค๋”๋ฅผ ์ฐธ์กฐํ•ด ์ฃผ์‹ญ์‹œ์˜ค.

์š”์ฒญ ๋ฐ”๋”” ๊ด€๋ จ ํ•„๋“œ์— ๋Œ€ํ•œ ์„ค๋ช…์€ CreateOrUpdateRuleGroupDto๋ฅผ ์ฐธ์กฐํ•ด ์ฃผ์‹ญ์‹œ์˜ค.

์š”์ฒญ ์˜ˆ์‹œ๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.

curl --location --request POST 'https://cw.apigw.fin-ntruss.com/cw_fea/real/cw/api/rule/group/ruleGrp' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--header 'Content-Type: application/json' \
--data '{
    "groupName": "createRuleGroup2",
    "monitorGroupKey": ["**********"],
    "metricsGroupKey": ["**********"],
    "groupDesc": "์ด๋ฒคํŠธ ๋ฃฐ์„ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.",
    "prodKey": "**********"
}'
Shell

์‘๋‹ต ํ˜•์‹์„ ์„ค๋ช…ํ•ฉ๋‹ˆ๋‹ค.

์‘๋‹ต ๋ฐ”๋””์— ๋Œ€ํ•œ ์„ค๋ช…์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.

ํ•„๋“œ ํƒ€์ž… ํ•„์ˆ˜ ์—ฌ๋ถ€ ์„ค๋ช…
ruleGroupId String - Event Rule ์•„์ด๋””

๋„ค์ด๋ฒ„ ํด๋ผ์šฐ๋“œ ํ”Œ๋žซํผ์—์„œ ๊ณตํ†ต์œผ๋กœ ์‚ฌ์šฉํ•˜๋Š” ์‘๋‹ต ์ƒํƒœ ์ฝ”๋“œ์— ๋Œ€ํ•œ ์ •๋ณด๋Š” Cloud Insight API ์‘๋‹ต ์ƒํƒœ ์ฝ”๋“œ๋ฅผ ์ฐธ์กฐํ•ด ์ฃผ์‹ญ์‹œ์˜ค.

์‘๋‹ต ์˜ˆ์‹œ๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.

"**********"
JSON