{"type":"model","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/42552ab7-d679-37b0-afe0-7313ad2e8c01","info":{"title":"Service Health Heuristic Packages APIs","description":"APIs for requesting rule and metric data stored by the Crosswork Service Health application.","termsOfService":"terms-of-service","contact":{"name":"Crosswork Team, Cisco","email":"support@cisco.com"},"license":{"name":"Cisco Software License Agreement","url":"http://www.cisco.com/public/sw-license-agreement.html"},"version":"7.1.0"},"security":[{"bearerAuth":[]}],"x-parser-conf":{"overview":{"markdownPath":"reference/ServiceHealth/sh_heuristic_packages_overview.md"}},"openapi":"3.0.1","servers":[{"url":"/crosswork/aa/hpmgr"}],"securitySchemes":{"bearerAuth":{"type":"apiKey","description":"Security token for authorizing requests for these APIs.","name":"Authorization","in":"header"}}},"spec":{"type":"object","properties":{"rule_id":{"type":"string","description":"Dynamic dependency for a subservice. The subservice uses the rule ID to compute the dynamic subservices."},"rule_params":{"type":"object","additionalProperties":{"type":"string","description":"Additional properties"},"description":"The map of parameters needed to build the dynamic subservice. The key corresponds to ruleClass parameters and the value corresponds to SSClass parameters."},"rule_trigger_conditions":{"type":"object","description":"Dynamic Config Rule Trigger Conditions.","properties":{"description":{"type":"string","description":"Description"},"activate":{"type":"string","description":"Determines when to trigger the Rule and spawn child subservices."},"deactivate":{"type":"string","description":"Determines when to delete all the child subservices."},"update":{"type":"string","description":"Determines whether the current sub-graph needs to be evaluated with the new feed received."}},"$$ref":"#/components/schemas/DynamicConfigRuleTriggerConditions"}},"description":"Sample payload for dynamic_dependencies: \n\"dynamicConfig\": {\n\"ruleID\": \"rule.dynamic.l2vpn.sr.policy.subgraph system\",\n\"ruleParams\": [\n{\n\"serviceId\": \"vpn-id\"\n},\n{\n\"srpolicies\": \"srpolicy_list\"\n}\n],\n\"ruleTriggerConditions\": {\n\"description\": \"Activate when at least one dynamic SR Policy gets instantiated. Deactivate (sample for now) when a certain condition is met (3 policies). Update as long as the number of discovered policies is less than 20.\",\n\"activate\": \"Len(srpolicy_list) \u003e 0\",\n\"deactivate\": \"Len(srpolicy_list) \u003e 2\",\n\"update\": \"Delta(srpolicy_list) and Len(srpolicy_list) \u003c= 20\"\n}\n},","$$ref":"#/components/schemas/DynamicConfig","title":"DynamicConfig"}}