{"action":"opened","issue":{"url":"https://api.github.com/repos/draios/python-sdc-client/issues/21","repository_url":"https://api.github.com/repos/draios/python-sdc-client","labels_url":"https://api.github.com/repos/draios/python-sdc-client/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/draios/python-sdc-client/issues/21/comments","events_url":"https://api.github.com/repos/draios/python-sdc-client/issues/21/events","html_url":"https://github.com/draios/python-sdc-client/issues/21","id":214273126,"number":21,"title":"using filters like contains,in , not in for alert ","user":{"login":"amolsh","id":10971917,"avatar_url":"https://avatars3.githubusercontent.com/u/10971917?v=3","gravatar_id":"","url":"https://api.github.com/users/amolsh","html_url":"https://github.com/amolsh","followers_url":"https://api.github.com/users/amolsh/followers","following_url":"https://api.github.com/users/amolsh/following{/other_user}","gists_url":"https://api.github.com/users/amolsh/gists{/gist_id}","starred_url":"https://api.github.com/users/amolsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amolsh/subscriptions","organizations_url":"https://api.github.com/users/amolsh/orgs","repos_url":"https://api.github.com/users/amolsh/repos","events_url":"https://api.github.com/users/amolsh/events{/privacy}","received_events_url":"https://api.github.com/users/amolsh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-15T03:35:30Z","updated_at":"2017-03-15T03:35:30Z","closed_at":null,"body":"Hi,\r\n\r\nI am creating alerts using python-sdc-client. I wanted to use filters in alerts for conditions like **\"contains\", \"in\" , \"does not contain\", \"not in\", \"starts with\"** etc. \r\n**for ex. container.name 'contains' xyz.**\r\n\r\nI am not sure how to do that. Documentation does not explain, how to use such conditions. \r\nCan you please help me to figure out?\r\n\r\n\r\nres = sdclient.create_alert('APITest-KubeApi-Server down(Please Ignore)',                                                    \r\n                            'this alert was automatically created using the python Sysdig Cloud library',\r\n                            6,                                                                                \r\n                            60,                                                                                 \r\n                            'timeAvg(uptime) = 0',                                                      \r\n                            ['host.hostName', 'container.name'],                            \r\n                            'ANY',                           \r\n                            'agent.tag.kubenode = \"controller\" and **container.name contains \"xyz\"**',         \r\n                            notification_channel_ids,\r\n                            False)"}}
{"actor":{"display_login":"amolsh"}}