@@ -75,7 +75,7 @@ The SDK command-line examples require a common set of arguments that specify the
75
75
#### Using username/password
76
76
``` python
77
77
import splunklib.client as client
78
- service = client.connect(host = < host_url> , username = < username> , password = < password> , autologin = True )
78
+ service = client.connect(host = < host_url> , username = < username> , password = < password> , autologin = True )
79
79
```
80
80
81
81
#### Using bearer token
@@ -212,19 +212,19 @@ class CustomStreamingCommand(StreamingCommand):
212
212
Do
213
213
``` python
214
214
@Configuration ()
215
- class GeneratorTest (GeneratingCommand ):
216
- def generate (self ):
217
- yield self .gen_record(_time = time.time(), one = 1 )
218
- yield self .gen_record(_time = time.time(), two = 2 )
215
+ class GeneratorTest (GeneratingCommand ):
216
+ def generate (self ):
217
+ yield self .gen_record(_time = time.time(), one = 1 )
218
+ yield self .gen_record(_time = time.time(), two = 2 )
219
219
```
220
220
221
221
Don't
222
222
``` python
223
223
@Configuration ()
224
- class GeneratorTest (GeneratingCommand ):
225
- def generate (self ):
226
- yield {' _time' : time.time(), ' one' : 1 }
227
- yield {' _time' : time.time(), ' two' : 2 }
224
+ class GeneratorTest (GeneratingCommand ):
225
+ def generate (self ):
226
+ yield {' _time' : time.time(), ' one' : 1 }
227
+ yield {' _time' : time.time(), ' two' : 2 }
228
228
```
229
229
230
230
### Access metadata of modular inputs app
0 commit comments