Re: [T2TRG] OCF Observe on special interfaces, design question, RFC requirements?

Michael Koster <michael.koster@smartthings.com> Wed, 10 July 2019 00:08 UTC

Return-Path: <michael.koster@smartthings.com>
X-Original-To: t2trg@ietfa.amsl.com
Delivered-To: t2trg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CE0BC1200C3 for <t2trg@ietfa.amsl.com>; Tue, 9 Jul 2019 17:08:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.703
X-Spam-Level:
X-Spam-Status: No, score=-0.703 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, PDS_NO_HELO_DNS=1.295, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=smartthings.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WpVPhy7Rb9du for <t2trg@ietfa.amsl.com>; Tue, 9 Jul 2019 17:08:07 -0700 (PDT)
Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 88D7112008C for <t2trg@irtf.org>; Tue, 9 Jul 2019 17:08:07 -0700 (PDT)
Received: by mail-pl1-x636.google.com with SMTP id b3so225653plr.4 for <t2trg@irtf.org>; Tue, 09 Jul 2019 17:08:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smartthings.com; s=google; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=/Og2OIbnf83WbhGfns14OK3f+ntihDwrFCOA9aBgNiw=; b=B4S17ooMeokY7ig0k25wwJkDmUpEpzeCMCuYbeJNeyZHH4X+hWLGdH0tmiy6b4ox1P lSMVSUoJUrGbtl2AlYSnJl3Vbp6zPjRBvOAcv3muHZHjVFINuvTCt8MMLRNOPIGiWMK/ Wg6IhJ95jKRV755sc8ruP5MCC9d6jxR5EfRlmxYRjhWDF0k+zR0zTe8NdFQ71MJK7MTo O7n8CNAlOjaUI3Zq8K+uvaT8/hutxsWj2lO/ATWmUYiZSAhCFJDt1kjNgOLBjtamKMLW bckftu6dGpIBV3OjbdbDB5PO8kq2h+vcQXUHd017Vm80idoCpWnAyklD0MZz48dsaXCR 83zg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=/Og2OIbnf83WbhGfns14OK3f+ntihDwrFCOA9aBgNiw=; b=XwIrAFrfML1Mu0e/ecpoQ5qPQczEKSTzYW1CDUuCMWBkrWqN9XAFf4tAK1v9KLp+HN QLWKrA9SYBr/BOo/vlc81HJkgzcexeZyb0BG4kyCV6gTZ9+Y7Kvr7KBSUKplMY89UlW+ AXFgadTJwpt3ijCUGB7vegYfX11F7HiqFamBBq+NjnRYzm7DGJkkX2T5faXHjUlXAn22 Erg6vujO6Dj3vwWwLog/mZThlrfVxuacbbWguC4hn/13OZiE91sKfkMcahaYUKuml65x fBwEEp19o5OeMj851YD6AwVwVlUTEKgQyHHoxqcPOvy+Kjhjr4WfeW1sY9hBmvHfZZId Yatg==
X-Gm-Message-State: APjAAAWfQnEgUhVgIXDIqMCjWU4pcv9DWgjlB1cnvwdMfR2vqLCTe8Vy g6BmBL0nVholchnA3cV2Amn90Q==
X-Google-Smtp-Source: APXvYqyHuzh0BUi+KbbijgWkDneky8tRwnRJYY/2bgjfx+WHOz0AbNkHdbVFwAQuPiP8lkjEzHeaDw==
X-Received: by 2002:a17:902:8bc1:: with SMTP id r1mr35207840plo.42.1562717286953; Tue, 09 Jul 2019 17:08:06 -0700 (PDT)
Received: from [172.16.0.7] (c-71-202-145-92.hsd1.ca.comcast.net. [71.202.145.92]) by smtp.gmail.com with ESMTPSA id g4sm216329pfo.93.2019.07.09.17.08.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jul 2019 17:08:06 -0700 (PDT)
From: Michael Koster <michael.koster@smartthings.com>
Message-Id: <59F4C3E9-1400-4A75-B915-69BC27E0FE7E@smartthings.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_25278190-7323-4378-8313-B5A76219DE2F"
Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\))
Date: Tue, 09 Jul 2019 17:08:03 -0700
In-Reply-To: <E74FBEFC-D7CA-48E4-BB71-6031BAB830FA@gmail.com>
Cc: Klaus Hartke <hartke@projectcool.de>, "t2trg@irtf.org" <t2trg@irtf.org>, core <core@ietf.org>
To: Michael Koster <michaeljohnkoster@gmail.com>
References: <166B0435-8C96-4B83-98CB-A1D6F0838335@smartthings.com> <CAAzbHvYGVtNiw5taGMaVVRe4RuN9s2y4Y6RkJxR06Nk=w3CiTQ@mail.gmail.com> <E74FBEFC-D7CA-48E4-BB71-6031BAB830FA@gmail.com>
X-Mailer: Apple Mail (2.3273)
Archived-At: <https://mailarchive.ietf.org/arch/msg/t2trg/YkKbhLiySexBWn_ZyrF7ld0gk60>
Subject: Re: [T2TRG] OCF Observe on special interfaces, design question, RFC requirements?
X-BeenThere: t2trg@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: IRTF Thing-to-Thing Research Group <t2trg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/t2trg>, <mailto:t2trg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/t2trg/>
List-Post: <mailto:t2trg@irtf.org>
List-Help: <mailto:t2trg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/t2trg>, <mailto:t2trg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Jul 2019 00:08:09 -0000

Hi Klaus,

What if we retained the last notified state such that it would also be returned by polling?

> On Jul 9, 2019, at 4:34 PM, Michael Koster <michaeljohnkoster@gmail.com> wrote:
> 
> Thank you, Klaus.
> 
>> On Jul 9, 2019, at 3:24 PM, Klaus Hartke <hartke@projectcool.de <mailto:hartke@projectcool.de>> wrote:
>> 
>> When observing a resource with a rather large representation, it might
>> often make more sense to observe a projection of that resource. That
>> is, to observe a resource X whose state depends on the state of
>> another resource Y.
> 
> This is already the intention with providing the alternate URI through the use of the query parameter. It is a different resource which is a projection of the state of the base resource.
> 
> klaus> * The state of X is a list of the last 10 additions/removals to that list.
> 
> Or perhaps the last one addition or removal...
> 
> What we are doing is not that different.
> 
> Best regards,
> 
> Michael
> 
>