Skip to content

Commit 9fedc40

Browse files
author
Mattias Schlenker
committed
also add minimal example
1 parent 0836e28 commit 9fedc40

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: utf-8 -*-
3+
# Shebang only needed for editor!
4+
5+
from cmk.rulesets.v1 import Label, Title, Help
6+
from cmk.rulesets.v1.form_specs import (
7+
BooleanChoice,
8+
DefaultValue,
9+
DictElement,
10+
Dictionary,
11+
String,
12+
TimeSpan,
13+
TimeMagnitude
14+
)
15+
from cmk.rulesets.v1.rule_specs import AgentConfig, HostCondition, Topic
16+
17+
def _parameter_form_bakery():
18+
return Dictionary(
19+
elements = {}
20+
)
21+
22+
rule_spec_hello_world_bakery = AgentConfig(
23+
name = "hello_world",
24+
title = Title("Hello bakery!"),
25+
topic = Topic.GENERAL,
26+
parameter_form = _parameter_form_bakery,
27+
)
28+

0 commit comments

Comments
 (0)