As you write you dimension definition, there are several places where autocompletion can help. Some autocompletion values act like templates for a particular definition section, such as rules and conditions, while others simply provide completion for a particular item, like a source.
For all autocomplete items, simply begin typing and the autocomplete possibilities will appear in a list. At any point you can select an item on the list and hit enter to autocomplete the item.
Some completion items are retrieved live from CloudZero platform. Therefore you should authenticate with CloudZero for best results. See Getting Started to learn how to authenticate the extension with the CloudZero platform.
For the different sections of a dimension definition, there are templates that can be accessed via the autocomplete functionality. These templates will add sections to your definition and then allow to fill in the values for parts that can be customized.
For most templates you can begin typing the name of the containing section to see the templates available for that section. These special keywords include:
When you start typing dimension, you will see the autocomplete templates for creating a dimension definition under the dimension root (Dimensions:)
When you start typing rule, you will see the autocomplete templates for the various types of rules you would add to the Rules section of a definition. These include rules for creating statically named groups, dynamically named groups, and dynamically named groups with a filter condition.
When you start typing condition you will see the autocomplete templates for the supported conditions that can be added to the Conditions section. Each condition has two templates: one for using the source from the outer scope and one for defining a source scoped to that condition.
When you start typing source you will see the autocomplete templates for the different ways you can specify a source. This includes single sources and multiple sources as well as sources with and without transforms. These templates can be used in various sections depending on the scope of the source you want to create.
When you start typing transforms you will see the autocomplete templates for creating the transforms section as well as those for creating the various transforms.
In addition to the autocomplete templates for sources, when you are in a source section, you will get autocomplete for the supported sources. When entering a source, you can either begin typing a source name, or hit Ctrl-Space to get the list of possible sources.
This can be done when adding multiple sources as well.
When you are in the Streams section of an Allocation Dimension the available stream names will autocomplete as you type. Streams that have been created but are not available for use in a dimension definition, either because they are too new or are invalid, will not appear as autocomplete options.
Updated about 1 year ago