66
66
query="query_example",
67
67
),
68
68
],
69
+ has_extended_title=True,
69
70
is_enabled=True,
70
71
message="",
71
- name="",
72
+ name="My security monitoring rule. ",
72
73
options=SecurityMonitoringRuleOptions(
73
74
detection_method=SecurityMonitoringRuleDetectionMethod("threshold"),
74
75
evaluation_window=SecurityMonitoringRuleEvaluationWindow(0),
94
95
],
95
96
metric="metric_example",
96
97
name="name_example",
97
- query="a < ; 3",
98
+ query="a > ; 3",
98
99
),
99
100
],
100
101
tags=["env:prod","team:security"],
374
375
query="query_example",
375
376
),
376
377
],
378
+ has_extended_title=True,
377
379
is_enabled=True,
378
380
message="message_example",
379
381
name="name_example",
408
410
tags=[
409
411
"tags_example",
410
412
],
413
+ version=1,
411
414
) # SecurityMonitoringRuleUpdatePayload |
412
415
413
416
# example passing only required values which don't have defaults set
417
420
pprint(api_response)
418
421
except ApiException as e:
419
422
print("Exception when calling SecurityMonitoringApi->update_security_monitoring_rule: %s\n" % e)
420
- </ code > </ pre > < h3 id =parameters_11 > Parameters</ h3 > < table > < thead > < tr > < th > Name</ th > < th > Type</ th > < th > Description</ th > < th > Notes</ th > </ tr > </ thead > < tbody > < tr > < td > < strong > rule_id</ strong > </ td > < td > < strong > str</ strong > </ td > < td > The ID of the rule.</ td > < td > </ td > </ tr > < tr > < td > < strong > body</ strong > </ td > < td > < a href =../SecurityMonitoringRuleUpdatePayload/ > < strong > SecurityMonitoringRuleUpdatePayload</ strong > </ a > </ td > < td > </ td > < td > </ td > </ tr > </ tbody > </ table > < h3 id =return-type_11 > Return type</ h3 > < p > < a href =../SecurityMonitoringRuleResponse/ > < strong > SecurityMonitoringRuleResponse</ strong > </ a > </ p > < h3 id =authorization_11 > Authorization</ h3 > < p > < a href =../#apiKeyAuth > apiKeyAuth</ a > , < a href =../#appKeyAuth > appKeyAuth</ a > </ p > < h3 id =http-request-headers_11 > HTTP request headers</ h3 > < ul > < li > < strong > Content-Type</ strong > : application/json</ li > < li > < strong > Accept</ strong > : application/json</ li > </ ul > < h3 id =http-response-details_11 > HTTP response details</ h3 > < table > < thead > < tr > < th > Status code</ th > < th > Description</ th > < th > Response headers</ th > </ tr > </ thead > < tbody > < tr > < td > < strong > 200</ strong > </ td > < td > OK</ td > < td > -</ td > </ tr > < tr > < td > < strong > 400</ strong > </ td > < td > Bad Request</ td > < td > -</ td > </ tr > < tr > < td > < strong > 401</ strong > </ td > < td > Concurrent Modification</ td > < td > -</ td > </ tr > < tr > < td > < strong > 403</ strong > </ td > < td > Not Authorized</ td > < td > -</ td > </ tr > < tr > < td > < strong > 404</ strong > </ td > < td > Not Found</ td > < td > -</ td > </ tr > </ tbody > </ table > < p > < a href =# > [Back to top]</ a > < a href =../#documentation-for-api-endpoints > [Back to API list]</ a > < a href =../#documentation-for-models > [Back to Model list]</ a > < a href =../ > [Back to README]</ a > </ p > < hr > < div class =md-source-date > < small > Last update: < span class ="git-revision-date-localized-plugin git-revision-date-localized-plugin-date "> June 3, 2021</ span > </ small > </ div > </ article > </ div > </ div > </ main > < footer class =md-footer > < div class ="md-footer-meta md-typeset "> < div class ="md-footer-meta__inner md-grid "> < div class =md-footer-copyright > < div class =md-footer-copyright__highlight > Copyright © Datadog, Inc. 2020-present </ div > Made with < a href =https://squidfunk.github.io/mkdocs-material/ target =_blank rel =noopener > Material for MkDocs </ a > </ div > < div class =md-footer-social > < a href =https://www.datadoghq.com/blog/engineering/ target =_blank rel =noopener title =www.datadoghq.com class =md-footer-social__link > < svg xmlns =http://www.w3.org/2000/svg viewbox ="0 0 512 512 "> < path d ="M172.2 226.8c-14.6-2.9-28.2 8.9-28.2 23.8V301c0 10.2 7.1 18.4 16.7 22 18.2 6.8 31.3 24.4 31.3 45 0 26.5-21.5 48-48 48s-48-21.5-48-48V120c0-13.3-10.7-24-24-24H24c-13.3 0-24 10.7-24 24v248c0 89.5 82.1 160.2 175 140.7 54.4-11.4 98.3-55.4 109.7-109.7 17.4-82.9-37-157.2-112.5-172.2zM209 0c-9.2-.5-17 6.8-17 16v31.6c0 8.5 6.6 15.5 15 15.9 129.4 7 233.4 112 240.9 241.5.5 8.4 7.5 15 15.9 15h32.1c9.2 0 16.5-7.8 16-17C503.4 139.8 372.2 8.6 209 0zm.3 96c-9.3-.7-17.3 6.7-17.3 16.1v32.1c0 8.4 6.5 15.3 14.8 15.9 76.8 6.3 138 68.2 144.9 145.2.8 8.3 7.6 14.7 15.9 14.7h32.2c9.3 0 16.8-8 16.1-17.3-8.4-110.1-96.5-198.2-206.6-206.7z "/> </ svg > </ a > < a href =https://github.com/DataDog target =_blank rel =noopener title =github.com class =md-footer-social__link > < svg xmlns =http://www.w3.org/2000/svg viewbox ="0 0 480 512 "> < path d ="M186.1 328.7c0 20.9-10.9 55.1-36.7 55.1s-36.7-34.2-36.7-55.1 10.9-55.1 36.7-55.1 36.7 34.2 36.7 55.1zM480 278.2c0 31.9-3.2 65.7-17.5 95-37.9 76.6-142.1 74.8-216.7 74.8-75.8 0-186.2 2.7-225.6-74.8-14.6-29-20.2-63.1-20.2-95 0-41.9 13.9-81.5 41.5-113.6-5.2-15.8-7.7-32.4-7.7-48.8 0-21.5 4.9-32.3 14.6-51.8 45.3 0 74.3 9 108.8 36 29-6.9 58.8-10 88.7-10 27 0 54.2 2.9 80.4 9.2 34-26.7 63-35.2 107.8-35.2 9.8 19.5 14.6 30.3 14.6 51.8 0 16.4-2.6 32.7-7.7 48.2 27.5 32.4 39 72.3 39 114.2zm-64.3 50.5c0-43.9-26.7-82.6-73.5-82.6-18.9 0-37 3.4-56 6-14.9 2.3-29.8 3.2-45.1 3.2-15.2 0-30.1-.9-45.1-3.2-18.7-2.6-37-6-56-6-46.8 0-73.5 38.7-73.5 82.6 0 87.8 80.4 101.3 150.4 101.3h48.2c70.3 0 150.6-13.4 150.6-101.3zm-82.6-55.1c-25.8 0-36.7 34.2-36.7 55.1s10.9 55.1 36.7 55.1 36.7-34.2 36.7-55.1-10.9-55.1-36.7-55.1z "/> </ svg > </ a > < a href =https://twitter.com/datadoghq target =_blank rel =noopener title =twitter.com class =md-footer-social__link > < svg xmlns =http://www.w3.org/2000/svg viewbox ="0 0 512 512 "> < path d ="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z "/> </ svg > </ a > < a href =https://www.instagram.com/datadoghq target =_blank rel =noopener title =www.instagram.com class =md-footer-social__link > < svg xmlns =http://www.w3.org/2000/svg viewbox ="0 0 448 512 "> < path d ="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z "/> </ svg > </ a > </ div > </ div > </ div > </ footer > </ div > < div class =md-dialog data-md-component =dialog > < div class ="md-dialog__inner md-typeset "> </ div > </ div > < script id =__config type =application/json > { "base" : "../.." , "features" : [ ] , "translations" : { "clipboard.copy" : "Copy to clipboard" , "clipboard.copied" : "Copied to clipboard" , "search.config.lang" : "en" , "search.config.pipeline" : "trimmer, stopWordFilter" , "search.config.separator" : "[\\s\\-]+" , "search.placeholder" : "Search" , "search.result.placeholder" : "Type to start searching" , "search.result.none" : "No matching documents" , "search.result.one" : "1 matching document" , "search.result.other" : "# matching documents" , "search.result.more.one" : "1 more on this page" , "search.result.more.other" : "# more on this page" , "search.result.term.missing" : "Missing" , "select.version.title" : "Select version" } , "search" : "../../assets/javascripts/workers/search.b0710199.min.js" , "version" : null } </ script > < script src =../../assets/javascripts/bundle.76f349be.min.js > </ script > </ body > </ html >
423
+ </ code > </ pre > < h3 id =parameters_11 > Parameters</ h3 > < table > < thead > < tr > < th > Name</ th > < th > Type</ th > < th > Description</ th > < th > Notes</ th > </ tr > </ thead > < tbody > < tr > < td > < strong > rule_id</ strong > </ td > < td > < strong > str</ strong > </ td > < td > The ID of the rule.</ td > < td > </ td > </ tr > < tr > < td > < strong > body</ strong > </ td > < td > < a href =../SecurityMonitoringRuleUpdatePayload/ > < strong > SecurityMonitoringRuleUpdatePayload</ strong > </ a > </ td > < td > </ td > < td > </ td > </ tr > </ tbody > </ table > < h3 id =return-type_11 > Return type</ h3 > < p > < a href =../SecurityMonitoringRuleResponse/ > < strong > SecurityMonitoringRuleResponse</ strong > </ a > </ p > < h3 id =authorization_11 > Authorization</ h3 > < p > < a href =../#apiKeyAuth > apiKeyAuth</ a > , < a href =../#appKeyAuth > appKeyAuth</ a > </ p > < h3 id =http-request-headers_11 > HTTP request headers</ h3 > < ul > < li > < strong > Content-Type</ strong > : application/json</ li > < li > < strong > Accept</ strong > : application/json</ li > </ ul > < h3 id =http-response-details_11 > HTTP response details</ h3 > < table > < thead > < tr > < th > Status code</ th > < th > Description</ th > < th > Response headers</ th > </ tr > </ thead > < tbody > < tr > < td > < strong > 200</ strong > </ td > < td > OK</ td > < td > -</ td > </ tr > < tr > < td > < strong > 400</ strong > </ td > < td > Bad Request</ td > < td > -</ td > </ tr > < tr > < td > < strong > 401</ strong > </ td > < td > Concurrent Modification</ td > < td > -</ td > </ tr > < tr > < td > < strong > 403</ strong > </ td > < td > Not Authorized</ td > < td > -</ td > </ tr > < tr > < td > < strong > 404</ strong > </ td > < td > Not Found</ td > < td > -</ td > </ tr > </ tbody > </ table > < p > < a href =# > [Back to top]</ a > < a href =../#documentation-for-api-endpoints > [Back to API list]</ a > < a href =../#documentation-for-models > [Back to Model list]</ a > < a href =../ > [Back to README]</ a > </ p > < hr > < div class =md-source-date > < small > Last update: < span class ="git-revision-date-localized-plugin git-revision-date-localized-plugin-date "> June 15, 2021</ span > </ small > </ div > </ article > </ div > </ div > </ main > < footer class =md-footer > < div class ="md-footer-meta md-typeset "> < div class ="md-footer-meta__inner md-grid "> < div class =md-footer-copyright > < div class =md-footer-copyright__highlight > Copyright © Datadog, Inc. 2020-present </ div > Made with < a href =https://squidfunk.github.io/mkdocs-material/ target =_blank rel =noopener > Material for MkDocs </ a > </ div > < div class =md-footer-social > < a href =https://www.datadoghq.com/blog/engineering/ target =_blank rel =noopener title =www.datadoghq.com class =md-footer-social__link > < svg xmlns =http://www.w3.org/2000/svg viewbox ="0 0 512 512 "> < path d ="M172.2 226.8c-14.6-2.9-28.2 8.9-28.2 23.8V301c0 10.2 7.1 18.4 16.7 22 18.2 6.8 31.3 24.4 31.3 45 0 26.5-21.5 48-48 48s-48-21.5-48-48V120c0-13.3-10.7-24-24-24H24c-13.3 0-24 10.7-24 24v248c0 89.5 82.1 160.2 175 140.7 54.4-11.4 98.3-55.4 109.7-109.7 17.4-82.9-37-157.2-112.5-172.2zM209 0c-9.2-.5-17 6.8-17 16v31.6c0 8.5 6.6 15.5 15 15.9 129.4 7 233.4 112 240.9 241.5.5 8.4 7.5 15 15.9 15h32.1c9.2 0 16.5-7.8 16-17C503.4 139.8 372.2 8.6 209 0zm.3 96c-9.3-.7-17.3 6.7-17.3 16.1v32.1c0 8.4 6.5 15.3 14.8 15.9 76.8 6.3 138 68.2 144.9 145.2.8 8.3 7.6 14.7 15.9 14.7h32.2c9.3 0 16.8-8 16.1-17.3-8.4-110.1-96.5-198.2-206.6-206.7z "/> </ svg > </ a > < a href =https://github.com/DataDog target =_blank rel =noopener title =github.com class =md-footer-social__link > < svg xmlns =http://www.w3.org/2000/svg viewbox ="0 0 480 512 "> < path d ="M186.1 328.7c0 20.9-10.9 55.1-36.7 55.1s-36.7-34.2-36.7-55.1 10.9-55.1 36.7-55.1 36.7 34.2 36.7 55.1zM480 278.2c0 31.9-3.2 65.7-17.5 95-37.9 76.6-142.1 74.8-216.7 74.8-75.8 0-186.2 2.7-225.6-74.8-14.6-29-20.2-63.1-20.2-95 0-41.9 13.9-81.5 41.5-113.6-5.2-15.8-7.7-32.4-7.7-48.8 0-21.5 4.9-32.3 14.6-51.8 45.3 0 74.3 9 108.8 36 29-6.9 58.8-10 88.7-10 27 0 54.2 2.9 80.4 9.2 34-26.7 63-35.2 107.8-35.2 9.8 19.5 14.6 30.3 14.6 51.8 0 16.4-2.6 32.7-7.7 48.2 27.5 32.4 39 72.3 39 114.2zm-64.3 50.5c0-43.9-26.7-82.6-73.5-82.6-18.9 0-37 3.4-56 6-14.9 2.3-29.8 3.2-45.1 3.2-15.2 0-30.1-.9-45.1-3.2-18.7-2.6-37-6-56-6-46.8 0-73.5 38.7-73.5 82.6 0 87.8 80.4 101.3 150.4 101.3h48.2c70.3 0 150.6-13.4 150.6-101.3zm-82.6-55.1c-25.8 0-36.7 34.2-36.7 55.1s10.9 55.1 36.7 55.1 36.7-34.2 36.7-55.1-10.9-55.1-36.7-55.1z "/> </ svg > </ a > < a href =https://twitter.com/datadoghq target =_blank rel =noopener title =twitter.com class =md-footer-social__link > < svg xmlns =http://www.w3.org/2000/svg viewbox ="0 0 512 512 "> < path d ="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z "/> </ svg > </ a > < a href =https://www.instagram.com/datadoghq target =_blank rel =noopener title =www.instagram.com class =md-footer-social__link > < svg xmlns =http://www.w3.org/2000/svg viewbox ="0 0 448 512 "> < path d ="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z "/> </ svg > </ a > </ div > </ div > </ div > </ footer > </ div > < div class =md-dialog data-md-component =dialog > < div class ="md-dialog__inner md-typeset "> </ div > </ div > < script id =__config type =application/json > { "base" : "../.." , "features" : [ ] , "translations" : { "clipboard.copy" : "Copy to clipboard" , "clipboard.copied" : "Copied to clipboard" , "search.config.lang" : "en" , "search.config.pipeline" : "trimmer, stopWordFilter" , "search.config.separator" : "[\\s\\-]+" , "search.placeholder" : "Search" , "search.result.placeholder" : "Type to start searching" , "search.result.none" : "No matching documents" , "search.result.one" : "1 matching document" , "search.result.other" : "# matching documents" , "search.result.more.one" : "1 more on this page" , "search.result.more.other" : "# more on this page" , "search.result.term.missing" : "Missing" , "select.version.title" : "Select version" } , "search" : "../../assets/javascripts/workers/search.b0710199.min.js" , "version" : null } </ script > < script src =../../assets/javascripts/bundle.76f349be.min.js > </ script > </ body > </ html >
0 commit comments