---
title: "RelativeTimeRangeDtoV2"
url: "https://nov18-dev.movespot.fyi/apis/konnect-explore-endpoint-dev-4/versions/0f8ac6c3-1f91-4060-82fe-5fd3fe57d9ec/schemas/RelativeTimeRangeDtoV2"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/konnect-explore-endpoint-dev-4/versions/0f8ac6c3-1f91-4060-82fe-5fd3fe57d9ec.md

# RelativeTimeRangeDtoV2

A duration representing a relative-to-now span of time. Generally the start time is floored to the requested granularity. Eg 7d from now, with 1day granularity initiated at 2024-01-08T17:11:00+05:00 will query for the time range from 2024-01-01T00:00:00+05:00 to 2024-01-08T17:11:00+05:00. The exact start and end timestamps are returned in the result query in the meta.start_ms and meta.end_ms fields. If the granularity for the previous query was 1hour, it would query a time range from 2024-01-01T17:00:00+05:00 to 2024-01-08T17:11:00+05:00.

## OpenAPI definition

```yaml
openapi: 3.0.2
info:
  title: Konnect Explore Endpoint
  version: 4.0.0
servers:
  - url: https://us.api.konghq.com/v4
    description: United-States Production region
  - url: https://eu.api.konghq.com/v4
    description: Europe Production region
  - url: https://au.api.konghq.com/v4
    description: Australia Production region
  - url: https://me.api.konghq.com/v4
    description: Middle-East Production region
  - url: https://in.api.konghq.com/v4
    description: India Production region
  - url: https://sg.api.konghq.com/v4
    description: Singapore Production region
components:
  schemas:
    RelativeTimeRangeDtoV2:
      description: A duration representing a relative-to-now span of time. Generally
        the start time is floored to the requested granularity. Eg 7d from now,
        with 1day granularity initiated at 2024-01-08T17:11:00+05:00 will query
        for the time range from 2024-01-01T00:00:00+05:00 to
        2024-01-08T17:11:00+05:00. The exact start and end timestamps are
        returned in the result query in the meta.start_ms and meta.end_ms
        fields. If the granularity for the previous query was 1hour, it would
        query a time range from 2024-01-01T17:00:00+05:00 to
        2024-01-08T17:11:00+05:00.
      type: object
      properties:
        tz:
          type: string
          default: Etc/UTC
        type:
          type: string
          enum:
            - relative
        time_range:
          type: string
          default: 1h
          enum:
            - 15m
            - 1h
            - 6h
            - 12h
            - 24h
            - 7d
            - 30d
            - current_week
            - current_month
            - previous_week
            - previous_month
      required:
        - type
        - time_range
```
