Updated on 2022-12-07 GMT+08:00

Managing Stream Tags

A tag is an identifier of a stream. Adding tags to streams can help you identify and manage your stream resources.

You can add a maximum of 10 tags to a stream when creating the stream or add them on the details page of the created stream.

A tag consists of a tag key and a tag value. Table 1 describes the rules for naming the tag key and value.

Table 1 Naming rules for a tag key and value

Parameter

Rule

Example

Key

A tag key cannot be left blank.

A stream can have only one tag key.

You can enter a maximum of 36 characters for Key. The value of Key cannot start or end with a space and cannot contain any of the following characters: is equal to (=), asterisk (*), is less than (<), is greater than (>), backslash (\), comma (,), delimiter (|), and slash (/).

Organization

Tag value

The value can be null.

You can enter a maximum of 43 characters for Key. The value of Key cannot start or end with a space and cannot contain any of the following characters: is equal to (=), asterisk (*), is less than (<), is greater than (>), backslash (\), comma (,), delimiter (|), and slash (/).

Apache

Adding a Tag to a Stream

You can add a tag to a stream on the Buy Stream page.
  1. Log in to the management console.
  2. On the management console, choose Service List > Analytics > Data Ingestion Service.
  3. On the DIS management console, click Buy Stream.
  4. On the Advanced Settings tab page, select Configure.

    Enter the key and value of a tag to be added.

    You can add a maximum of 10 tags to the stream and use intersections of tags to search for the target stream.

    You can also add tags to existing streams. For details, see Managing Tags.

Searching for a Target Stream

You can search for a target stream by tag on the Stream Management page.
  1. Log in to the management console.
  2. Choose EI Enterprise Intelligent > Data Ingestion Service.
  3. In the navigation tree, choose Ingestion Management > Stream Management. In the upper right corner of the page, click Search by Tag.
  4. Enter the tag key and value of the stream you are searching for.

    You can select a tag key or tag value from its drop-down list. When the tag key or tag value is exactly matched, the system can automatically locate the target stream. If you enter multiple tags, their intersections are used to search for the stream.

  5. Click Search.

    The system searches for the target stream by tag key or value.

Managing Tags

You can add, delete, modify, and view tags on the Tags tab page of a stream.
  1. Log in to the management console.
  2. Choose EI Enterprise Intelligent > Data Ingestion Service.
  3. In the navigation tree, choose Ingestion Management > Stream Management. Click a stream to which the tags to be managed belong to.

    The stream details page is displayed.

  4. Click the Tags tab and add, deleted, modify, and view tags.
    • View

      On the Tags tab page, you can view details about tags of the stream, including the number of tags and the key and value of each tag.

    • Add

      Click Add Tag in the upper left corner. In the displayed Add Tag dialog box, enter the key and value of the tag to be added, and click OK.

    • Modify

      In the Operation column of the tag, click Edit. In the displayed Edit Tag page, enter new tag key and value and click OK.

    • Delete

      In the Operation column of the tag, click Delete. After confirmation, click OK in the displayed page for deleting a tag.