Segment is a datatype for information about a single segment specified by its identifier. It's used by the query field, segment().

Table: Segment

ParameterTypeRequiredDefaultStabilityDescription
Some input parameters may be required, as indicated in the Required column. For return values, this indicates that you are assured a value if the field is requested for the results.
Table last updated: Sep 17, 2025
currentHosts[ClusterNode]yes PreviewInformation about the cluster's hosts that have this segment in local storage. This field isn't necessarily populated in such case the segment can still be found in bucket. See NoCurrentsForBucketSegments of FeatureFlag. See also ClusterNode.
datasourceDatasourceyes PreviewThis is the datasource. See Datasource.
deletedAtlong  PreviewWhen the segment was deleted.
endlongyes PreviewWhen the segment ended.
idstringyes PreviewThe unique identifier of the segment.
organizationOrganizationyes PreviewThe organization for the segment. See Organization.
repositoryRepositoryyes PreviewThe repository for the segment. See Repository.
startlongyes PreviewWhen the segment started.