istio.io/content/docs/reference/config/policy-and-telemetry/istio.policy.v1beta1/index.html

932 lines
25 KiB
HTML

---
title: Rules
description: Describes the rules used to configure Mixer's policy and telemetry features.
location: https://istio.io/docs/reference/config/policy-and-telemetry/istio.policy.v1beta1.html
layout: protoc-gen-docs
generator: protoc-gen-docs
number_of_entries: 17
---
<p>Describes the rules used to configure Mixer&rsquo;s policy and telemetry features.</p>
<h2 id="Action">Action</h2>
<section>
<p>Action describes which <a href="#Handler">Handler</a> to invoke and what data to pass to it for processing.</p>
<p>The following example instructs Mixer to invoke &lsquo;prometheus-handler&rsquo; handler and pass it the object
constructed using the instance &lsquo;RequestCountByService&rsquo;.</p>
<pre><code class="language-yaml"> handler: prometheus-handler
instances:
- RequestCountByService
</code></pre>
<table class="message-fields">
<thead>
<tr>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr id="Action-handler">
<td><code>handler</code></td>
<td><code>string</code></td>
<td>
<p>Required. Fully qualified name of the handler to invoke.
Must match the <code>name</code> of a <a href="#Handler-name">Handler</a>.</p>
</td>
</tr>
<tr id="Action-instances">
<td><code>instances</code></td>
<td><code>string[]</code></td>
<td>
<p>Required. Each value must match the fully qualified name of the
<a href="#Instance-name">Instance</a>s.
Referenced instances are evaluated by resolving the attributes/literals for all the fields.
The constructed objects are then passed to the <code>handler</code> referenced within this action.</p>
</td>
</tr>
<tr id="Action-name">
<td><code>name</code></td>
<td><code>string</code></td>
<td>
<p>Optional. A handle to refer to the results of the action.</p>
</td>
</tr>
</tbody>
</table>
</section>
<h2 id="AttributeManifest">AttributeManifest</h2>
<section>
<p>AttributeManifest describes a set of Attributes produced by some component
of an Istio deployment.</p>
<table class="message-fields">
<thead>
<tr>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr id="AttributeManifest-revision">
<td><code>revision</code></td>
<td><code>string</code></td>
<td>
<p>Optional. The revision of this document. Assigned by server.</p>
</td>
</tr>
<tr id="AttributeManifest-name">
<td><code>name</code></td>
<td><code>string</code></td>
<td>
<p>Required. Name of the component producing these attributes. This can be
the proxy (with the canonical name &ldquo;istio-proxy&rdquo;) or the name of an
<code>attributes</code> kind adapter in Mixer.</p>
</td>
</tr>
<tr id="AttributeManifest-attributes">
<td><code>attributes</code></td>
<td><code>map&lt;string,&nbsp;<a href="#AttributeManifest-AttributeInfo">AttributeManifest.AttributeInfo</a>&gt;</code></td>
<td>
<p>The set of attributes this Istio component will be responsible for producing at runtime.
We map from attribute name to the attribute&rsquo;s specification. The name of an attribute,
which is how attributes are referred to in aspect configuration, must conform to:</p>
<pre><code>Name = IDENT &lbrace; SEPARATOR IDENT };
</code></pre>
<p>Where <code>IDENT</code> must match the regular expression <code>*a-z*+</code> and <code>SEPARATOR</code> must
match the regular expression <code>[\.-]</code>.</p>
<p>Attribute names must be unique within a single Istio deployment. The set of canonical
attributes are described at https://istio.io/docs/reference/attribute-vocabulary.html.
Attributes not in that list should be named with a component-specific suffix such as
request.count-my.component.</p>
</td>
</tr>
</tbody>
</table>
</section>
<h2 id="AttributeManifest-AttributeInfo">AttributeManifest.AttributeInfo</h2>
<section>
<p>AttributeInfo describes the schema of an Istio <code>Attribute</code>.</p>
<h3 id="istio-attributes">Istio Attributes</h3>
<p>Istio uses <code>attributes</code> to describe runtime activities of Istio services.
An Istio attribute carries a specific piece of information about an activity,
such as the error code of an API request, the latency of an API request, or the
original IP address of a TCP connection. The attributes are often generated
and consumed by different services. For example, a frontend service can
generate an authenticated user attribute and pass it to a backend service for
access control purpose.</p>
<p>To simplify the system and improve developer experience, Istio uses
shared attribute definitions across all components. For example, the same
authenticated user attribute will be used for logging, monitoring, analytics,
billing, access control, auditing. Many Istio components provide their
functionality by collecting, generating, and operating on attributes.
For example, the proxy collects the error code attribute, and the logging
stores it into a log.</p>
<h3 id="design">Design</h3>
<p>Each Istio attribute must conform to an <code>AttributeInfo</code> in an
<code>AttributeManifest</code> in the current Istio deployment at runtime. An
<em><code>AttributeInfo</code></em> is used to define an attribute&rsquo;s
metadata: the type of its value and a detailed description that explains
the semantics of the attribute type. Each attribute&rsquo;s name is globally unique;
in other words an attribute name can only appear once across all manifests.</p>
<p>The runtime presentation of an attribute is intentionally left out of this
specification, because passing attribute using JSON, XML, or Protocol Buffers
does not change the semantics of the attribute. Different implementations
can choose different representations based on their needs.</p>
<h3 id="http-mapping">HTTP Mapping</h3>
<p>Because many systems already have REST APIs, it makes sense to define a
standard HTTP mapping for Istio attributes that are compatible with typical
REST APIs. The design is to map one attribute to one HTTP header, the
attribute name and value becomes the HTTP header name and value. The actual
encoding scheme will be decided later.</p>
<table class="message-fields">
<thead>
<tr>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr id="AttributeManifest-AttributeInfo-description">
<td><code>description</code></td>
<td><code>string</code></td>
<td>
<p>Optional. A human-readable description of the attribute&rsquo;s purpose.</p>
</td>
</tr>
<tr id="AttributeManifest-AttributeInfo-value_type">
<td><code>valueType</code></td>
<td><code><a href="#ValueType">ValueType</a></code></td>
<td>
<p>Required. The type of data carried by this attribute.</p>
</td>
</tr>
</tbody>
</table>
</section>
<h2 id="Connection">Connection</h2>
<section>
<p>Connection allows the operator to specify the endpoint for out-of-process infrastructure backend.
Connection is part of the handler custom resource and is specified alongside adapter specific configuration.</p>
<table class="message-fields">
<thead>
<tr>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr id="Connection-address">
<td><code>address</code></td>
<td><code>string</code></td>
<td>
<p>The address of the backend.</p>
</td>
</tr>
</tbody>
</table>
</section>
<h2 id="DNSName">DNSName</h2>
<section>
<p>An instance field of type DNSName denotes that the expression for the field must evalaute to
<a href="#ValueType-DNS_NAME">ValueType.DNS_NAME</a></p>
<p>Objects of type DNSName are also passed to the adapters during request-time for the instance fields of
type DNSName</p>
<table class="message-fields">
<thead>
<tr>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr id="DNSName-value">
<td><code>value</code></td>
<td><code>string</code></td>
<td>
<p>DNSName encoded as string.</p>
</td>
</tr>
</tbody>
</table>
</section>
<h2 id="Duration">Duration</h2>
<section>
<p>An instance field of type Duration denotes that the expression for the field must evalaute to
<a href="#ValueType-DURATION">ValueType.DURATION</a></p>
<p>Objects of type Duration are also passed to the adapters during request-time for the instance fields of
type Duration</p>
<table class="message-fields">
<thead>
<tr>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr id="Duration-value">
<td><code>value</code></td>
<td><code><a href="https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#duration">google.protobuf.Duration</a></code></td>
<td>
<p>Duration encoded as google.protobuf.Duration.</p>
</td>
</tr>
</tbody>
</table>
</section>
<h2 id="EmailAddress">EmailAddress</h2>
<section>
<p>DO NOT USE !! Under Development
An instance field of type EmailAddress denotes that the expression for the field must evalaute to
<a href="#ValueType-EMAIL_ADDRESS">ValueType.EMAIL_ADDRESS</a></p>
<p>Objects of type EmailAddress are also passed to the adapters during request-time for the instance fields of
type EmailAddress</p>
<table class="message-fields">
<thead>
<tr>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr id="EmailAddress-value">
<td><code>value</code></td>
<td><code>string</code></td>
<td>
<p>EmailAddress encoded as string.</p>
</td>
</tr>
</tbody>
</table>
</section>
<h2 id="Handler">Handler</h2>
<section>
<p>Handler allows the operator to configure a specific adapter implementation.
Each adapter implementation defines its own <code>params</code> proto.</p>
<p>In the following example we define a <code>metrics</code> handler for the <code>prometheus</code> adapter.
The example is in the form of a kubernetes resource:
* The <code>metadata.name</code> is the name of the handler
* The <code>kind</code> refers to the adapter name
* The <code>spec</code> block represents adapter-specific configuration as well as the connection information</p>
<pre><code class="language-yaml">### Sample-1: No connection specified (for compiled in adapters)
### Note: if connection information is not specified, the adapter configuration is directly inside
### `spec` block. This is going to be DEPRECATED in favor of Sample-2
apiVersion: &quot;config.istio.io/v1alpha2&quot;
kind: prometheus
metadata:
name: handler
namespace: istio-system
spec:
metrics:
- name: request_count
instance_name: requestcount.metric.istio-system
kind: COUNTER
label_names:
- source_service
- source_version
- destination_service
- destination_version
---
### Sample-2: With connection information (for out-of-process adapters)
### Note: Unlike sample-1, the adapter configuration is parallel to `connection` and is nested inside `param` block.
apiVersion: &quot;config.istio.io/v1alpha2&quot;
kind: prometheus
metadata:
name: handler
namespace: istio-system
spec:
param:
metrics:
- name: request_count
instance_name: requestcount.metric.istio-system
kind: COUNTER
label_names:
- source_service
- source_version
- destination_service
- destination_version
connection:
address: localhost:8090
---
</code></pre>
<table class="message-fields">
<thead>
<tr>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr id="Handler-name">
<td><code>name</code></td>
<td><code>string</code></td>
<td>
<p>Required. Must be unique in the entire mixer configuration. Used by <a href="#Action-handler">Actions</a>
to refer to this handler.</p>
</td>
</tr>
<tr id="Handler-compiled_adapter">
<td><code>compiledAdapter</code></td>
<td><code>string</code></td>
<td>
<p>Required. The name of the compiled in adapter this handler instantiates. For referencing non compiled-in
adapters, use the <code>adapter</code> field instead.</p>
<p>The value must match the name of the available adapter Mixer is built with. An adapter&rsquo;s name is typically a
constant in its code.</p>
</td>
</tr>
<tr id="Handler-adapter">
<td><code>adapter</code></td>
<td><code>string</code></td>
<td>
<p>Required. The name of a specific adapter implementation. For referencing compiled-in
adapters, use the <code>compiled_adapter</code> field instead.</p>
<p>An adapter&rsquo;s implementation name is typically a constant in its code.</p>
</td>
</tr>
<tr id="Handler-params">
<td><code>params</code></td>
<td><code><a href="https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct">google.protobuf.Struct</a></code></td>
<td>
<p>Optional. Depends on adapter implementation. Struct representation of a
proto defined by the adapter implementation; this varies depending on the value of field <code>adapter</code>.</p>
</td>
</tr>
<tr id="Handler-connection">
<td><code>connection</code></td>
<td><code><a href="#Connection">Connection</a></code></td>
<td>
<p>Optional. Information on how to connect to the out-of-process adapter.
This is used if the adapter is not compiled into Mixer binary and is running as a separate process.</p>
</td>
</tr>
</tbody>
</table>
</section>
<h2 id="IPAddress">IPAddress</h2>
<section>
<p>An instance field of type IPAddress denotes that the expression for the field must evalaute to
<a href="#ValueType-IP_ADDRESS">ValueType.IP_ADDRESS</a></p>
<p>Objects of type IPAddress are also passed to the adapters during request-time for the instance fields of
type IPAddress</p>
<table class="message-fields">
<thead>
<tr>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr id="IPAddress-value">
<td><code>value</code></td>
<td><code>bytes</code></td>
<td>
<p>IPAddress encoded as bytes.</p>
</td>
</tr>
</tbody>
</table>
</section>
<h2 id="Instance">Instance</h2>
<section>
<p>An Instance tells Mixer how to create instances for particular template.</p>
<p>Instance is defined by the operator. Instance is defined relative to a known
template. Their purpose is to tell Mixer how to use attributes or literals to produce
instances of the specified template at runtime.</p>
<p>The following example instructs Mixer to construct an instance associated with template
&lsquo;istio.mixer.adapter.metric.Metric&rsquo;. It provides a mapping from the template&rsquo;s fields to expressions.
Instances produced with this instance can be referenced by <a href="#Action">Actions</a> using name
&lsquo;RequestCountByService&rsquo;</p>
<pre><code class="language-yaml">- name: RequestCountByService
template: istio.mixer.adapter.metric.Metric
params:
value: 1
dimensions:
source: source.service
destination_ip: destination.ip
</code></pre>
<table class="message-fields">
<thead>
<tr>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr id="Instance-name">
<td><code>name</code></td>
<td><code>string</code></td>
<td>
<p>Required. The name of this instance</p>
<p>Must be unique amongst other Instances in scope. Used by <a href="#Action">Action</a> to refer
to an instance produced by this instance.</p>
</td>
</tr>
<tr id="Instance-compiled_template">
<td><code>compiledTemplate</code></td>
<td><code>string</code></td>
<td>
<p>Required. The name of the compiled in template this instance creates instances for. For referencing non compiled-in
templates, use the <code>template</code> field instead.</p>
<p>The value must match the name of the available template Mixer is built with.</p>
</td>
</tr>
<tr id="Instance-template">
<td><code>template</code></td>
<td><code>string</code></td>
<td>
<p>Required. The name of the template this instance creates instances for. For referencing compiled-in
templates, use the <code>compiled_template</code> field instead.</p>
<p>The value must match the name of the available template in scope.</p>
</td>
</tr>
<tr id="Instance-params">
<td><code>params</code></td>
<td><code><a href="https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct">google.protobuf.Struct</a></code></td>
<td>
<p>Required. Depends on referenced template. Struct representation of a
proto defined by the template; this varies depending on the value of field <code>template</code>.</p>
</td>
</tr>
</tbody>
</table>
</section>
<h2 id="Rule">Rule</h2>
<section>
<p>A Rule is a selector and a set of intentions to be executed when the
selector is <code>true</code></p>
<p>The following example instructs Mixer to invoke &lsquo;prometheus-handler&rsquo; handler for all services and pass it the
instance constructed using the &lsquo;RequestCountByService&rsquo; instance.</p>
<pre><code class="language-yaml">- match: destination.service == &quot;*&quot;
actions:
- handler: prometheus-handler
instances:
- RequestCountByService
</code></pre>
<table class="message-fields">
<thead>
<tr>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr id="Rule-match">
<td><code>match</code></td>
<td><code>string</code></td>
<td>
<p>Required. Match is an attribute based predicate. When Mixer receives a
request it evaluates the match expression and executes all the associated <code>actions</code>
if the match evaluates to true.</p>
<p>A few example match:</p>
<ul>
<li>an empty match evaluates to <code>true</code></li>
<li><code>true</code>, a boolean literal; a rule with this match will always be executed</li>
<li><code>destination.service == ratings*</code> selects any request targeting a service whose
name starts with &ldquo;ratings&rdquo;</li>
<li><code>attr1 == &quot;20&quot; &amp;&amp; attr2 == &quot;30&quot;</code> logical AND, OR, and NOT are also available</li>
</ul>
</td>
</tr>
<tr id="Rule-actions">
<td><code>actions</code></td>
<td><code><a href="#Action">Action[]</a></code></td>
<td>
<p>Optional. The actions that will be executed when match evaluates to <code>true</code>.</p>
</td>
</tr>
<tr id="Rule-request_header_operations">
<td><code>requestHeaderOperations</code></td>
<td><code><a href="#Rule-HeaderOperationTemplate">Rule.HeaderOperationTemplate[]</a></code></td>
<td>
<p>Optional. Templatized operations on the request headers using attributes produced by the
rule actions.</p>
</td>
</tr>
<tr id="Rule-response_header_operations">
<td><code>responseHeaderOperations</code></td>
<td><code><a href="#Rule-HeaderOperationTemplate">Rule.HeaderOperationTemplate[]</a></code></td>
<td>
<p>Optional. Templatized operations on the response headers using attributes produced by the
rule actions.</p>
</td>
</tr>
</tbody>
</table>
</section>
<h2 id="Rule-HeaderOperationTemplate">Rule.HeaderOperationTemplate</h2>
<section>
<p>A template for an HTTP header manipulation.</p>
<table class="message-fields">
<thead>
<tr>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr id="Rule-HeaderOperationTemplate-name">
<td><code>name</code></td>
<td><code>string</code></td>
<td>
<p>Required. Header name.</p>
</td>
</tr>
<tr id="Rule-HeaderOperationTemplate-values">
<td><code>values</code></td>
<td><code>string[]</code></td>
<td>
<p>Optional. Header values to replace or append.</p>
</td>
</tr>
<tr id="Rule-HeaderOperationTemplate-operation">
<td><code>operation</code></td>
<td><code><a href="#Rule-HeaderOperationTemplate-Operation">Rule.HeaderOperationTemplate.Operation</a></code></td>
<td>
<p>Optional. Header operation type. Default operation is to replace the value of the header by name.</p>
</td>
</tr>
</tbody>
</table>
</section>
<h2 id="Rule-HeaderOperationTemplate-Operation">Rule.HeaderOperationTemplate.Operation</h2>
<section>
<p>Header operation type.</p>
<table class="enum-values">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr id="Rule-HeaderOperationTemplate-Operation-REPLACE">
<td><code>REPLACE</code></td>
<td>
<p>replaces the header with the given name</p>
</td>
</tr>
<tr id="Rule-HeaderOperationTemplate-Operation-REMOVE">
<td><code>REMOVE</code></td>
<td>
<p>removes the header with the given name (the value is ignored)</p>
</td>
</tr>
<tr id="Rule-HeaderOperationTemplate-Operation-APPEND">
<td><code>APPEND</code></td>
<td>
<p>appends the values to the existing values (preserving existing values)</p>
</td>
</tr>
</tbody>
</table>
</section>
<h2 id="TimeStamp">TimeStamp</h2>
<section>
<p>An instance field of type TimeStamp denotes that the expression for the field must evalaute to
<a href="#ValueType-TIMESTAMP">ValueType.TIMESTAMP</a></p>
<p>Objects of type TimeStamp are also passed to the adapters during request-time for the instance fields of
type TimeStamp</p>
<table class="message-fields">
<thead>
<tr>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr id="TimeStamp-value">
<td><code>value</code></td>
<td><code><a href="https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#timestamp">google.protobuf.Timestamp</a></code></td>
<td>
<p>TimeStamp encoded as google.protobuf.Timestamp.</p>
</td>
</tr>
</tbody>
</table>
</section>
<h2 id="Uri">Uri</h2>
<section>
<p>DO NOT USE !! Under Development
An instance field of type Uri denotes that the expression for the field must evalaute to
<a href="#ValueType-URI">ValueType.URI</a></p>
<p>Objects of type Uri are also passed to the adapters during request-time for the instance fields of
type Uri</p>
<table class="message-fields">
<thead>
<tr>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr id="Uri-value">
<td><code>value</code></td>
<td><code>string</code></td>
<td>
<p>Uri encoded as string.</p>
</td>
</tr>
</tbody>
</table>
</section>
<h2 id="Value">Value</h2>
<section>
<p>An instance field of type Value denotes that the expression for the field is of dynamic type and can evalaute to any
<a href="#ValueType">ValueType</a> enum values. For example, when
authoring an instance configuration for a template that has a field <code>data</code> of type <code>istio.policy.v1beta1.Value</code>,
both of the following expressions are valid <code>data: source.ip | ip(&quot;0.0.0.0&quot;)</code>, <code>data: request.id | &quot;&quot;</code>;
the resulting type is either ValueType.IP_ADDRESS or ValueType.STRING for the two cases respectively.</p>
<p>Objects of type Value are also passed to the adapters during request-time. There is a 1:1 mapping between
oneof fields in <code>Value</code> and enum values inside <code>ValueType</code>. Depending on the expression&rsquo;s evaluated <code>ValueType</code>,
the equivalent oneof field in <code>Value</code> is populated by Mixer and passed to the adapters.</p>
<table class="message-fields">
<thead>
<tr>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr id="Value-string_value" class="oneof oneof-start">
<td><code>stringValue</code></td>
<td><code>string (oneof)</code></td>
<td>
<p>Used for values of type STRING</p>
</td>
</tr>
<tr id="Value-int64_value" class="oneof">
<td><code>int64Value</code></td>
<td><code>int64 (oneof)</code></td>
<td>
<p>Used for values of type INT64</p>
</td>
</tr>
<tr id="Value-double_value" class="oneof">
<td><code>doubleValue</code></td>
<td><code>double (oneof)</code></td>
<td>
<p>Used for values of type DOUBLE</p>
</td>
</tr>
<tr id="Value-bool_value" class="oneof">
<td><code>boolValue</code></td>
<td><code>bool (oneof)</code></td>
<td>
<p>Used for values of type BOOL</p>
</td>
</tr>
<tr id="Value-ip_address_value" class="oneof">
<td><code>ipAddressValue</code></td>
<td><code><a href="#IPAddress">IPAddress (oneof)</a></code></td>
<td>
<p>Used for values of type IPAddress</p>
</td>
</tr>
<tr id="Value-timestamp_value" class="oneof">
<td><code>timestampValue</code></td>
<td><code><a href="#TimeStamp">TimeStamp (oneof)</a></code></td>
<td>
<p>Used for values of type TIMESTAMP</p>
</td>
</tr>
<tr id="Value-duration_value" class="oneof">
<td><code>durationValue</code></td>
<td><code><a href="#Duration">Duration (oneof)</a></code></td>
<td>
<p>Used for values of type DURATION</p>
</td>
</tr>
<tr id="Value-email_address_value" class="oneof">
<td><code>emailAddressValue</code></td>
<td><code><a href="#EmailAddress">EmailAddress (oneof)</a></code></td>
<td>
<p>Used for values of type EmailAddress</p>
</td>
</tr>
<tr id="Value-dns_name_value" class="oneof">
<td><code>dnsNameValue</code></td>
<td><code><a href="#DNSName">DNSName (oneof)</a></code></td>
<td>
<p>Used for values of type DNSName</p>
</td>
</tr>
<tr id="Value-uri_value" class="oneof">
<td><code>uriValue</code></td>
<td><code><a href="#Uri">Uri (oneof)</a></code></td>
<td>
<p>Used for values of type Uri</p>
</td>
</tr>
</tbody>
</table>
</section>
<h2 id="ValueType">ValueType</h2>
<section>
<p>ValueType describes the types that values in the Istio system can take. These
are used to describe the type of Attributes at run time, describe the type of
the result of evaluating an expression, and to describe the runtime type of
fields of other descriptors.</p>
<table class="enum-values">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr id="ValueType-VALUE_TYPE_UNSPECIFIED">
<td><code>VALUE_TYPE_UNSPECIFIED</code></td>
<td>
<p>Invalid, default value.</p>
</td>
</tr>
<tr id="ValueType-STRING">
<td><code>STRING</code></td>
<td>
<p>An undiscriminated variable-length string.</p>
</td>
</tr>
<tr id="ValueType-INT64">
<td><code>INT64</code></td>
<td>
<p>An undiscriminated 64-bit signed integer.</p>
</td>
</tr>
<tr id="ValueType-DOUBLE">
<td><code>DOUBLE</code></td>
<td>
<p>An undiscriminated 64-bit floating-point value.</p>
</td>
</tr>
<tr id="ValueType-BOOL">
<td><code>BOOL</code></td>
<td>
<p>An undiscriminated boolean value.</p>
</td>
</tr>
<tr id="ValueType-TIMESTAMP">
<td><code>TIMESTAMP</code></td>
<td>
<p>A point in time.</p>
</td>
</tr>
<tr id="ValueType-IP_ADDRESS">
<td><code>IP_ADDRESS</code></td>
<td>
<p>An IP address.</p>
</td>
</tr>
<tr id="ValueType-EMAIL_ADDRESS">
<td><code>EMAIL_ADDRESS</code></td>
<td>
<p>An email address.</p>
</td>
</tr>
<tr id="ValueType-URI">
<td><code>URI</code></td>
<td>
<p>A URI.</p>
</td>
</tr>
<tr id="ValueType-DNS_NAME">
<td><code>DNS_NAME</code></td>
<td>
<p>A DNS name.</p>
</td>
</tr>
<tr id="ValueType-DURATION">
<td><code>DURATION</code></td>
<td>
<p>A span between two points in time.</p>
</td>
</tr>
<tr id="ValueType-STRING_MAP">
<td><code>STRING_MAP</code></td>
<td>
<p>A map string -&gt; string, typically used by headers.</p>
</td>
</tr>
</tbody>
</table>
</section>