{"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","description":"Metric class OS match","properties":{"type":{"description":"Type of match. Can be \"exact_match\" for os_model or \"version_range\" for os_version.","type":"string"},"match":{"description":"List of os_model or os_version to be matched","type":"array","items":{"type":"string","description":"Items of the os_mdoel list"}},"start":{"description":"Example:\na) If a path is valid for all versions starting from \"7.4.1.28I\" and above, then the version_range can be specified as:\n\"os_version\": {\n\"type\": \"version_range\",\n\"start\": \"7.4.1.28I\"\n}\nThe start version specified here is \"inclusive\"\nb) If a path is valid for all versions only up to \"7.4.1.27I\" and below then version_range can be\nspecified as:\n\"os_version\": {\n\"type\": \"version_range\",\n\"end\": \"7.4.1.27I\"\n}\nThe end version specified here is \"inclusive\"\nc) If a path is valid from version \"1.1.1\" to \"1.4.4\" and all in-between versions, then the range can be specified as:\n\"os_version\": {\n\"type\": \"version_range\",\n\"start\": \"1.1.1\"\n\"end\": \"1.4.4\"\n}\nBoth start and end version are \"inclusive\" i.e. start version \u003c= x \u003c= end version\nd) For \"os_version\", if the device version matches any version provided in the list of \"match\", OR if it satisfies the \"start\" and \"end\" version range requirement, then the device version is\nconsidered as a match. Both \"start\" and \"end\" versions are inclusive.\n\"os_version\": {\n\"type\": \"version_range\",\n\"match\": [\n\"6.6\",\n\"6.3\",\n\"6.5\"\n],\n\"start\": \"1.1.1\",\n\"end\": \"2.2.2\"\n}","type":"string"},"end":{"description":"Defines the end of os_version range","type":"string"}},"$$ref":"#/components/schemas/MetricClassOsMatch","title":"MetricClassOsMatch"}}