Skip to main content
Feedback

Topics

Supported operations

OperationQUERYMUTATION
EventStreamsTopic✅ Supported✅ Supported

Topics query syntax

Event Streams Topic query

eventStreamsTopic ( environmentId ID!, name ID! ) EventStreamsTopic!

Event Streams Topics query

eventStreamsTopics ( environmentId ID ) [EventStreamsTopic!]

Topics query fields

EventStreamsQueryTopic

FieldTypeDescription
idIDThe name of the topic. It is unique within the environment.
environmentEventStreamsTopicMetrics.environmentThe environment to which the topic belongs.

EventStreamsTopic

FieldTypeDescription
nameIDThe name of the topic. It is unique within the environment.
environmentEnvironmentThe environment to which the topic belongs.
topicEventStreamsQueryTopicThe details of the topic. It is unique within the environment.
producerCountIntegerThe current number of active producers on this topic.
subscriptionCountIntegerThe current number of subscriptions on this topic.
subscriptionsEventStreamsSubscriptionThe list of subscriptions on this topic.
backlogCountBigIntegerThe total number of messages for all subscriptions not acknowledged on this topic.
messageRateInFloatThe current rate of messages consumed per second from this subscription.
messageRateOutFloatThe current rate of messages consumed per second from this subscription.
createdTimeDateTimeThe timestamp when this topic was created either through this API or when the first producer or subscriber connected to it.
producersEventStreamsProducerThe list of all local publishers on the topic, ranging from zero to thousands.
createdByStringThe user who created this topic.
partitionsIntegerThe number of partitions for this topic.

EventStreamsTopicKey

FieldTypeDescription
environmentIdIDThe ID of the environment to which the topic belongs.
nameIDThe topic name.

EventStreamsTopicCreateInput

FieldTypeDescription
environmentIdIDThe ID of the environment to which the topic belongs.
nameIDThe topic name.
descriptionStringThe user-defined description for this topic.
partitionsIntegerThe number of partitions for this topic.

GraphQL implementation

EventStreamsTopics query

{
eventStreamsTopics(environmentId: "-------") {
name
environment {
id
name
publishedName
classification
}
producerCount
subscriptionCount
subscriptions {
name
type
durable
backlogCount
messageRateOut
createdTime
consumers {
name
messageRateOut
}
description
deadLetterBacklogCount
retryBacklogCount
}
backlogCount
messageRateIn
messageRateOut
createdTime
producers {
name
messageRateIn
createdTime
}
description
createdBy
partitions
}
}

EventStreamsTopics response

{
"data": {
"eventStreamsTopics": [
{
"name": "Test_Topic",
"subscriptions": [
{
"name": "Test1",
"type": "NONE",
"description": ""
},
{
"name": "Test3",
"type": "NONE",
"description": ""
},
{
"name": "Test2",
"type": "NONE",
"description": ""
}
],
"createdTime": "2023-08-09T22:08:31.000Z",
"description": "Test topic",
"createdBy": "test@boomi.com",
"partitions": 1
}
]
}
}

EventStreamsTopic query

  eventStreamsTopic(environmentId: "------", name: "------") {
name
environment {
id
name

publishedName
classification
}
producerCount
subscriptionCount
subscriptions {
name
type
durable
backlogCount
messageRateOut
createdTime
consumers {
name
messageRateOut
}
description
deadLetterBacklogCount
retryBacklogCount
}
backlogCount
messageRateIn
messageRateOut
createdTime
producers {
name
messageRateIn
createdTime
}
description
createdBy
partitions
}
}

EventStreamsTopic response

  "data": {
"eventStreamsTopic": {
"name": "Test_Topic",
"subscriptions": [
{
"name": "Test1",
"type": "NONE",
"backlogCount": 0,
"createdTime": "2023-08-09T22:08:38.000Z",
"description": ""
},
{
"name": "Test3",
"type": "NONE",
"backlogCount": 0,
"createdTime": "2023-08-09T22:08:54.000Z",
"description": ""
},
{
"name": "Test2",
"type": "NONE",
"backlogCount": 0,
"createdTime": "2023-08-09T22:08:44.000Z",
"description": ""
}
],
"description": "Test topic",
"createdBy": "test@boomi.com",
"partitions": 1
}
}
}

Mutations

eventStreamsTopicCreate mutation

  eventStreamsTopicCreate(input: {
environmentId: "------"
name: "---topicName---"
description: "------"
}) {
name
environment {
id
name
gateway
settings
publishedName
classification
integrationPackEnvironmentAttachment
atoms
eventStreams
}
producerCount
subscriptionCount
subscriptions {
name
topic
type
durable
backlogCount
messageRateOut
createdTime
consumers
description
deadLetterBacklogCount
retryBacklogCount
}
backlogCount
messageRateIn
messageRateOut
createdTime
producers {
name
messageRateIn
createdTime
}
description
createdBy
partitions
}
}

eventStreamsTopicCreate response

  "data": {
"eventStreamsTopicCreate": {
"name": "XXX",
"environment": {
"id": "XXXX",
"name": "EventStreams-Local"
},
"producerCount": 0,
"subscriptionCount": 0,
"subscriptions": null,
"createdTime": "2023-08-17T21:31:00.000Z",
"description": "XXXX",
"createdBy": "admin@boomi.com",
"partitions": 1
}
}
}

eventStreamsTopicDelete mutation

  eventStreamsTopicDelete(
topic: {
environmentId: "____"
name: "____"
}
)
}

eventStreamsTopicDelete response

  "data": {
"eventStreamsTopicDelete": ""
}
}
On this Page