Ejemplo n.º 1
0
        public async Task <TypesBatchResponse> CreateNewType(string EnvironmentFqdn, IList <TimeSeriesType> value)
        {
            TimeSeriesInsightsClient tsi   = GetTimeSeriesInsightsClientAsync(EnvironmentFqdn).Result; //all correct
            TypesBatchResponse       types = await tsi.ExecuteTypesBatchOperationAsync(new TypesBatchRequest(put : value));

            return(types);
        }
Ejemplo n.º 2
0
        private static async Task RunTypesBatchAsync()
        {
            TypesBatchResponse types = await _client.ExecuteTypesBatchOperationAsync(
                new TypesBatchRequest(
                    get : new TypesRequestBatchGetOrDelete(typeIds : new List <Guid?>()
            {
                Guid.Parse("1BE09AF9-F089-4D6B-9F0B-48018B5F7393")
            })));

            PrintResponse(types.Get.First().TimeSeriesType);
        }
Ejemplo n.º 3
0
        public async Task <TypesBatchResponse> GetType(string EnvironmentFqdn, string id)
        {
            TimeSeriesInsightsClient tsi   = GetTimeSeriesInsightsClientAsync(EnvironmentFqdn).Result;
            TypesBatchResponse       types = await tsi.ExecuteTypesBatchOperationAsync(
                new TypesBatchRequest(
                    get : new TypesRequestBatchGetOrDelete(typeIds : new List <Guid?>()
            {
                Guid.Parse(id)
            })));

            return(types);
        }