You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
427 B
11 lines
427 B
import splunk.admin as admin
|
|
import sc_rest
|
|
|
|
class AlertsOverlayHandler(sc_rest.BaseResource):
|
|
required_args = ['threshold_type']
|
|
optional_args = ['business_impact', 'description', 'escalation', 'remediation', 'threshold_min', 'threshold_max', 'threshold_unit']
|
|
endpoint = 'admin/conf-alert_overlay'
|
|
|
|
if __name__ == "__main__":
|
|
admin.init(sc_rest.ResourceHandler(AlertsOverlayHandler), admin.CONTEXT_APP_ONLY)
|