CreateRuleDirectly
    • PDF

    CreateRuleDirectly

    • PDF

    Article Summary

    개요

    감시 대상 그룹과 감시 항목 그룹 생성 없이 감시 대상과 감시 항목을 지정하여 바로 Event Rule을 생성합니다.

    요청

    API URL

    URL: https://cw.apigw.ntruss.com/cw_fea/real/cw/api/rule/group/ruleGrp/createDirectly
    Method: POST
    

    요청 헤더

    공통설정에 명시된 요청헤더가 필요합니다.

    Content-Type: application/json
    x-ncp-apigw-signature-v2: {generated signature}
    x-ncp-apigw-timestamp: {current timestamp}
    x-ncp-iam-access-key: {your iam access key}
    

    요청 바디

    DirectRuleGroupCreateDto

    예시

    요청 예시

    POST /cw_fea/real/cw/api/rule/group/ruleGrp/createDirectly
    Host: cw.apigw.ntruss.com
    Content-Type: application/json
    x-ncp-apigw-signature-v2: {generated signature}
    x-ncp-apigw-timestamp: {current timestamp}
    x-ncp-iam-access-key: {your iam access key}
    
    Payload:
    {
        "groupDesc": "새로운 Event Rule을 바로 생성합니다.",
        "groupName": "eventRuleDirect001",
        "metricsGroup": {
            "groupDesc": "감시 항목 그룹을 바로 생성합니다.",
            "groupName": "metricsGroup001",
            "metricsGroupItems": [
                {
                    "calculation": "COUNT",
                    "condition": "GT",
                    "desc": "string",
                    "dimensions": [
                        {
                            "dim": "type",
                            "val": "svr"
                        }
                    ],
                    "duration": 1,
                    "eventLevel": "INFO",
                    "metric": "avg_write_cnt",
                    "threshold": 0.7
                }
            ],
            "prodKey": "xxxxxxxxxxxxxxxxxx",
            "temporaryGroup": true
        },
        "monitorGroup": {
            "groupDesc": "감시 대상 그룹을 바로 생성합니다.",
            "groupName": "monitorGroup001",
            "monitorGroupItemList": [
                {
                    "resourceId": "resourceId001"
                }
            ],
            "prodKey": "xxxxxxxxxxxxxxxxxx",
            "temporaryGroup": true
        },
        "prodKey": "xxxxxxxxxxxxxxxxxx",
        "recipientNotifications": [
            {
                "groupName": "통보대상자그룹001",
                "groupNum": xx,
                "notifyTypes": [
                    "SMS",
                    "EMAIL"
                ]
            }
        ]
    }
    
    

    응답 예시

    오류없이 생성이 완료된 경우 HTTP code 200과 생성된 Event Rule의 id가 응답으로 리턴됩니다.

    "xxxxxxxxxxxxxxxxxx"
    

    이 문서가 도움이 되었습니까?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.