Link KPI- Flap-Int-Shut

POST https://{{crosswork_ip}}:30603/crosswork/hi/v1/kpimgmt/link

Request Body

{"kpi"=>[{"kpi_id"=>"pulse_interface_flap_detector", "kpi_name"=>"Interface flap detection", "remediation"=>{"url"=>"/crosswork/nca/v1/mopjobs", "body"=>{"mop_id"=>"router_op_interface_state_xr", "mop_name"=>"Interface State change on XR", "devices"=>{"ids"=>["{{ index .Content `Producer` }}"]}, "check_start_time"=>0, "exec_start_time"=>0, "wae_threshold"=>"90", "name"=>"{{ index .Content `RemName` }}", "tags"=>["{{ index .Content `RemTags` }}"], "execution_params"=>[nil, {"retry_count"=>"3", "retry_interval"=>"5s"}, {"config"=>{"tailf-ned-cisco-ios-xr:interface"=>{"TenGigE"=>[{"id"=>"{{ index .Content `interface-name` }}", "shutdown"=>[nil]}], "Loopback"=>[{"id"=>0, "shutdown"=>[nil]}], "HundredGigE"=>[{"id"=>"{{ index .Content `interface-name` }}", "shutdown"=>nil}], "TwoHundredGigE"=>[{"id"=>"{{ index .Content `interface-name` }}", "shutdown"=>[nil]}], "GigabitEthernet"=>[{"id"=>"{{ index .Content `interface-name` }}", "shutdown"=>[nil]}]}}}]}}}]}