Merge azure-iot-pcs-simulation into master (#197)
* Rewrite to use fewer threads and increase throughput
* Expose simulation metrics in the status endpoint
* When available, return a URL to the Azure Portal metrics of the pre-provisioned IoT Hub
* Allow to run a simulation against a custom IoT Hub, passing the connection string
* Allow to schedule a simulation, defining start and end time
* Improve security by running the service as a non-root user
* Support multiple behavior scripts in a device model
* Support custom device with custom sensors, behavior and frequency
* Allow to override the initial device state when creating a simulation
* When a simulation starts, create all the devices in batches
* When a simulation is deleted, delete also the devices
* Refactor timers to start sending telemetry as soon as possible
* Refactor and improve how simulation scripts access state and properties
* Change stock models to use AMQP (#189)
* Overall improvements to exceptions handling
* Disable SDK retry, and change timeout from default (4 minutes) to 10 seconds
* Do not retry sending telemetry on failure, skip message
* Use IoT Hub S2 SKU limits by default
* Upgrade to .NET Core 2.0.3
* Upgrade Azure IoT SDK: Devices 1.4.1 to 1.6.0, Devices Client 1.5.2 to 1.7.0
* Run simulation engine in the same process used for the web service
* Move docs, move wiki, new API specs, fix scripts for Windows Bash
* Fix the spelling of “ETag” and allow ETag=*
* Add internal scripts for increasing/decreasing/random telemetry
* Add env vars documentation ENVIRONMENT_VARIABLES.md
* Add more optional logging by device and by actor
* Use logging level and other logging settings from configuration
* Adjust unit test precision to mitigate flaky test
* Add system properties to telemetry messages
* Removing the squash flag from Docker scripts
* Use env vars in launchSettings.json
2018-04-13 03:42:46 +03:00
|
|
|
# Copyright (c) Microsoft. All rights reserved.
|
|
|
|
|
2017-05-01 04:17:01 +03:00
|
|
|
### Custom
|
|
|
|
|
2018-10-10 03:59:19 +03:00
|
|
|
appsettings.local.ini
|
|
|
|
appsettings.development.ini
|
|
|
|
appsettings.dev.ini
|
|
|
|
appsettings.tmp.ini
|
2017-05-01 04:17:01 +03:00
|
|
|
_dev/
|
|
|
|
*.crt
|
|
|
|
*._gistcs
|
|
|
|
*.tgz
|
|
|
|
*.tar
|
|
|
|
*.exe
|
|
|
|
*.bck
|
2017-07-11 20:28:55 +03:00
|
|
|
*_.sh
|
2017-05-26 04:22:07 +03:00
|
|
|
.cache/**
|
|
|
|
target/**
|
2017-07-07 23:49:03 +03:00
|
|
|
.travis
|
2018-05-13 02:16:52 +03:00
|
|
|
.vscode/**
|
2017-05-01 04:17:01 +03:00
|
|
|
|
|
|
|
|
|
|
|
### MacOS
|
|
|
|
|
|
|
|
*.DS_Store
|
|
|
|
.AppleDouble
|
|
|
|
.LSOverride
|
|
|
|
|
|
|
|
# Icon must end with two \r
|
|
|
|
Icon
|
|
|
|
|
|
|
|
|
|
|
|
# Thumbnails
|
|
|
|
._*
|
|
|
|
|
|
|
|
# Files that might appear in the root of a volume
|
|
|
|
.DocumentRevisions-V100
|
|
|
|
.fseventsd
|
|
|
|
.Spotlight-V100
|
|
|
|
.TemporaryItems
|
|
|
|
.Trashes
|
|
|
|
.VolumeIcon.icns
|
|
|
|
.com.apple.timemachine.donotpresent
|
|
|
|
|
|
|
|
# Directories potentially created on remote AFP share
|
|
|
|
.AppleDB
|
|
|
|
.AppleDesktop
|
|
|
|
Network Trash Folder
|
|
|
|
Temporary Items
|
|
|
|
.apdisk
|
|
|
|
|
|
|
|
### Vagrant
|
|
|
|
|
|
|
|
.vagrant/
|
|
|
|
|
|
|
|
### SublimeText
|
|
|
|
|
|
|
|
# cache files for sublime text
|
|
|
|
*.tmlanguage.cache
|
|
|
|
*.tmPreferences.cache
|
|
|
|
*.stTheme.cache
|
|
|
|
|
|
|
|
# workspace files are user-specific
|
|
|
|
*.sublime-workspace
|
|
|
|
|
|
|
|
# project files should be checked into the repository, unless a significant
|
|
|
|
# proportion of contributors will probably not be using SublimeText
|
|
|
|
# *.sublime-project
|
|
|
|
|
|
|
|
# sftp configuration file
|
|
|
|
sftp-config.json
|
|
|
|
|
|
|
|
# Package control specific files
|
|
|
|
Package Control.last-run
|
|
|
|
Package Control.ca-list
|
|
|
|
Package Control.ca-bundle
|
|
|
|
Package Control.system-ca-bundle
|
|
|
|
Package Control.cache/
|
|
|
|
Package Control.ca-certs/
|
|
|
|
Package Control.merged-ca-bundle
|
|
|
|
Package Control.user-ca-bundle
|
|
|
|
oscrypto-ca-bundle.crt
|
|
|
|
bh_unicode_properties.cache
|
|
|
|
|
|
|
|
# Sublime-github package stores a github token in this file
|
|
|
|
# https://packagecontrol.io/packages/sublime-github
|
|
|
|
GitHub.sublime-settings
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### JetBrains
|
|
|
|
|
|
|
|
# User-specific stuff:
|
|
|
|
.idea/**/workspace.xml
|
|
|
|
.idea/**/tasks.xml
|
|
|
|
.idea/dictionaries
|
|
|
|
|
|
|
|
# Sensitive or high-churn files:
|
|
|
|
.idea/**/dataSources/
|
|
|
|
.idea/**/dataSources.ids
|
|
|
|
.idea/**/dataSources.xml
|
|
|
|
.idea/**/dataSources.local.xml
|
|
|
|
.idea/**/sqlDataSources.xml
|
|
|
|
.idea/**/dynamic.xml
|
|
|
|
.idea/**/uiDesigner.xml
|
|
|
|
|
|
|
|
# Gradle:
|
|
|
|
.idea/**/gradle.xml
|
|
|
|
.idea/**/libraries
|
|
|
|
|
|
|
|
# Mongo Explorer plugin:
|
|
|
|
.idea/**/mongoSettings.xml
|
|
|
|
|
|
|
|
## File-based project format:
|
|
|
|
*.iws
|
|
|
|
|
|
|
|
## Plugin-specific files:
|
|
|
|
|
|
|
|
# IntelliJ
|
|
|
|
/out/
|
|
|
|
|
|
|
|
# mpeltonen/sbt-idea plugin
|
|
|
|
.idea_modules/
|
|
|
|
|
|
|
|
# JIRA plugin
|
|
|
|
atlassian-ide-plugin.xml
|
|
|
|
|
|
|
|
# Cursive Clojure plugin
|
|
|
|
.idea/replstate.xml
|
|
|
|
|
|
|
|
# Crashlytics plugin (for Android Studio and IntelliJ)
|
|
|
|
com_crashlytics_export_strings.xml
|
|
|
|
crashlytics.properties
|
|
|
|
crashlytics-build.properties
|
|
|
|
fabric.properties
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### VisualStudio
|
|
|
|
|
|
|
|
# User-specific files
|
|
|
|
*.suo
|
|
|
|
*.user
|
|
|
|
*.userosscache
|
|
|
|
*.sln.docstates
|
|
|
|
|
|
|
|
# User-specific files (MonoDevelop/Xamarin Studio)
|
|
|
|
*.userprefs
|
|
|
|
|
|
|
|
# Build results
|
|
|
|
[Dd]ebug/
|
|
|
|
[Dd]ebugPublic/
|
|
|
|
[Rr]elease/
|
|
|
|
[Rr]eleases/
|
|
|
|
x64/
|
|
|
|
x86/
|
|
|
|
bld/
|
|
|
|
[Bb]in/
|
|
|
|
[Oo]bj/
|
|
|
|
[Ll]og/
|
|
|
|
|
|
|
|
# Visual Studio 2015 cache/options directory
|
|
|
|
.vs/
|
|
|
|
# Uncomment if you have tasks that create the project's static files in wwwroot
|
|
|
|
#wwwroot/
|
|
|
|
|
|
|
|
# MSTest test Results
|
|
|
|
[Tt]est[Rr]esult*/
|
|
|
|
[Bb]uild[Ll]og.*
|
|
|
|
|
|
|
|
# NUNIT
|
|
|
|
*.VisualState.xml
|
|
|
|
TestResult.xml
|
|
|
|
|
|
|
|
# Build Results of an ATL Project
|
|
|
|
[Dd]ebugPS/
|
|
|
|
[Rr]eleasePS/
|
|
|
|
dlldata.c
|
|
|
|
|
|
|
|
# .NET Core
|
|
|
|
project.lock.json
|
|
|
|
project.fragment.lock.json
|
|
|
|
artifacts/
|
2017-08-09 04:10:43 +03:00
|
|
|
##**/Properties/launchSettings.json
|
2017-05-01 04:17:01 +03:00
|
|
|
|
|
|
|
*_i.c
|
|
|
|
*_p.c
|
|
|
|
*_i.h
|
|
|
|
*.ilk
|
|
|
|
*.meta
|
|
|
|
*.obj
|
|
|
|
*.pch
|
|
|
|
*.pdb
|
|
|
|
*.pgc
|
|
|
|
*.pgd
|
|
|
|
*.rsp
|
|
|
|
*.sbr
|
|
|
|
*.tlb
|
|
|
|
*.tli
|
|
|
|
*.tlh
|
|
|
|
*.tmp
|
|
|
|
*.tmp_proj
|
|
|
|
*.log
|
|
|
|
*.vspscc
|
|
|
|
*.vssscc
|
|
|
|
.builds
|
|
|
|
*.pidb
|
|
|
|
*.svclog
|
|
|
|
*.scc
|
|
|
|
|
|
|
|
# Chutzpah Test files
|
|
|
|
_Chutzpah*
|
|
|
|
|
|
|
|
# Visual C++ cache files
|
|
|
|
ipch/
|
|
|
|
*.aps
|
|
|
|
*.ncb
|
|
|
|
*.opendb
|
|
|
|
*.opensdf
|
|
|
|
*.sdf
|
|
|
|
*.cachefile
|
|
|
|
*.VC.db
|
|
|
|
*.VC.VC.opendb
|
|
|
|
|
|
|
|
# Visual Studio profiler
|
|
|
|
*.psess
|
|
|
|
*.vsp
|
|
|
|
*.vspx
|
|
|
|
*.sap
|
|
|
|
|
|
|
|
# TFS 2012 Local Workspace
|
|
|
|
$tf/
|
|
|
|
|
|
|
|
# Guidance Automation Toolkit
|
|
|
|
*.gpState
|
|
|
|
|
|
|
|
# ReSharper is a .NET coding add-in
|
|
|
|
_ReSharper*/
|
|
|
|
*.[Rr]e[Ss]harper
|
|
|
|
*.DotSettings.user
|
|
|
|
|
|
|
|
# JustCode is a .NET coding add-in
|
|
|
|
.JustCode
|
|
|
|
|
|
|
|
# TeamCity is a build add-in
|
|
|
|
_TeamCity*
|
|
|
|
|
|
|
|
# DotCover is a Code Coverage Tool
|
|
|
|
*.dotCover
|
|
|
|
|
|
|
|
# Visual Studio code coverage results
|
|
|
|
*.coverage
|
|
|
|
*.coveragexml
|
|
|
|
|
|
|
|
# NCrunch
|
|
|
|
_NCrunch_*
|
|
|
|
.*crunch*.local.xml
|
|
|
|
nCrunchTemp_*
|
|
|
|
|
|
|
|
# MightyMoose
|
|
|
|
*.mm.*
|
|
|
|
AutoTest.Net/
|
|
|
|
|
|
|
|
# Web workbench (sass)
|
|
|
|
.sass-cache/
|
|
|
|
|
|
|
|
# Installshield output folder
|
|
|
|
[Ee]xpress/
|
|
|
|
|
|
|
|
# DocProject is a documentation generator add-in
|
|
|
|
DocProject/buildhelp/
|
|
|
|
DocProject/Help/*.HxT
|
|
|
|
DocProject/Help/*.HxC
|
|
|
|
DocProject/Help/*.hhc
|
|
|
|
DocProject/Help/*.hhk
|
|
|
|
DocProject/Help/*.hhp
|
|
|
|
DocProject/Help/Html2
|
|
|
|
DocProject/Help/html
|
|
|
|
|
|
|
|
# Click-Once directory
|
|
|
|
publish/
|
|
|
|
|
|
|
|
# Publish Web Output
|
|
|
|
*.[Pp]ublish.xml
|
|
|
|
*.azurePubxml
|
|
|
|
# TODO: Comment the next line if you want to checkin your web deploy settings
|
|
|
|
# but database connection strings (with potential passwords) will be unencrypted
|
|
|
|
*.pubxml
|
|
|
|
*.publishproj
|
|
|
|
|
|
|
|
# Microsoft Azure Web App publish settings. Comment the next line if you want to
|
|
|
|
# checkin your Azure Web App publish settings, but sensitive information contained
|
|
|
|
# in these scripts will be unencrypted
|
|
|
|
PublishScripts/
|
|
|
|
|
|
|
|
# NuGet Packages
|
|
|
|
*.nupkg
|
|
|
|
# The packages folder can be ignored because of Package Restore
|
|
|
|
**/packages/*
|
|
|
|
# except build/, which is used as an MSBuild target.
|
|
|
|
!**/packages/build/
|
|
|
|
# Uncomment if necessary however generally it will be regenerated when needed
|
|
|
|
#!**/packages/repositories.config
|
|
|
|
# NuGet v3's project.json files produces more ignorable files
|
|
|
|
*.nuget.props
|
|
|
|
*.nuget.targets
|
|
|
|
|
|
|
|
# Microsoft Azure Build Output
|
|
|
|
csx/
|
|
|
|
*.build.csdef
|
|
|
|
|
|
|
|
# Microsoft Azure Emulator
|
|
|
|
ecf/
|
|
|
|
rcf/
|
|
|
|
|
|
|
|
# Windows Store app package directories and files
|
|
|
|
AppPackages/
|
|
|
|
BundleArtifacts/
|
|
|
|
Package.StoreAssociation.xml
|
|
|
|
_pkginfo.txt
|
|
|
|
|
|
|
|
# Visual Studio cache files
|
|
|
|
# files ending in .cache can be ignored
|
|
|
|
*.[Cc]ache
|
|
|
|
# but keep track of directories ending in .cache
|
|
|
|
!*.[Cc]ache/
|
|
|
|
|
|
|
|
# Others
|
|
|
|
ClientBin/
|
|
|
|
~$*
|
|
|
|
*~
|
|
|
|
*.dbmdl
|
|
|
|
*.dbproj.schemaview
|
|
|
|
*.jfm
|
|
|
|
*.pfx
|
|
|
|
*.publishsettings
|
|
|
|
orleans.codegen.cs
|
|
|
|
|
|
|
|
# Since there are multiple workflows, uncomment next line to ignore bower_components
|
|
|
|
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
|
|
|
|
#bower_components/
|
|
|
|
|
|
|
|
# RIA/Silverlight projects
|
|
|
|
Generated_Code/
|
|
|
|
|
|
|
|
# Backup & report files from converting an old project file
|
|
|
|
# to a newer Visual Studio version. Backup files are not needed,
|
2017-07-11 20:28:55 +03:00
|
|
|
# because they are in the git history.
|
2017-05-01 04:17:01 +03:00
|
|
|
_UpgradeReport_Files/
|
|
|
|
Backup*/
|
|
|
|
UpgradeLog*.XML
|
|
|
|
UpgradeLog*.htm
|
|
|
|
|
|
|
|
# SQL Server files
|
|
|
|
*.mdf
|
|
|
|
*.ldf
|
|
|
|
*.ndf
|
|
|
|
|
|
|
|
# Business Intelligence projects
|
|
|
|
*.rdl.data
|
|
|
|
*.bim.layout
|
|
|
|
*.bim_*.settings
|
|
|
|
|
|
|
|
# Microsoft Fakes
|
|
|
|
FakesAssemblies/
|
|
|
|
|
|
|
|
# GhostDoc plugin setting file
|
|
|
|
*.GhostDoc.xml
|
|
|
|
|
|
|
|
# Node.js Tools for Visual Studio
|
|
|
|
.ntvs_analysis.dat
|
|
|
|
node_modules/
|
|
|
|
|
|
|
|
# Typescript v1 declaration files
|
|
|
|
typings/
|
|
|
|
|
|
|
|
# Visual Studio 6 build log
|
|
|
|
*.plg
|
|
|
|
|
|
|
|
# Visual Studio 6 workspace options file
|
|
|
|
*.opt
|
|
|
|
|
|
|
|
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
|
|
|
|
*.vbw
|
|
|
|
|
|
|
|
# Visual Studio LightSwitch build output
|
|
|
|
**/*.HTMLClient/GeneratedArtifacts
|
|
|
|
**/*.DesktopClient/GeneratedArtifacts
|
|
|
|
**/*.DesktopClient/ModelManifest.xml
|
|
|
|
**/*.Server/GeneratedArtifacts
|
|
|
|
**/*.Server/ModelManifest.xml
|
|
|
|
_Pvt_Extensions
|
|
|
|
|
|
|
|
# Paket dependency manager
|
|
|
|
.paket/paket.exe
|
|
|
|
paket-files/
|
|
|
|
|
|
|
|
# FAKE - F# Make
|
|
|
|
.fake/
|
|
|
|
|
|
|
|
# JetBrains Rider
|
|
|
|
.idea/
|
|
|
|
*.sln.iml
|
|
|
|
|
|
|
|
# CodeRush
|
|
|
|
.cr/
|
|
|
|
|
|
|
|
# Python Tools for Visual Studio (PTVS)
|
|
|
|
__pycache__/
|
|
|
|
*.pyc
|
|
|
|
|
|
|
|
# Cake - Uncomment if you are using it
|
|
|
|
# tools/**
|
|
|
|
# !tools/packages.config
|
|
|
|
|
|
|
|
# Telerik's JustMock configuration file
|
|
|
|
*.jmconfig
|
|
|
|
|
|
|
|
# BizTalk build output
|
|
|
|
*.btp.cs
|
|
|
|
*.btm.cs
|
|
|
|
*.odx.cs
|
|
|
|
*.xsd.cs
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-28 23:20:08 +03:00
|
|
|
## Ignore Visual Studio temporary files, build results, and
|
|
|
|
## files generated by popular Visual Studio add-ons.
|
|
|
|
|
|
|
|
# User-specific files
|
|
|
|
*.suo
|
|
|
|
*.user
|
|
|
|
*.userosscache
|
|
|
|
*.sln.docstates
|
|
|
|
|
|
|
|
# User-specific files (MonoDevelop/Xamarin Studio)
|
|
|
|
*.userprefs
|
|
|
|
|
|
|
|
# Build results
|
|
|
|
[Dd]ebug/
|
|
|
|
[Dd]ebugPublic/
|
|
|
|
[Rr]elease/
|
|
|
|
[Rr]eleases/
|
|
|
|
x64/
|
|
|
|
x86/
|
|
|
|
bld/
|
|
|
|
[Bb]in/
|
|
|
|
[Oo]bj/
|
|
|
|
[Ll]og/
|
|
|
|
|
2017-05-01 04:17:01 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Overrides
|
2018-05-13 02:16:52 +03:00
|
|
|
|
|
|
|
# White list
|
|
|
|
|
|
|
|
!.vscode/launch.json
|
|
|
|
!.vscode/tasks.json
|