Skip to content

Instantly share code, notes, and snippets.

@krmaxwell
Created March 27, 2013 03:21
Show Gist options
  • Save krmaxwell/5251336 to your computer and use it in GitHub Desktop.
Save krmaxwell/5251336 to your computer and use it in GitHub Desktop.
Incident stuff for verisweet
incident={"incident_id": "incident_id", "confidence": "high", "notes": "analyst notes", "security_compromise": "confirmed", "source_id": "source_id", "summary": "summary test" }
incident['victim']=list()
incident['victim'].append(dict(country='usa',victim_id='somecorp', revenue=dict(amount=10,iso_currency_code='USD')))
>>> incident
{'incident_id': 'incident_id', 'confidence': 'high', 'notes': 'analyst notes', 'summary': 'summary test', 'source_id': 'source_id', 'victim': [{'victim_id': 'somecorp', 'revenue': {'iso_currency_code': 'USD', 'amount': 10}, 'country': 'usa'}], 'security_compromise': 'confirmed'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment