Managing topics
After you add a topic as a source topic to Event Endpoint Management, you can use the topic details page to complete the following tasks:
- Edit the topic details.
- Socialize the topic.
- Find out more about its usage.
- Manage a virtual topic's lifecycle state.
- Remove a virtual topic from the catalog.
To access the topic details page, follow these steps:
- Log in to the Event Endpoint Management UI by using your login credentials.
- In the navigation pane, click .
- Click the topic that you want to work with from the list.
The details of your topic appear in three sections:
- Information: This section displays all the topic information that is presented to a user when a virtual topic for this source topic is socialized in the catalog as a virtual topic.
- Virtual topics: This section displays all the virtual topics that are created for this source topic. Virtual topics can be provided or removed by creating a virtual topic or deleting a virtual topic.
- Manage: This section displays the current lifecycle status of your virtual topics for this source topic in Event Endpoint Management, including the ability for users to discover and subscribe to your virtual topic andsubscribed applications.
You can also delete your source topic from this page.
Editing a topic
To edit the topic details, complete the following steps:
- Click the Information tab on the topic detail page, and then select Edit Information.
- Edit the fields that you want to change in the Overview information pane.
- In the side bar, click Event Information to navigate to this pane.
- Edit the fields and values in the Event Information pane that you want to change.
Refer to the following sections for more information about the fields that can be edited in Overview information and Event Information.
Overview information
- Name: The name of your source topic in Event Endpoint Management.
- Kafka topic: The name of the Kafka topic on the Kafka cluster. You cannot edit this name.
- Description: Free text description of your topic.
- Tags: Comma-separated list of tags that you can use to make the topic
easier to identify in the catalog. For example,
Product,Refunds,Damage Returns. - Contact: Email address of the source topic owner.
- Additonal contacts: Additional contact addresses for the source topic.
Event information
-
Upload Schema: Provide an Avro schema in JavaScript Object Notation (JSON) format that describes the structure of the messages in your topic. If a valid schema is uploaded, a preview of the schema is displayed. When consuming events in a JSON, Avro binary, or an Avro JSON format from the topic, you can use a virtual topic that contains the schema filtering control to filter out any events that do not match the schema.
You can also provide a schema in JSON format that describes the structure of the messages in your topic.
- Schema description: Add detailed information about the schema.
- Sample message: Provide an example of the messages that are emitted by the topic. This is useful when the sample messages do not follow a required format. You can provide a sample message instead of a schema.
Editing nested Avro schemas
When you share a topic that contains nested Avro schemas with custom record types, ensure that you replace the record type with the entire schema definition. You must do this after you add the source topic to Event Endpoint Management, but before you publish any virtual topics that are based on it. You can find the required schema definitions in your schema registry.
Before you edit a nested Avro schema in the Event Endpoint Management UI, obtain the required schema definition from your schema registry for each custom record type.
- Log in to the Event Endpoint Management UI by using your login credentials.
- In the navigation pane, click .
- Click the name of the topic to edit.
- Click Edit information on the topic page.
- From the left pane, click Event information.
- To modify the schema, complete the following steps:
- Copy the schema that is displayed and paste it into a text editor.
- Copy the schema definition from your schema registry.
c. Find the custom record type name and paste the schema definition in the
typesection.For example, in the following Avro schema, thecustomertype is replaced with its schema definition.{ "type": "record", "name": "order", "fields": [ { "name": "region", "type": "string" }, { "name": "customer", "type": "customer" } ] }{ "type": "record", "name": "order", "fields": [ { "name": "region", "type": "string" }, { "name": "customer", "type": { "type": "record", "name": "customer", "fields": [ { "name": "id", "type": "string" }, { "name": "name", "type": "string" } ] } } ] } - Save the modified schema as a
.avscor.avrofile. - Click Remove schema to delete the existing schema.
- To upload the modified schema, click Add an Avro or JSON schema and select the file that you modified and saved in step 6.
Adding source topic editors
If user groups are enabled, you can assign specific user groups to edit selected topics.
To assign user groups to enable members of the group to edit topics, complete the following steps:
-
In the navigation pane, click .
-
Find the source topic that you want to work with and click the Collaborate icon
. The Manage topic editors pane is displayed with the user groups already assigned to the topic.
-
Select a user group from the list displayed. If the group that you want is not displayed, click Enable user group to add a group from your organization.Note: Any user groups that you enable must exist within the organization that is provided by your OAuth provider.
Deleting a source topic
A topic can be deleted from Event Endpoint Management only if it has no Published or Archived virtual topics. Deleting a topic removes all the details about your topic.
To delete a topic from Event Endpoint Management, complete the following steps:
- In the navigation pane, click .
- Find the topic that you want to delete and click the delete icon
in their row in the table.