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

Michael Koster <michaeljohnkoster@gmail.com> Wed, 10 July 2019 00:12 UTC

Return-Path: <michaeljohnkoster@gmail.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 08B57120281 for <t2trg@ietfa.amsl.com>; Tue, 9 Jul 2019 17:12:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.702
X-Spam-Level:
X-Spam-Status: No, score=-0.702 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, 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=gmail.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 aPzvZUx3L8_V for <t2trg@ietfa.amsl.com>; Tue, 9 Jul 2019 17:12:01 -0700 (PDT)
Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) (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 A62E0120286 for <t2trg@irtf.org>; Tue, 9 Jul 2019 17:12:01 -0700 (PDT)
Received: by mail-pg1-x535.google.com with SMTP id l21so273363pgm.3 for <t2trg@irtf.org>; Tue, 09 Jul 2019 17:12:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=jnsFUWCSM6zwKTgZOsDIC88z+7mXRCaQ+fHmcfVwltM=; b=GPlDicU0QiYHePYAgcs3Kh/EijgZrmCiL7BzPxtnj2xVEF3X8dmZh7/0452+ARMfCx wkQgN+kI5LmK047Kh7uBZnN11wGizA7LZ416yAW9J6XjHHFUh2i2yV111iR2J2ZKrIZw z0X0NUOkep+tECcEa9T4HlkmMDVzBGp0MYSmHhrARCfHd+SrjgIYKs51K+UwStq+jsvq z6G9iZ8eAQS/WJeQhLT/uucI89wnhdQFe2TlxDVnufdmNsLgSdypZ9MHVNZ2rZ1Gmrjp iYODkecB4QshFjyNu7Rzd9CieotfDPfHj8wQrubzTDRE+VS+m8mm03IGI8OaEi5yfAXS IDlQ==
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=jnsFUWCSM6zwKTgZOsDIC88z+7mXRCaQ+fHmcfVwltM=; b=gKgza7cLZRLe7gkY99FSZkf4QRnpdYOE1t9MZFrGNQq9NnNxPRZOTo3eW1p/VkMo7r bMJjcXyEnOF1Y48BN/WQKwAd8HSBMNF4Gf4pPx/FdS9rKzE11kjkTQHfd5do+ELAQyRF CZgJn6jGfbavLgKI+SkEIarjgFSxDx13e4RXFXL/34aZu99p083dmNlaC2RjmqF5ARFG 3tkcbNYrS97Z/YELnJLpvuLBKbfPI08tgZXskFi+TE9d11lzBUu/kCkZSMVSCBJSmExQ pVyurT7lzNvua4Gve/S/8LsgeWvWPE5/9xkz/n94GkBzMFytS2+D/UPLRkdhc11nQDQW zOlg==
X-Gm-Message-State: APjAAAXlKjj6PVaI4mOxMK5dnSP/kdig/aYSULygpMd+FcskB56tIHig rBulsbOPwO0ujgser3AxyB8=
X-Google-Smtp-Source: APXvYqwYo0S1dct47JTQuDhTH0HKeOuujyMV7v9RtRjOYzBzd6SbiZyAUAWSaTanVQueCNnP2xuACQ==
X-Received: by 2002:a63:e018:: with SMTP id e24mr33223238pgh.361.1562717521075; Tue, 09 Jul 2019 17:12:01 -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 s66sm191568pgs.39.2019.07.09.17.11.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jul 2019 17:12:00 -0700 (PDT)
From: Michael Koster <michaeljohnkoster@gmail.com>
Message-Id: <0E107A82-F2A6-4847-B682-27067D03E2CA@gmail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_28C1DD55-7A16-451B-ADA2-C897E9D015EC"
Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\))
Date: Tue, 09 Jul 2019 17:11:58 -0700
In-Reply-To: <59F4C3E9-1400-4A75-B915-69BC27E0FE7E@smartthings.com>
Cc: Klaus Hartke <hartke@projectcool.de>, "t2trg@irtf.org" <t2trg@irtf.org>, core <core@ietf.org>
To: Michael Koster <michael.koster@smartthings.com>
References: <166B0435-8C96-4B83-98CB-A1D6F0838335@smartthings.com> <CAAzbHvYGVtNiw5taGMaVVRe4RuN9s2y4Y6RkJxR06Nk=w3CiTQ@mail.gmail.com> <E74FBEFC-D7CA-48E4-BB71-6031BAB830FA@gmail.com> <59F4C3E9-1400-4A75-B915-69BC27E0FE7E@smartthings.com>
X-Mailer: Apple Mail (2.3273)
Archived-At: <https://mailarchive.ietf.org/arch/msg/t2trg/wWS62ndB3uRGXT9LAm0OW_cq1aM>
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:12:11 -0000

More formally, the observed (projected) resource, referenced through an alternate URL, would be a log of recent activity on the base resource, with a maximum depth of one. 

Is it a satisfactory definition?

> On Jul 9, 2019, at 5:08 PM, Michael Koster <michael.koster@smartthings.com> wrote:
> 
> 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 <mailto: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
>> 
>> 
>