AggTaskGroup
- Implements: IAggTaskGroup
This class encapsulates and extends the ROS resource type ALIYUN::CMS2::AggTaskGroup.
Initializers
import com.aliyun.ros.cdk.cms2.AggTaskGroup;
AggTaskGroup.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.aggTaskGroupConfig(java.lang.String)
.aggTaskGroupConfig(IResolvable)
.aggTaskGroupName(java.lang.String)
.aggTaskGroupName(IResolvable)
.instanceId(java.lang.String)
.instanceId(IResolvable)
.targetPrometheusId(java.lang.String)
.targetPrometheusId(IResolvable)
// .aggTaskGroupConfigType(java.lang.String)
// .aggTaskGroupConfigType(IResolvable)
// .cronExpr(java.lang.String)
// .cronExpr(IResolvable)
// .delay(java.lang.Number)
// .delay(IResolvable)
// .description(java.lang.String)
// .description(IResolvable)
// .fromTime(java.lang.Number)
// .fromTime(IResolvable)
// .maxRetries(java.lang.Number)
// .maxRetries(IResolvable)
// .maxRunTimeInSeconds(java.lang.Number)
// .maxRunTimeInSeconds(IResolvable)
// .overrideIfExists(java.lang.Boolean)
// .overrideIfExists(IResolvable)
// .precheckString(IResolvable)
// .precheckString(java.util.Map<java.lang.String, java.lang.Object>)
// .scheduleMode(java.lang.String)
// .scheduleMode(IResolvable)
// .scheduleTimeExpr(java.lang.String)
// .scheduleTimeExpr(IResolvable)
// .status(java.lang.String)
// .status(IResolvable)
// .tags(java.util.List<TagsProperty>)
// .toTime(java.lang.Number)
// .toTime(IResolvable)
.build();
| Name | Type | Description |
|---|---|---|
scope | com.aliyun.ros.cdk.core.Construct | No description. |
id | java.lang.String | No description. |
enableResourcePropertyConstraint | java.lang.Boolean | No description. |
aggTaskGroupConfig | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property aggTaskGroupConfig: The config of the agg task group. |
aggTaskGroupName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property aggTaskGroupName: The name of the agg task group. |
instanceId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property instanceId: The ID of the source Prometheus instance the agg task group reads data from. |
targetPrometheusId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property targetPrometheusId: The ID of the target Prometheus instance of the agg task group. |
aggTaskGroupConfigType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property aggTaskGroupConfigType: The config type of the agg task group. |
cronExpr | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property cronExpr: The cron expression used when ScheduleMode is "Cron". |
delay | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property delay: The fixed delay of the schedule, in seconds. |
description | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property description: The description of the agg task group. |
fromTime | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property fromTime: The second-level timestamp corresponding to the schedule start time. |
maxRetries | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property maxRetries: The maximum number of retries for executing the agg task. |
maxRunTimeInSeconds | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property maxRunTimeInSeconds: The maximum retry time for executing the agg task, in seconds. |
overrideIfExists | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property overrideIfExists: Whether to override and update an existing agg task group with the same name when creating. |
precheckString | com.aliyun.ros.cdk.core.IResolvable OR java.util.Map | Property precheckString: The precheck config. |
scheduleMode | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property scheduleMode: The schedule mode, "Cron" or "FixedRate". |
scheduleTimeExpr | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property scheduleTimeExpr: The schedule time expression, "@s" or "@m" is recommended, indicating the rounding granularity of the schedule time window. |
status | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property status: The status of the agg task group, "Running" or "Stopped". |
tags | java.util.List<TagsProperty> | Property tags: The tags of the agg task group. |
toTime | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property toTime: The second-level timestamp corresponding to the schedule end time. |
scopeRequired
- Type: com.aliyun.ros.cdk.core.Construct
idRequired
- Type: java.lang.String
enableResourcePropertyConstraintOptional
- Type: java.lang.Boolean
aggTaskGroupConfigRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property aggTaskGroupConfig: The config of the agg task group.
Only "RecordingRuleYaml" format is supported, which must conform to the RecordingRule format of the open source Prometheus.
aggTaskGroupNameRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property aggTaskGroupName: The name of the agg task group.
instanceIdRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property instanceId: The ID of the source Prometheus instance the agg task group reads data from.
targetPrometheusIdRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property targetPrometheusId: The ID of the target Prometheus instance of the agg task group.
aggTaskGroupConfigTypeOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property aggTaskGroupConfigType: The config type of the agg task group.
Default: "RecordingRuleYaml".
cronExprOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property cronExpr: The cron expression used when ScheduleMode is "Cron".
For example, "0/1 * * * *" means scheduling every 1 minute starting from minute 0.
delayOptional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property delay: The fixed delay of the schedule, in seconds.
Default: 30.
descriptionOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property description: The description of the agg task group.
fromTimeOptional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property fromTime: The second-level timestamp corresponding to the schedule start time.
maxRetriesOptional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property maxRetries: The maximum number of retries for executing the agg task.
Default: 20.
maxRunTimeInSecondsOptional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property maxRunTimeInSeconds: The maximum retry time for executing the agg task, in seconds.
Default: 600.
overrideIfExistsOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property overrideIfExists: Whether to override and update an existing agg task group with the same name when creating.
Create-only, cannot be updated.
precheckStringOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.Map
Property precheckString: The precheck config.
Not configured by default.
scheduleModeOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property scheduleMode: The schedule mode, "Cron" or "FixedRate".
Default: "FixedRate".
scheduleTimeExprOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property scheduleTimeExpr: The schedule time expression, "@s" or "@m" is recommended, indicating the rounding granularity of the schedule time window.
Default: "@m".
statusOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property status: The status of the agg task group, "Running" or "Stopped".
Default: Running.
tagsOptional
- Type: java.util.List<TagsProperty>
Property tags: The tags of the agg task group.
toTimeOptional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property toTime: The second-level timestamp corresponding to the schedule end time.
0 means the schedule never stops.
Methods
| Name | Description |
|---|---|
toString | Returns a string representation of this construct. |
synthesize | Allows this construct to emit artifacts into the cloud assembly during synthesis. |
addCondition | No description. |
addCount | No description. |
addDependency | No description. |
addResourceDesc | No description. |
applyRemovalPolicy | No description. |
fetchCondition | No description. |
fetchDependency | No description. |
fetchResourceDesc | No description. |
getAtt | No description. |
setMetadata | No description. |
toString
public java.lang.String toString()
Returns a string representation of this construct.
synthesize
public void synthesize(ISynthesisSession session)
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.
- Type: com.aliyun.ros.cdk.core.ISynthesisSession
The synthesis session.
addCondition
public void addCondition(RosCondition condition)
- Type: com.aliyun.ros.cdk.core.RosCondition
addCount
public void addCount(java.lang.Number OR IResolvable count)
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
addDependency
public void addDependency(Resource resource)
- Type: com.aliyun.ros.cdk.core.Resource
addResourceDesc
public void addResourceDesc(java.lang.String desc)
- Type: java.lang.String
applyRemovalPolicy
public void applyRemovalPolicy(RemovalPolicy policy)
- Type: com.aliyun.ros.cdk.core.RemovalPolicy
fetchCondition
public RosCondition fetchCondition()
fetchDependency
public java.util.List<java.lang.String> fetchDependency()
fetchResourceDesc
public java.lang.String fetchResourceDesc()
getAtt
public IResolvable getAtt(java.lang.String name)
- Type: java.lang.String
setMetadata
public void setMetadata(java.lang.String key, java.lang.Object value)
- Type: java.lang.String
- Type: java.lang.Object
Static Functions
| Name | Description |
|---|---|
isConstruct | Return whether the given object is a Construct. |
isConstruct
import com.aliyun.ros.cdk.cms2.AggTaskGroup;
AggTaskGroup.isConstruct(java.lang.Object x)
Return whether the given object is a Construct.
- Type: java.lang.Object
Properties
| Name | Type | Description |
|---|---|---|
node | com.aliyun.ros.cdk.core.ConstructNode | The construct tree node associated with this construct. |
env | com.aliyun.ros.cdk.core.IResourceEnvironment | The environment this resource belongs to. |
ref | java.lang.String | No description. |
stack | com.aliyun.ros.cdk.core.Stack | The stack in which this resource is defined. |
resource | com.aliyun.ros.cdk.core.RosResource | No description. |
attrAggTaskGroupConfigHash | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute AggTaskGroupConfigHash: The config hash of the agg task group. |
attrAggTaskGroupId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute AggTaskGroupId: The ID of the agg task group. |
attrAggTaskGroupName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute AggTaskGroupName: The name of the agg task group. |
attrSourcePrometheusId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute SourcePrometheusId: The ID of the source Prometheus instance of the agg task group. |
attrStatus | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Status: The current status of the agg task group. |
props | AggTaskGroupProps | No description. |
nodeRequired
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
envRequired
public IResourceEnvironment getEnv();
- Type: com.aliyun.ros.cdk.core.IResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
refRequired
public java.lang.String getRef();
- Type: java.lang.String
stackRequired
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
resourceOptional
public RosResource getResource();
- Type: com.aliyun.ros.cdk.core.RosResource
attrAggTaskGroupConfigHashRequired
public java.lang.Object getAttrAggTaskGroupConfigHash();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute AggTaskGroupConfigHash: The config hash of the agg task group.
attrAggTaskGroupIdRequired
public java.lang.Object getAttrAggTaskGroupId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute AggTaskGroupId: The ID of the agg task group.
attrAggTaskGroupNameRequired
public java.lang.Object getAttrAggTaskGroupName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute AggTaskGroupName: The name of the agg task group.
attrSourcePrometheusIdRequired
public java.lang.Object getAttrSourcePrometheusId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute SourcePrometheusId: The ID of the source Prometheus instance of the agg task group.
attrStatusRequired
public java.lang.Object getAttrStatus();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Status: The current status of the agg task group.
propsRequired
public AggTaskGroupProps getProps();
- Type: AggTaskGroupProps