Stability Level Preview
API Stability Preview

The segment() GraphQL query will do fetch information about a specific segment. This query is not a quick lookup and should be used only for troubleshooting or to help with data recovery. It requires ManageCluster permission.

Syntax

Below is the syntax for the segment() query field:

graphql
segment(
     id: string!
   ): Segment

Below is an example using this query field:

Show:
graphql
query{
  segment(
    id: "123abc"
  )
  {repository {id, name} }
}
Example Responses
Show:
json
{
  "data": {
    "segment": {
      repository{
        "id": "123abc",
        "name": "humio"
      }
    }
  }
}

Returned Datatype

For segment, there are a few parameters. They're listed here along with descriptions of each:

Table: Segment

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Apr 15, 2025
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.