Skip to content

TreeInspector

Inspector that maintains an attribute bag.

Initializers

import { TreeInspector } from '@alicloud/ros-cdk-core'
new TreeInspector()
Name Type Description

Methods

Name Description
addAttribute Adds attribute to bag.

addAttribute

public addAttribute(key: string, value: any): void

Adds attribute to bag.

Keys should be added by convention to prevent conflicts

keyRequired

  • Type: string

key for metadata.


valueRequired

  • Type: any

value of metadata.


Properties

Name Type Description
attributes {[ key: string ]: any} Represents the bag of attributes as key-value pairs.

attributesRequired

public readonly attributes: {[ key: string ]: any};
  • Type: {[ key: string ]: any}

Represents the bag of attributes as key-value pairs.