import tspapi

api = tspapi.API()

source = tspapi.Source(ref='myhost')
api.event_create(title="bar", fingerprint_fields=['@title'], source=source)

import tspapi

api = tspapi.API()

source = tspapi.Source(ref='myhost', _type='host')
api.event_create(title="bar", fingerprint_fields=['@title'], source=source)

Add type field to source
Add type field to source

  import tspapi
  
  api = tspapi.API()
  
- source = tspapi.Source(ref='myhost')
+ source = tspapi.Source(ref='myhost', _type='host')
  api.event_create(title="bar", fingerprint_fields=['@title'], source=source)
  
Add type field to source
## Code Before:
import tspapi

api = tspapi.API()

source = tspapi.Source(ref='myhost')
api.event_create(title="bar", fingerprint_fields=['@title'], source=source)

## Instruction:
Add type field to source
## Code After:
import tspapi

api = tspapi.API()

source = tspapi.Source(ref='myhost', _type='host')
api.event_create(title="bar", fingerprint_fields=['@title'], source=source)
