users_irn_profile
Creates, updates, deletes, gets or lists a users_irn_profile resource.
Overview
| Name | users_irn_profile |
| Type | Resource |
| Id | google.health.users_irn_profile |
Fields
The following fields are returned by SELECT queries:
- get_irn_profile
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. The resource name of this IrnProfile resource. Format: users/{user}/irnProfile Example: users/1234567890/irnProfile or users/me/irnProfile The {user} ID is a system-generated Google Health API user ID, a string of 1-63 characters consisting of lowercase and uppercase letters, numbers, and hyphens. The literal me can also be used to refer to the authenticated user. |
enrollmentStatus | boolean | Required. Whether or not the user is currently enrolled in having their data processed for IRN alerts. |
onboardingStatus | boolean | Required. Whether or not the user has onboarded onto the IRN feature. |
updateTime | string (google-datetime) | Output only. The timestamp of the last piece of analyzable data synced by the user. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_irn_profile | select | usersId | Returns user's IRN Profile details. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
usersId | string |
SELECT examples
- get_irn_profile
Returns user's IRN Profile details.
SELECT
name,
enrollmentStatus,
onboardingStatus,
updateTime
FROM google.health.users_irn_profile
WHERE usersId = '{{ usersId }}' -- required
;