NetworkOptimizationProps
Properties for defining a NetworkOptimization.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-esa-networkoptimization
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkesa"
&alicloudroscdkesa.NetworkOptimizationProps {
SiteId: interface{},
Grpc: interface{},
Http2Origin: interface{},
Rule: interface{},
RuleEnable: interface{},
RuleName: interface{},
Sequence: interface{},
SiteVersion: interface{},
SmartRouting: interface{},
UploadMaxFilesize: interface{},
Websocket: interface{},
}
Properties
| Name | Type | Description |
|---|---|---|
SiteId | interface{} | Property siteId: Site ID. |
Grpc | interface{} | Property grpc: Whether to enable GRPC, default is disabled. |
Http2Origin | interface{} | Property http2Origin: Whether to enable HTTP2 origin, default is disabled. |
Rule | interface{} | Property rule: Rule content, using conditional expressions to match user requests. |
RuleEnable | interface{} | Property ruleEnable: Rule switch. |
RuleName | interface{} | Property ruleName: Rule name. |
Sequence | interface{} | Property sequence: Order of rule execution. |
SiteVersion | interface{} | Property siteVersion: The version number of the site configuration. |
SmartRouting | interface{} | Property smartRouting: Whether to enable smart routing service, default is disabled. |
UploadMaxFilesize | interface{} | Property uploadMaxFilesize: Maximum upload file size, in MB, value range: 100ï½500. |
Websocket | interface{} | Property websocket: Whether to enable Websocket, default is enabled. |
SiteIdRequired
SiteId interface{}
- Type: interface{}
Property siteId: Site ID.
GrpcOptional
Grpc interface{}
- Type: interface{}
Property grpc: Whether to enable GRPC, default is disabled.
Value range:
on: Enabledoff: Disabled.
Http2OriginOptional
Http2Origin interface{}
- Type: interface{}
Property http2Origin: Whether to enable HTTP2 origin, default is disabled.
Value range:
on: Enabledoff: Disabled.
RuleOptional
Rule interface{}
- Type: interface{}
Property rule: Rule content, using conditional expressions to match user requests.
When adding global configuration, this parameter does not need to be set. There are two usage scenarios:
- Match all incoming requests: value set to true
- Match specified request: Set the value to a custom expression, for example: (http.host eq "video.example.com").
RuleEnableOptional
RuleEnable interface{}
- Type: interface{}
Property ruleEnable: Rule switch.
When adding global configuration, this parameter does not need to be set. Value range:
on: open.off: close.
RuleNameOptional
RuleName interface{}
- Type: interface{}
Property ruleName: Rule name.
SequenceOptional
Sequence interface{}
- Type: interface{}
Property sequence: Order of rule execution.
The smaller the value, the higher the priority for execution.
SiteVersionOptional
SiteVersion interface{}
- Type: interface{}
Property siteVersion: The version number of the site configuration.
For sites that have enabled configuration version management, this parameter can be used to specify the effective version of the configuration site, which defaults to version 0.
SmartRoutingOptional
SmartRouting interface{}
- Type: interface{}
Property smartRouting: Whether to enable smart routing service, default is disabled.
Value range:
on: Enabledoff: Disabled.
UploadMaxFilesizeOptional
UploadMaxFilesize interface{}
- Type: interface{}
Property uploadMaxFilesize: Maximum upload file size, in MB, value range: 100ï½500.
WebsocketOptional
Websocket interface{}
- Type: interface{}
Property websocket: Whether to enable Websocket, default is enabled.
Value range:
on: Enabledoff: Disabled.