Skip to content

AggTaskGroup

This class encapsulates and extends the ROS resource type ALIYUN::CMS2::AggTaskGroup.

Initializers

import ros_cdk_cms2
ros_cdk_cms2.AggTaskGroup(
  scope: Construct,
  id: str,
  agg_task_group_config: typing.Union[str, IResolvable],
  agg_task_group_name: typing.Union[str, IResolvable],
  instance_id: typing.Union[str, IResolvable],
  target_prometheus_id: typing.Union[str, IResolvable],
  agg_task_group_config_type: typing.Union[str, IResolvable] = None,
  cron_expr: typing.Union[str, IResolvable] = None,
  delay: typing.Union[typing.Union[int, float], IResolvable] = None,
  description: typing.Union[str, IResolvable] = None,
  from_time: typing.Union[typing.Union[int, float], IResolvable] = None,
  max_retries: typing.Union[typing.Union[int, float], IResolvable] = None,
  max_run_time_in_seconds: typing.Union[typing.Union[int, float], IResolvable] = None,
  override_if_exists: typing.Union[bool, IResolvable] = None,
  precheck_string: typing.Union[IResolvable, typing.Mapping[typing.Any]] = None,
  schedule_mode: typing.Union[str, IResolvable] = None,
  schedule_time_expr: typing.Union[str, IResolvable] = None,
  status: typing.Union[str, IResolvable] = None,
  tags: typing.List[TagsProperty] = None,
  to_time: typing.Union[typing.Union[int, float], IResolvable] = None,
  enable_resource_property_constraint: bool = None
)
Name Type Description
scope ros_cdk_core.Construct No description.
id str No description.
agg_task_group_config typing.Union[str, ros_cdk_core.IResolvable] Property aggTaskGroupConfig: The config of the agg task group.
agg_task_group_name typing.Union[str, ros_cdk_core.IResolvable] Property aggTaskGroupName: The name of the agg task group.
instance_id typing.Union[str, ros_cdk_core.IResolvable] Property instanceId: The ID of the source Prometheus instance the agg task group reads data from.
target_prometheus_id typing.Union[str, ros_cdk_core.IResolvable] Property targetPrometheusId: The ID of the target Prometheus instance of the agg task group.
agg_task_group_config_type typing.Union[str, ros_cdk_core.IResolvable] Property aggTaskGroupConfigType: The config type of the agg task group.
cron_expr typing.Union[str, ros_cdk_core.IResolvable] Property cronExpr: The cron expression used when ScheduleMode is "Cron".
delay typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property delay: The fixed delay of the schedule, in seconds.
description typing.Union[str, ros_cdk_core.IResolvable] Property description: The description of the agg task group.
from_time typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property fromTime: The second-level timestamp corresponding to the schedule start time.
max_retries typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property maxRetries: The maximum number of retries for executing the agg task.
max_run_time_in_seconds typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property maxRunTimeInSeconds: The maximum retry time for executing the agg task, in seconds.
override_if_exists typing.Union[bool, ros_cdk_core.IResolvable] Property overrideIfExists: Whether to override and update an existing agg task group with the same name when creating.
precheck_string typing.Union[ros_cdk_core.IResolvable, typing.Mapping[typing.Any]] Property precheckString: The precheck config.
schedule_mode typing.Union[str, ros_cdk_core.IResolvable] Property scheduleMode: The schedule mode, "Cron" or "FixedRate".
schedule_time_expr typing.Union[str, 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 typing.Union[str, ros_cdk_core.IResolvable] Property status: The status of the agg task group, "Running" or "Stopped".
tags typing.List[TagsProperty] Property tags: The tags of the agg task group.
to_time typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property toTime: The second-level timestamp corresponding to the schedule end time.
enable_resource_property_constraint bool No description.

scopeRequired

  • Type: ros_cdk_core.Construct

idRequired

  • Type: str

agg_task_group_configRequired

  • Type: typing.Union[str, 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.


agg_task_group_nameRequired

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property aggTaskGroupName: The name of the agg task group.


instance_idRequired

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property instanceId: The ID of the source Prometheus instance the agg task group reads data from.


target_prometheus_idRequired

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property targetPrometheusId: The ID of the target Prometheus instance of the agg task group.


agg_task_group_config_typeOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property aggTaskGroupConfigType: The config type of the agg task group.

Default: "RecordingRuleYaml".


cron_exprOptional

  • Type: typing.Union[str, 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: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property delay: The fixed delay of the schedule, in seconds.

Default: 30.


descriptionOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property description: The description of the agg task group.


from_timeOptional

  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property fromTime: The second-level timestamp corresponding to the schedule start time.


max_retriesOptional

  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property maxRetries: The maximum number of retries for executing the agg task.

Default: 20.


max_run_time_in_secondsOptional

  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property maxRunTimeInSeconds: The maximum retry time for executing the agg task, in seconds.

Default: 600.


override_if_existsOptional

  • Type: typing.Union[bool, 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.


precheck_stringOptional

  • Type: typing.Union[ros_cdk_core.IResolvable, typing.Mapping[typing.Any]]

Property precheckString: The precheck config.

Not configured by default.


schedule_modeOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property scheduleMode: The schedule mode, "Cron" or "FixedRate".

Default: "FixedRate".


schedule_time_exprOptional

  • Type: typing.Union[str, 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: typing.Union[str, ros_cdk_core.IResolvable]

Property status: The status of the agg task group, "Running" or "Stopped".

Default: Running.


tagsOptional

Property tags: The tags of the agg task group.


to_timeOptional

  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property toTime: The second-level timestamp corresponding to the schedule end time.

0 means the schedule never stops.


enable_resource_property_constraintOptional

  • Type: bool

Methods

Name Description
to_string Returns a string representation of this construct.
synthesize Allows this construct to emit artifacts into the cloud assembly during synthesis.
add_condition No description.
add_count No description.
add_dependency No description.
add_resource_desc No description.
apply_removal_policy No description.
fetch_condition No description.
fetch_dependency No description.
fetch_resource_desc No description.
get_att No description.
set_metadata No description.

to_string

def to_string() -> str

Returns a string representation of this construct.

synthesize

def synthesize(
  session: ISynthesisSession
) -> None

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.

sessionRequired

  • Type: ros_cdk_core.ISynthesisSession

The synthesis session.


add_condition

def add_condition(
  condition: RosCondition
) -> None

conditionRequired

  • Type: ros_cdk_core.RosCondition

add_count

def add_count(
  count: typing.Union[typing.Union[int, float], IResolvable]
) -> None

countRequired

  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

add_dependency

def add_dependency(
  resource: Resource
) -> None

resourceRequired

  • Type: ros_cdk_core.Resource

add_resource_desc

def add_resource_desc(
  desc: str
) -> None

descRequired

  • Type: str

apply_removal_policy

def apply_removal_policy(
  policy: RemovalPolicy
) -> None

policyRequired

  • Type: ros_cdk_core.RemovalPolicy

fetch_condition

def fetch_condition() -> RosCondition

fetch_dependency

def fetch_dependency() -> typing.List[str]

fetch_resource_desc

def fetch_resource_desc() -> str

get_att

def get_att(
  name: str
) -> IResolvable

nameRequired

  • Type: str

set_metadata

def set_metadata(
  key: str,
  value: typing.Any
) -> None

keyRequired

  • Type: str

valueRequired

  • Type: typing.Any

Static Functions

Name Description
is_construct Return whether the given object is a Construct.

is_construct

import ros_cdk_cms2
ros_cdk_cms2.AggTaskGroup.is_construct(
  x: typing.Any
)

Return whether the given object is a Construct.

xRequired

  • Type: typing.Any

Properties

Name Type Description
node ros_cdk_core.ConstructNode The construct tree node associated with this construct.
env ros_cdk_core.IResourceEnvironment The environment this resource belongs to.
ref str No description.
stack ros_cdk_core.Stack The stack in which this resource is defined.
resource ros_cdk_core.RosResource No description.
attr_agg_task_group_config_hash typing.Union[str, ros_cdk_core.IResolvable] Attribute AggTaskGroupConfigHash: The config hash of the agg task group.
attr_agg_task_group_id typing.Union[str, ros_cdk_core.IResolvable] Attribute AggTaskGroupId: The ID of the agg task group.
attr_agg_task_group_name typing.Union[str, ros_cdk_core.IResolvable] Attribute AggTaskGroupName: The name of the agg task group.
attr_source_prometheus_id typing.Union[str, ros_cdk_core.IResolvable] Attribute SourcePrometheusId: The ID of the source Prometheus instance of the agg task group.
attr_status typing.Union[str, ros_cdk_core.IResolvable] Attribute Status: The current status of the agg task group.
props AggTaskGroupProps No description.

nodeRequired

node: ConstructNode
  • Type: ros_cdk_core.ConstructNode

The construct tree node associated with this construct.


envRequired

env: IResourceEnvironment
  • Type: 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

ref: str
  • Type: str

stackRequired

stack: Stack
  • Type: ros_cdk_core.Stack

The stack in which this resource is defined.


resourceOptional

resource: RosResource
  • Type: ros_cdk_core.RosResource

attr_agg_task_group_config_hashRequired

attr_agg_task_group_config_hash: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute AggTaskGroupConfigHash: The config hash of the agg task group.


attr_agg_task_group_idRequired

attr_agg_task_group_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute AggTaskGroupId: The ID of the agg task group.


attr_agg_task_group_nameRequired

attr_agg_task_group_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute AggTaskGroupName: The name of the agg task group.


attr_source_prometheus_idRequired

attr_source_prometheus_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute SourcePrometheusId: The ID of the source Prometheus instance of the agg task group.


attr_statusRequired

attr_status: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute Status: The current status of the agg task group.


propsRequired

props: AggTaskGroupProps