{"base_path":"/","components":null,"consumes":"","definitions":{"AlertRuleTemplate":{"example":{"custom_properties":{"maintainer":"isap","references":"https://localhost/references"},"data_source":"sec_hss_vul","event_grouping":true,"query":"* | select status, count(*) as count group by status","query_type":"SQL","schedule":{"delay_interval":2,"frequency_interval":5,"frequency_unit":"MINUTE","overtime_interval":10,"period_interval":5,"period_unit":"MINUTE"},"severity":"TIPS","template_id":"443a0117-1aa4-4595-ad4a-796fad4d4950","template_name":"Alert rule template","triggers":[{"expression":10,"mode":"COUNT","operator":"GT","severity":"TIPS"}],"update_time":1665221214,"version":"1.0.0"},"properties":{"custom_properties":{"additionalProperties":{"maxLength":1024,"minLength":1,"type":"string"},"description":"自定义扩展信息。Custom properties.","type":"object"},"data_source":{"description":"数据源。Data source.","maxLength":255,"minLength":1,"type":"string"},"event_grouping":{"default":true,"description":"告警分组。Event grouping.","type":"boolean"},"query":{"description":"查询语句。Query.","maxLength":1024,"minLength":1,"type":"string"},"query_type":{"default":"SQL","description":"查询语法,SQL。Query type. SQL.","enum":["SQL"],"maxLength":255,"minLength":1,"type":"string"},"schedule":{"$ref":"#/definitions/Schedule"},"severity":{"default":"TIPS","description":"严重程度,提示、低危、中危、高危、致命。Severity. TIPS, LOW, MEDIUM, HIGH, FATAL","enum":["TIPS","LOW","MEDIUM","HIGH","FATAL"],"maxLength":255,"minLength":1,"type":"string"},"template_id":{"description":"告警规则模板 ID。Alert rule template ID.","maxLength":36,"minLength":36,"type":"string"},"template_name":{"description":"告警规则模板名称。Alert rule template name.","maxLength":255,"minLength":1,"type":"string"},"triggers":{"description":"告警触发规则。Alert triggers.","items":{"$ref":"#/definitions/AlertRuleTrigger"},"maxItems":5,"minItems":1,"type":"array"},"update_time":{"description":"更新时间。Update time.","format":"int64","maximum":9223372036854775807,"minimum":0,"type":"integer"},"version":{"description":"版本。Version","maxLength":255,"minLength":1,"type":"string"}},"required":["template_id","update_time","template_name","data_source","version","severity"],"type":"object"},"AlertRuleTrigger":{"example":{"accumulated_times":1,"expression":10,"mode":"COUNT","operator":"GT","severity":"TIPS"},"properties":{"accumulated_times":{"default":1,"description":"accumulated_times","maximum":1000,"minimum":1,"type":"integer"},"expression":{"description":"expression","maxLength":255,"minLength":1,"type":"string"},"mode":{"default":"COUNT","description":"模式,数量。Mode. COUNT.","enum":["COUNT"],"maxLength":255,"minLength":1,"type":"string"},"operator":{"default":"GT","description":"操作符,等于、不等于、大于、小于。 operator. EQ equal, NE not equal, GT greater than, LT less than.","enum":["EQ","NE","GT","LT"],"maxLength":255,"minLength":1,"type":"string"},"severity":{"description":"严重程度,提示、低危、中危、高危、致命。Severity. TIPS, LOW, MEDIUM, HIGH, FATAL","enum":["TIPS","LOW","MEDIUM","HIGH","FATAL"],"maxLength":255,"minLength":1,"type":"string"}},"required":["expression"],"type":"object"},"Schedule":{"example":{"delay_interval":5,"frequency_interval":5,"frequency_unit":"MINUTE","overtime_interval":10,"period_interval":5,"period_unit":"MINUTE"},"properties":{"delay_interval":{"default":0,"description":"延迟间隔。Delay interval","maximum":10,"minimum":0,"type":"integer"},"frequency_interval":{"description":"调度间隔。Frequency interval.","maximum":60,"minimum":1,"type":"integer"},"frequency_unit":{"description":"调度间隔单位,分钟、小时、天。Frequency unit. MINUTE, HOUR, DAY.","enum":["MINUTE","HOUR","DAY"],"maxLength":255,"minLength":1,"type":"string"},"overtime_interval":{"default":10,"description":"超时间隔。Overtime interval","maximum":10,"minimum":0,"type":"integer"},"period_interval":{"description":"时间窗口间隔。Period interval.","maximum":60,"minimum":1,"type":"integer"},"period_unit":{"description":"时间窗口单位,分钟、小时、天。Period unit. MINUTE, HOUR, DAY.","enum":["MINUTE","HOUR","DAY"],"maxLength":255,"minLength":1,"type":"string"}},"required":["frequency_interval","frequency_unit","period_interval","period_unit"],"type":"object"}},"description":null,"group_id":"705709df764d40488141daec53da8672","host":"secmaster.cn-north-4.myhuaweicloud.com","id":"06938becf47f494eb1b793e7a8d45e1a","info_version":"v2","method":"get","name":"ShowAlertRuleTemplate","parameters":{},"paths":{"/v1/{project_id}/workspaces/{workspace_id}/siem/alert-rules/templates/{template_id}":{"get":{"consumes":["application/json"],"description":"List alert rule templates","operationId":"ShowAlertRuleTemplate","parameters":[{"description":"用户Token,通过调用IAM服务获取用户Token接口获取。 IAM user token, fetch from IAM api.","in":"header","maxLength":2097152,"minLength":1,"name":"X-Auth-Token","required":true,"type":"string","x-example":"asdfasdfas"},{"description":"项目 ID。Project ID.","in":"path","maxLength":36,"minLength":32,"name":"project_id","required":true,"type":"string","x-example":"2b31ed520xxxxxxebedb6e57xxxxxxxx"},{"description":"工作空间 ID。Workspace ID.","in":"path","maxLength":36,"minLength":32,"name":"workspace_id","required":true,"type":"string","x-example":"2b31ed520xxxxxxebedb6e57xxxxxxxx"},{"description":"告警规则模板 ID。Alert rule template ID.","in":"path","maxLength":36,"minLength":36,"name":"template_id","required":true,"type":"string","x-example":"e1972d08-9ced-4fee-a3dc-937ce31dc614"}],"produces":["application/json"],"responses":{"200":{"description":"请求成功","examples":{"application/json":{"custom_properties":{"maintainer":"isap","references":"https://localhost/references"},"data_source":"sec_hss_vul","event_grouping":true,"query":"* | select status, count(*) as count group by status","query_type":"SQL","schedule":{"delay_interval":2,"frequency_interval":5,"frequency_unit":"MINUTE","overtime_interval":10,"period_interval":5,"period_unit":"MINUTE"},"severity":"TIPS","template_id":"443a0117-1aa4-4595-ad4a-796fad4d4950","template_name":"Alert rule template","triggers":[{"expression":10,"mode":"COUNT","operator":"GT","severity":"TIPS"}],"update_time":1665221214,"version":"1.0.0"}},"headers":{"X-request-id":{"description":"This field is the request ID number for task tracking. Format is request_uuid-timestamp-hostname.","type":"string"}},"schema":{"$ref":"#/definitions/AlertRuleTemplate"}},"400":{"description":"请求失败","headers":{"X-request-id":{"description":"This field is the request ID number for task tracking. Format is request_uuid-timestamp-hostname.","type":"string"}}}},"summary":"查看告警规则模板","tags":["告警规则管理"],"x-is-registered":"Y","x-support-sdk":"Y","x-surpport-apiexplorer":true}}},"product_short":"SecMaster","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"查看告警规则模板","tags":"告警规则管理","uri":null,"version":"2.0"}