private DataStream GetDataStream(DeviceAdmin.Models.ParameterTypes fieldType) { var stream = new DataStream(); stream.Id = "A8A087E53D2043538F32FB18C2CA67F7"; stream.Name = "mystream"; stream.Key = "streamkey"; stream.AzureAccessKey = "accesskey"; stream.AzureStorageAccountName = "nuviotdev"; stream.AzureTableStorageName = "tablestoragename"; stream.CreationDate = DateTime.Now.ToJSONString(); stream.LastUpdatedDate = DateTime.Now.ToJSONString(); stream.CreatedBy = Core.Models.EntityHeader.Create("A8A087E53D2043538F32FB18C2CA67F7", "user"); stream.LastUpdatedBy = stream.CreatedBy; stream.OwnerOrganization = Core.Models.EntityHeader.Create("A8A087E53D2043538F32FB18C2CA67F7", "owner"); stream.StreamType = Core.Models.EntityHeader <DataStreamTypes> .Create(DataStreamTypes.AzureTableStorage); stream.Fields.Add(new DataStreamField() { Name = "Field1", Key = "field1", FieldName = "field1", FieldType = Core.Models.EntityHeader <DeviceAdmin.Models.ParameterTypes> .Create(fieldType), IsRequired = true, }); return(stream); }
private DataStream GetDataStream(DeviceAdmin.Models.ParameterTypes fieldType) { var stream = new DataStream(); stream.Id = "A8A087E53D2043538F32FB18C2CA67F7"; stream.Name = "mystream"; stream.Key = "streamkey"; stream.DbURL = "database.sqlserver.com"; stream.DbName = "mydatabase"; stream.DbUserName = "******"; stream.DbPassword = "******"; stream.DbTableName = "users"; stream.CreationDate = DateTime.Now.ToJSONString(); stream.LastUpdatedDate = DateTime.Now.ToJSONString(); stream.CreatedBy = Core.Models.EntityHeader.Create("A8A087E53D2043538F32FB18C2CA67F7", "user"); stream.LastUpdatedBy = stream.CreatedBy; stream.StreamType = Core.Models.EntityHeader <DataStreamTypes> .Create(DataStreamTypes.SQLServer); stream.Fields.Add(new DataStreamField() { Name = "Field1", Key = "field1", FieldName = "field1", FieldType = Core.Models.EntityHeader <DeviceAdmin.Models.ParameterTypes> .Create(fieldType), IsRequired = true, }); return(stream); }
private DataStream GetDataStream(DeviceAdmin.Models.ParameterTypes fieldType) { var stream = new DataStream(); stream.Id = "A8A087E53D2043538F32FB18C2CA67F7"; stream.Name = "mystream"; stream.Key = "streamkey"; stream.AwsAccessKey = "MyAccessKey"; stream.AwsSecretKey = "MySecret"; stream.AwsRegion = "us-east-1"; stream.ElasticSearchDomainName = "http://www.foo.com"; stream.ElasticSearchIndexName = "myindex"; stream.ElasticSearchTypeName = "mytype"; stream.CreationDate = DateTime.Now.ToJSONString(); stream.LastUpdatedDate = DateTime.Now.ToJSONString(); stream.CreatedBy = Core.Models.EntityHeader.Create("A8A087E53D2043538F32FB18C2CA67F7", "user"); stream.LastUpdatedBy = stream.CreatedBy; stream.OwnerOrganization = Core.Models.EntityHeader.Create("A8A087E53D2043538F32FB18C2CA67F7", "owner"); stream.StreamType = Core.Models.EntityHeader <DataStreamTypes> .Create(DataStreamTypes.AWSElasticSearch); stream.Fields.Add(new DataStreamField() { Name = "Field1", Key = "field1", FieldName = "field1", FieldType = Core.Models.EntityHeader <DeviceAdmin.Models.ParameterTypes> .Create(fieldType), IsRequired = true, }); return(stream); }
private DataStream GetDataStream(DeviceAdmin.Models.ParameterTypes fieldType) { var stream = new DataStream(); stream.Id = "A8A087E53D2043538F32FB18C2CA67F7"; stream.Name = "mystream"; stream.Key = "streamkey"; stream.AzureAccessKey = "accesskey"; stream.AzureEventHubName = "myeventhub"; stream.AzureEventHubEntityPath = "thepath"; stream.CreationDate = DateTime.Now.ToJSONString(); stream.LastUpdatedDate = DateTime.Now.ToJSONString(); stream.CreatedBy = Core.Models.EntityHeader.Create("A8A087E53D2043538F32FB18C2CA67F7", "user"); stream.LastUpdatedBy = stream.CreatedBy; stream.StreamType = Core.Models.EntityHeader <DataStreamTypes> .Create(DataStreamTypes.AzureEventHub); stream.Fields.Add(new DataStreamField() { Name = "Field1", Key = "field1", FieldName = "field1", FieldType = Core.Models.EntityHeader <DeviceAdmin.Models.ParameterTypes> .Create(fieldType), IsRequired = true, }); return(stream); }
private DataStream GetDataStream(DeviceAdmin.Models.ParameterTypes fieldType) { var stream = new DataStream(); stream.Fields.Add(new DataStreamField() { Name = "Field1", FieldName = "field1", FieldType = Core.Models.EntityHeader <DeviceAdmin.Models.ParameterTypes> .Create(fieldType), IsRequired = true, }); return(stream); }