app.fitsky.trend

thatsit.dev

Documentation

A shared fitness trend or dashboard snapshot

main record

A shared fitness trend or dashboard snapshot

Record Key tid Timestamp-based ID

Properties

caption string Optional

No description available.

maxLength: 512 bytes
chartStyle string Optional

No description available.

maxLength: 64 bytes
Known values: line, bar
createdAt string datetime Required

An RFC 3339 formatted timestamp.

dataPoints array of ref #dataPoint Optional

No description available.

image blob Optional

No description available.

maxSize: 1.0 MB
metric string Required

No description available.

maxLength: 64 bytes
Known values: distance, duration, pace, steps, calories, heartRate, workoutCount
period string Required

No description available.

maxLength: 64 bytes
Known values: 1d, 7d, 30d, 90d, 1y
widgetType string Required

No description available.

maxLength: 64 bytes
Known values: today-summary, weekly-progress, goal-progress, recent-workouts, custom-trend
View raw schema
{
  "key": "tid",
  "type": "record",
  "record": {
    "type": "object",
    "required": [
      "widgetType",
      "metric",
      "period",
      "summary",
      "createdAt"
    ],
    "properties": {
      "image": {
        "type": "blob",
        "accept": [
          "image/png",
          "image/jpeg"
        ],
        "maxSize": 1000000
      },
      "metric": {
        "type": "string",
        "maxLength": 64,
        "knownValues": [
          "distance",
          "duration",
          "pace",
          "steps",
          "calories",
          "heartRate",
          "workoutCount"
        ]
      },
      "period": {
        "type": "string",
        "maxLength": 64,
        "knownValues": [
          "1d",
          "7d",
          "30d",
          "90d",
          "1y"
        ]
      },
      "caption": {
        "type": "string",
        "maxLength": 512
      },
      "summary": {
        "ref": "#trendSummary",
        "type": "ref"
      },
      "createdAt": {
        "type": "string",
        "format": "datetime"
      },
      "chartStyle": {
        "type": "string",
        "maxLength": 64,
        "knownValues": [
          "line",
          "bar"
        ]
      },
      "dataPoints": {
        "type": "array",
        "items": {
          "ref": "#dataPoint",
          "type": "ref"
        }
      },
      "widgetType": {
        "type": "string",
        "maxLength": 64,
        "knownValues": [
          "today-summary",
          "weekly-progress",
          "goal-progress",
          "recent-workouts",
          "custom-trend"
        ]
      }
    }
  },
  "description": "A shared fitness trend or dashboard snapshot"
}
dataPoint object

No description available.

Properties

date string datetime Required

An RFC 3339 formatted timestamp.

value integer Required

Value in base units (meters, seconds, calories, count, bpm)

View raw schema
{
  "type": "object",
  "required": [
    "date",
    "value"
  ],
  "properties": {
    "date": {
      "type": "string",
      "format": "datetime"
    },
    "value": {
      "type": "integer",
      "description": "Value in base units (meters, seconds, calories, count, bpm)"
    }
  }
}
trendSummary object

No description available.

Properties

average integer Optional

Average value in base units

best integer Optional

Best value in base units

count integer Optional

No description available.

total integer Optional

Total value in base units

worst integer Optional

Worst value in base units

View raw schema
{
  "type": "object",
  "properties": {
    "best": {
      "type": "integer",
      "description": "Best value in base units"
    },
    "count": {
      "type": "integer"
    },
    "total": {
      "type": "integer",
      "description": "Total value in base units"
    },
    "worst": {
      "type": "integer",
      "description": "Worst value in base units"
    },
    "average": {
      "type": "integer",
      "description": "Average value in base units"
    }
  }
}

Lexicon Garden

@