type Query { websites: [Website!]! website(id: ID!): Website } type Website { id: ID! www: Boolean! domain: String! path: String ssl: Boolean! up: Boolean! ssl_is_valid: Boolean ssl_issuer: String ssl_organization: String ssl_expiration_date: DateTime ssl_days_until_expiration: Int created_at: DateTime! updated_at: DateTime! downtimes( # Limits number of fetched items. Maximum allowed value: 1. first: Int! # The offset from which items are returned. page: Int ): DowntimePaginator } scalar DateTime # A paginated list of Downtime items. type DowntimePaginator { # Pagination information about the list of items. paginatorInfo: PaginatorInfo! # A list of Downtime items. data: [Downtime!]! } # Information about pagination using a fully featured paginator. type PaginatorInfo { # Number of items in the current page. count: Int! # Index of the current page. currentPage: Int! # Index of the first item in the current page. firstItem: Int # Are there more pages after this one? hasMorePages: Boolean! # Index of the last item in the current page. lastItem: Int # Index of the last available page. lastPage: Int! # Number of items per page. perPage: Int! # Number of total available items. total: Int! } type Downtime { id: ID! down_at: DateTime! up_at: DateTime duration: Int } # Directions for ordering a list of records. enum SortOrder { # Sort records in ascending order. ASC # Sort records in descending order. DESC } # Aggregate functions when ordering by a relation without specifying a column. enum OrderByRelationAggregateFunction { # Amount of items. COUNT } # Aggregate functions when ordering by a relation that may specify a column. enum OrderByRelationWithColumnAggregateFunction { # Average. AVG # Minimum. MIN # Maximum. MAX # Sum. SUM # Amount of items. COUNT } # Allows ordering a list of records. input OrderByClause { # The column that is used for ordering. column: String! # The direction that is used for ordering. order: SortOrder! } # Information about pagination using a simple paginator. type SimplePaginatorInfo { # Number of items in the current page. count: Int! # Index of the current page. currentPage: Int! # Index of the first item in the current page. firstItem: Int # Index of the last item in the current page. lastItem: Int # Number of items per page. perPage: Int! # Are there more pages after this one? hasMorePages: Boolean! } # Information about pagination using a Relay style cursor connection. type PageInfo { # When paginating forwards, are there more items? hasNextPage: Boolean! # When paginating backwards, are there more items? hasPreviousPage: Boolean! # The cursor to continue paginating backwards. startCursor: String # The cursor to continue paginating forwards. endCursor: String # Total number of nodes in the paginated connection. total: Int! # Number of nodes in the current page. count: Int! # Index of the current page. currentPage: Int! # Index of the last available page. lastPage: Int! } # Specify if you want to include or exclude trashed results from a query. enum Trashed { # Only return trashed results. ONLY # Return both trashed and non-trashed results. WITH # Only return non-trashed results. WITHOUT }