1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. MonitorTmpTkeTemplate
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.MonitorTmpTkeTemplate

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a tmp tke template

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const foo = new tencentcloud.MonitorTmpTkeTemplate("foo", {template: {
        name: "tf-template",
        level: "cluster",
        describe: "template",
        serviceMonitors: [{
            name: "tf-ServiceMonitor",
            config: `apiVersion: monitoring.coreos.com/v1
    kind: ServiceMonitor
    metadata:
      name: example-service-monitor
      namespace: monitoring
      labels:
        k8s-app: example-service
    spec:
      selector:
        matchLabels:
          k8s-app: example-service
      namespaceSelector:
        matchNames:
          - default
      endpoints:
      - port: http-metrics
        interval: 30s
        path: /metrics
        scheme: http
        bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
        tlsConfig:
          insecureSkipVerify: true
    `,
        }],
        podMonitors: [
            {
                name: "tf-PodMonitors",
                config: `apiVersion: monitoring.coreos.com/v1
    kind: PodMonitor
    metadata:
      name: example-pod-monitor
      namespace: monitoring
      labels:
        k8s-app: example-pod
    spec:
      selector:
        matchLabels:
          k8s-app: example-pod
      namespaceSelector:
        matchNames:
          - default
      podMetricsEndpoints:
      - port: http-metrics
        interval: 30s
        path: /metrics
        scheme: http
        bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
        tlsConfig:
          insecureSkipVerify: true
    `,
            },
            {
                name: "tf-RawJobs",
                config: `scrape_configs:
      - job_name: 'example-job'
        scrape_interval: 30s
        static_configs:
          - targets: ['example-service.default.svc.cluster.local:8080']
        metrics_path: /metrics
        scheme: http
        bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
        tls_config:
          insecure_skip_verify: true
    `,
            },
        ],
    }});
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    foo = tencentcloud.MonitorTmpTkeTemplate("foo", template={
        "name": "tf-template",
        "level": "cluster",
        "describe": "template",
        "service_monitors": [{
            "name": "tf-ServiceMonitor",
            "config": """apiVersion: monitoring.coreos.com/v1
    kind: ServiceMonitor
    metadata:
      name: example-service-monitor
      namespace: monitoring
      labels:
        k8s-app: example-service
    spec:
      selector:
        matchLabels:
          k8s-app: example-service
      namespaceSelector:
        matchNames:
          - default
      endpoints:
      - port: http-metrics
        interval: 30s
        path: /metrics
        scheme: http
        bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
        tlsConfig:
          insecureSkipVerify: true
    """,
        }],
        "pod_monitors": [
            {
                "name": "tf-PodMonitors",
                "config": """apiVersion: monitoring.coreos.com/v1
    kind: PodMonitor
    metadata:
      name: example-pod-monitor
      namespace: monitoring
      labels:
        k8s-app: example-pod
    spec:
      selector:
        matchLabels:
          k8s-app: example-pod
      namespaceSelector:
        matchNames:
          - default
      podMetricsEndpoints:
      - port: http-metrics
        interval: 30s
        path: /metrics
        scheme: http
        bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
        tlsConfig:
          insecureSkipVerify: true
    """,
            },
            {
                "name": "tf-RawJobs",
                "config": """scrape_configs:
      - job_name: 'example-job'
        scrape_interval: 30s
        static_configs:
          - targets: ['example-service.default.svc.cluster.local:8080']
        metrics_path: /metrics
        scheme: http
        bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
        tls_config:
          insecure_skip_verify: true
    """,
            },
        ],
    })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewMonitorTmpTkeTemplate(ctx, "foo", &tencentcloud.MonitorTmpTkeTemplateArgs{
    			Template: &tencentcloud.MonitorTmpTkeTemplateTemplateArgs{
    				Name:     pulumi.String("tf-template"),
    				Level:    pulumi.String("cluster"),
    				Describe: pulumi.String("template"),
    				ServiceMonitors: tencentcloud.MonitorTmpTkeTemplateTemplateServiceMonitorArray{
    					&tencentcloud.MonitorTmpTkeTemplateTemplateServiceMonitorArgs{
    						Name: pulumi.String("tf-ServiceMonitor"),
    						Config: pulumi.String(`apiVersion: monitoring.coreos.com/v1
    kind: ServiceMonitor
    metadata:
      name: example-service-monitor
      namespace: monitoring
      labels:
        k8s-app: example-service
    spec:
      selector:
        matchLabels:
          k8s-app: example-service
      namespaceSelector:
        matchNames:
          - default
      endpoints:
      - port: http-metrics
        interval: 30s
        path: /metrics
        scheme: http
        bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
        tlsConfig:
          insecureSkipVerify: true
    `),
    					},
    				},
    				PodMonitors: tencentcloud.MonitorTmpTkeTemplateTemplatePodMonitorArray{
    					&tencentcloud.MonitorTmpTkeTemplateTemplatePodMonitorArgs{
    						Name: pulumi.String("tf-PodMonitors"),
    						Config: pulumi.String(`apiVersion: monitoring.coreos.com/v1
    kind: PodMonitor
    metadata:
      name: example-pod-monitor
      namespace: monitoring
      labels:
        k8s-app: example-pod
    spec:
      selector:
        matchLabels:
          k8s-app: example-pod
      namespaceSelector:
        matchNames:
          - default
      podMetricsEndpoints:
      - port: http-metrics
        interval: 30s
        path: /metrics
        scheme: http
        bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
        tlsConfig:
          insecureSkipVerify: true
    `),
    					},
    					&tencentcloud.MonitorTmpTkeTemplateTemplatePodMonitorArgs{
    						Name: pulumi.String("tf-RawJobs"),
    						Config: pulumi.String(`scrape_configs:
      - job_name: 'example-job'
        scrape_interval: 30s
        static_configs:
          - targets: ['example-service.default.svc.cluster.local:8080']
        metrics_path: /metrics
        scheme: http
        bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
        tls_config:
          insecure_skip_verify: true
    `),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Tencentcloud.MonitorTmpTkeTemplate("foo", new()
        {
            Template = new Tencentcloud.Inputs.MonitorTmpTkeTemplateTemplateArgs
            {
                Name = "tf-template",
                Level = "cluster",
                Describe = "template",
                ServiceMonitors = new[]
                {
                    new Tencentcloud.Inputs.MonitorTmpTkeTemplateTemplateServiceMonitorArgs
                    {
                        Name = "tf-ServiceMonitor",
                        Config = @"apiVersion: monitoring.coreos.com/v1
    kind: ServiceMonitor
    metadata:
      name: example-service-monitor
      namespace: monitoring
      labels:
        k8s-app: example-service
    spec:
      selector:
        matchLabels:
          k8s-app: example-service
      namespaceSelector:
        matchNames:
          - default
      endpoints:
      - port: http-metrics
        interval: 30s
        path: /metrics
        scheme: http
        bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
        tlsConfig:
          insecureSkipVerify: true
    ",
                    },
                },
                PodMonitors = new[]
                {
                    new Tencentcloud.Inputs.MonitorTmpTkeTemplateTemplatePodMonitorArgs
                    {
                        Name = "tf-PodMonitors",
                        Config = @"apiVersion: monitoring.coreos.com/v1
    kind: PodMonitor
    metadata:
      name: example-pod-monitor
      namespace: monitoring
      labels:
        k8s-app: example-pod
    spec:
      selector:
        matchLabels:
          k8s-app: example-pod
      namespaceSelector:
        matchNames:
          - default
      podMetricsEndpoints:
      - port: http-metrics
        interval: 30s
        path: /metrics
        scheme: http
        bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
        tlsConfig:
          insecureSkipVerify: true
    ",
                    },
                    new Tencentcloud.Inputs.MonitorTmpTkeTemplateTemplatePodMonitorArgs
                    {
                        Name = "tf-RawJobs",
                        Config = @"scrape_configs:
      - job_name: 'example-job'
        scrape_interval: 30s
        static_configs:
          - targets: ['example-service.default.svc.cluster.local:8080']
        metrics_path: /metrics
        scheme: http
        bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
        tls_config:
          insecure_skip_verify: true
    ",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.MonitorTmpTkeTemplate;
    import com.pulumi.tencentcloud.MonitorTmpTkeTemplateArgs;
    import com.pulumi.tencentcloud.inputs.MonitorTmpTkeTemplateTemplateArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var foo = new MonitorTmpTkeTemplate("foo", MonitorTmpTkeTemplateArgs.builder()
                .template(MonitorTmpTkeTemplateTemplateArgs.builder()
                    .name("tf-template")
                    .level("cluster")
                    .describe("template")
                    .serviceMonitors(MonitorTmpTkeTemplateTemplateServiceMonitorArgs.builder()
                        .name("tf-ServiceMonitor")
                        .config("""
    apiVersion: monitoring.coreos.com/v1
    kind: ServiceMonitor
    metadata:
      name: example-service-monitor
      namespace: monitoring
      labels:
        k8s-app: example-service
    spec:
      selector:
        matchLabels:
          k8s-app: example-service
      namespaceSelector:
        matchNames:
          - default
      endpoints:
      - port: http-metrics
        interval: 30s
        path: /metrics
        scheme: http
        bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
        tlsConfig:
          insecureSkipVerify: true
                        """)
                        .build())
                    .podMonitors(                
                        MonitorTmpTkeTemplateTemplatePodMonitorArgs.builder()
                            .name("tf-PodMonitors")
                            .config("""
    apiVersion: monitoring.coreos.com/v1
    kind: PodMonitor
    metadata:
      name: example-pod-monitor
      namespace: monitoring
      labels:
        k8s-app: example-pod
    spec:
      selector:
        matchLabels:
          k8s-app: example-pod
      namespaceSelector:
        matchNames:
          - default
      podMetricsEndpoints:
      - port: http-metrics
        interval: 30s
        path: /metrics
        scheme: http
        bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
        tlsConfig:
          insecureSkipVerify: true
                            """)
                            .build(),
                        MonitorTmpTkeTemplateTemplatePodMonitorArgs.builder()
                            .name("tf-RawJobs")
                            .config("""
    scrape_configs:
      - job_name: 'example-job'
        scrape_interval: 30s
        static_configs:
          - targets: ['example-service.default.svc.cluster.local:8080']
        metrics_path: /metrics
        scheme: http
        bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
        tls_config:
          insecure_skip_verify: true
                            """)
                            .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      foo:
        type: tencentcloud:MonitorTmpTkeTemplate
        properties:
          template:
            name: tf-template
            level: cluster
            describe: template
            serviceMonitors:
              - name: tf-ServiceMonitor
                config: |
                  apiVersion: monitoring.coreos.com/v1
                  kind: ServiceMonitor
                  metadata:
                    name: example-service-monitor
                    namespace: monitoring
                    labels:
                      k8s-app: example-service
                  spec:
                    selector:
                      matchLabels:
                        k8s-app: example-service
                    namespaceSelector:
                      matchNames:
                        - default
                    endpoints:
                    - port: http-metrics
                      interval: 30s
                      path: /metrics
                      scheme: http
                      bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
                      tlsConfig:
                        insecureSkipVerify: true              
            podMonitors:
              - name: tf-PodMonitors
                config: |
                  apiVersion: monitoring.coreos.com/v1
                  kind: PodMonitor
                  metadata:
                    name: example-pod-monitor
                    namespace: monitoring
                    labels:
                      k8s-app: example-pod
                  spec:
                    selector:
                      matchLabels:
                        k8s-app: example-pod
                    namespaceSelector:
                      matchNames:
                        - default
                    podMetricsEndpoints:
                    - port: http-metrics
                      interval: 30s
                      path: /metrics
                      scheme: http
                      bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
                      tlsConfig:
                        insecureSkipVerify: true              
              - name: tf-RawJobs
                config: |
                  scrape_configs:
                    - job_name: 'example-job'
                      scrape_interval: 30s
                      static_configs:
                        - targets: ['example-service.default.svc.cluster.local:8080']
                      metrics_path: /metrics
                      scheme: http
                      bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
                      tls_config:
                        insecure_skip_verify: true              
    

    Create MonitorTmpTkeTemplate Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new MonitorTmpTkeTemplate(name: string, args: MonitorTmpTkeTemplateArgs, opts?: CustomResourceOptions);
    @overload
    def MonitorTmpTkeTemplate(resource_name: str,
                              args: MonitorTmpTkeTemplateArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def MonitorTmpTkeTemplate(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              template: Optional[MonitorTmpTkeTemplateTemplateArgs] = None,
                              monitor_tmp_tke_template_id: Optional[str] = None)
    func NewMonitorTmpTkeTemplate(ctx *Context, name string, args MonitorTmpTkeTemplateArgs, opts ...ResourceOption) (*MonitorTmpTkeTemplate, error)
    public MonitorTmpTkeTemplate(string name, MonitorTmpTkeTemplateArgs args, CustomResourceOptions? opts = null)
    public MonitorTmpTkeTemplate(String name, MonitorTmpTkeTemplateArgs args)
    public MonitorTmpTkeTemplate(String name, MonitorTmpTkeTemplateArgs args, CustomResourceOptions options)
    
    type: tencentcloud:MonitorTmpTkeTemplate
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args MonitorTmpTkeTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args MonitorTmpTkeTemplateArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args MonitorTmpTkeTemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MonitorTmpTkeTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MonitorTmpTkeTemplateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    MonitorTmpTkeTemplate Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The MonitorTmpTkeTemplate resource accepts the following input properties:

    Template MonitorTmpTkeTemplateTemplate
    Template settings.
    MonitorTmpTkeTemplateId string
    ID of the resource.
    Template MonitorTmpTkeTemplateTemplateArgs
    Template settings.
    MonitorTmpTkeTemplateId string
    ID of the resource.
    template MonitorTmpTkeTemplateTemplate
    Template settings.
    monitorTmpTkeTemplateId String
    ID of the resource.
    template MonitorTmpTkeTemplateTemplate
    Template settings.
    monitorTmpTkeTemplateId string
    ID of the resource.
    template Property Map
    Template settings.
    monitorTmpTkeTemplateId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MonitorTmpTkeTemplate resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing MonitorTmpTkeTemplate Resource

    Get an existing MonitorTmpTkeTemplate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: MonitorTmpTkeTemplateState, opts?: CustomResourceOptions): MonitorTmpTkeTemplate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            monitor_tmp_tke_template_id: Optional[str] = None,
            template: Optional[MonitorTmpTkeTemplateTemplateArgs] = None) -> MonitorTmpTkeTemplate
    func GetMonitorTmpTkeTemplate(ctx *Context, name string, id IDInput, state *MonitorTmpTkeTemplateState, opts ...ResourceOption) (*MonitorTmpTkeTemplate, error)
    public static MonitorTmpTkeTemplate Get(string name, Input<string> id, MonitorTmpTkeTemplateState? state, CustomResourceOptions? opts = null)
    public static MonitorTmpTkeTemplate get(String name, Output<String> id, MonitorTmpTkeTemplateState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:MonitorTmpTkeTemplate    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    MonitorTmpTkeTemplateId string
    ID of the resource.
    Template MonitorTmpTkeTemplateTemplate
    Template settings.
    MonitorTmpTkeTemplateId string
    ID of the resource.
    Template MonitorTmpTkeTemplateTemplateArgs
    Template settings.
    monitorTmpTkeTemplateId String
    ID of the resource.
    template MonitorTmpTkeTemplateTemplate
    Template settings.
    monitorTmpTkeTemplateId string
    ID of the resource.
    template MonitorTmpTkeTemplateTemplate
    Template settings.
    monitorTmpTkeTemplateId String
    ID of the resource.
    template Property Map
    Template settings.

    Supporting Types

    MonitorTmpTkeTemplateTemplate, MonitorTmpTkeTemplateTemplateArgs

    Level string
    Template dimensions, the following types are supported instance instance level, cluster cluster level.
    Name string
    Template name.
    Describe string
    Template description.
    IsDefault bool
    Whether the system-supplied default template is used for outgoing references.
    PodMonitors List<MonitorTmpTkeTemplateTemplatePodMonitor>
    Effective when Level is a cluster, A list of PodMonitors rules in the template.
    RawJobs List<MonitorTmpTkeTemplateTemplateRawJob>
    Effective when Level is a cluster, A list of RawJobs rules in the template.
    RecordRules List<MonitorTmpTkeTemplateTemplateRecordRule>
    Effective when Level is instance, A list of aggregation rules in the template.
    ServiceMonitors List<MonitorTmpTkeTemplateTemplateServiceMonitor>
    Effective when Level is a cluster, A list of ServiceMonitor rules in the template.
    TemplateId string
    The ID of the template, which is used for the outgoing reference.
    UpdateTime string
    Last updated, for outgoing references.
    Version string
    Whether the system-supplied default template is used for outgoing references.
    Level string
    Template dimensions, the following types are supported instance instance level, cluster cluster level.
    Name string
    Template name.
    Describe string
    Template description.
    IsDefault bool
    Whether the system-supplied default template is used for outgoing references.
    PodMonitors []MonitorTmpTkeTemplateTemplatePodMonitor
    Effective when Level is a cluster, A list of PodMonitors rules in the template.
    RawJobs []MonitorTmpTkeTemplateTemplateRawJob
    Effective when Level is a cluster, A list of RawJobs rules in the template.
    RecordRules []MonitorTmpTkeTemplateTemplateRecordRule
    Effective when Level is instance, A list of aggregation rules in the template.
    ServiceMonitors []MonitorTmpTkeTemplateTemplateServiceMonitor
    Effective when Level is a cluster, A list of ServiceMonitor rules in the template.
    TemplateId string
    The ID of the template, which is used for the outgoing reference.
    UpdateTime string
    Last updated, for outgoing references.
    Version string
    Whether the system-supplied default template is used for outgoing references.
    level String
    Template dimensions, the following types are supported instance instance level, cluster cluster level.
    name String
    Template name.
    describe String
    Template description.
    isDefault Boolean
    Whether the system-supplied default template is used for outgoing references.
    podMonitors List<MonitorTmpTkeTemplateTemplatePodMonitor>
    Effective when Level is a cluster, A list of PodMonitors rules in the template.
    rawJobs List<MonitorTmpTkeTemplateTemplateRawJob>
    Effective when Level is a cluster, A list of RawJobs rules in the template.
    recordRules List<MonitorTmpTkeTemplateTemplateRecordRule>
    Effective when Level is instance, A list of aggregation rules in the template.
    serviceMonitors List<MonitorTmpTkeTemplateTemplateServiceMonitor>
    Effective when Level is a cluster, A list of ServiceMonitor rules in the template.
    templateId String
    The ID of the template, which is used for the outgoing reference.
    updateTime String
    Last updated, for outgoing references.
    version String
    Whether the system-supplied default template is used for outgoing references.
    level string
    Template dimensions, the following types are supported instance instance level, cluster cluster level.
    name string
    Template name.
    describe string
    Template description.
    isDefault boolean
    Whether the system-supplied default template is used for outgoing references.
    podMonitors MonitorTmpTkeTemplateTemplatePodMonitor[]
    Effective when Level is a cluster, A list of PodMonitors rules in the template.
    rawJobs MonitorTmpTkeTemplateTemplateRawJob[]
    Effective when Level is a cluster, A list of RawJobs rules in the template.
    recordRules MonitorTmpTkeTemplateTemplateRecordRule[]
    Effective when Level is instance, A list of aggregation rules in the template.
    serviceMonitors MonitorTmpTkeTemplateTemplateServiceMonitor[]
    Effective when Level is a cluster, A list of ServiceMonitor rules in the template.
    templateId string
    The ID of the template, which is used for the outgoing reference.
    updateTime string
    Last updated, for outgoing references.
    version string
    Whether the system-supplied default template is used for outgoing references.
    level str
    Template dimensions, the following types are supported instance instance level, cluster cluster level.
    name str
    Template name.
    describe str
    Template description.
    is_default bool
    Whether the system-supplied default template is used for outgoing references.
    pod_monitors Sequence[MonitorTmpTkeTemplateTemplatePodMonitor]
    Effective when Level is a cluster, A list of PodMonitors rules in the template.
    raw_jobs Sequence[MonitorTmpTkeTemplateTemplateRawJob]
    Effective when Level is a cluster, A list of RawJobs rules in the template.
    record_rules Sequence[MonitorTmpTkeTemplateTemplateRecordRule]
    Effective when Level is instance, A list of aggregation rules in the template.
    service_monitors Sequence[MonitorTmpTkeTemplateTemplateServiceMonitor]
    Effective when Level is a cluster, A list of ServiceMonitor rules in the template.
    template_id str
    The ID of the template, which is used for the outgoing reference.
    update_time str
    Last updated, for outgoing references.
    version str
    Whether the system-supplied default template is used for outgoing references.
    level String
    Template dimensions, the following types are supported instance instance level, cluster cluster level.
    name String
    Template name.
    describe String
    Template description.
    isDefault Boolean
    Whether the system-supplied default template is used for outgoing references.
    podMonitors List<Property Map>
    Effective when Level is a cluster, A list of PodMonitors rules in the template.
    rawJobs List<Property Map>
    Effective when Level is a cluster, A list of RawJobs rules in the template.
    recordRules List<Property Map>
    Effective when Level is instance, A list of aggregation rules in the template.
    serviceMonitors List<Property Map>
    Effective when Level is a cluster, A list of ServiceMonitor rules in the template.
    templateId String
    The ID of the template, which is used for the outgoing reference.
    updateTime String
    Last updated, for outgoing references.
    version String
    Whether the system-supplied default template is used for outgoing references.

    MonitorTmpTkeTemplateTemplatePodMonitor, MonitorTmpTkeTemplateTemplatePodMonitorArgs

    Config string
    Config.
    Name string
    Name.
    TemplateId string
    Used for the argument, if the configuration comes to the template, the template id.
    Config string
    Config.
    Name string
    Name.
    TemplateId string
    Used for the argument, if the configuration comes to the template, the template id.
    config String
    Config.
    name String
    Name.
    templateId String
    Used for the argument, if the configuration comes to the template, the template id.
    config string
    Config.
    name string
    Name.
    templateId string
    Used for the argument, if the configuration comes to the template, the template id.
    config str
    Config.
    name str
    Name.
    template_id str
    Used for the argument, if the configuration comes to the template, the template id.
    config String
    Config.
    name String
    Name.
    templateId String
    Used for the argument, if the configuration comes to the template, the template id.

    MonitorTmpTkeTemplateTemplateRawJob, MonitorTmpTkeTemplateTemplateRawJobArgs

    Config string
    Config.
    Name string
    Name.
    TemplateId string
    Used for the argument, if the configuration comes to the template, the template id.
    Config string
    Config.
    Name string
    Name.
    TemplateId string
    Used for the argument, if the configuration comes to the template, the template id.
    config String
    Config.
    name String
    Name.
    templateId String
    Used for the argument, if the configuration comes to the template, the template id.
    config string
    Config.
    name string
    Name.
    templateId string
    Used for the argument, if the configuration comes to the template, the template id.
    config str
    Config.
    name str
    Name.
    template_id str
    Used for the argument, if the configuration comes to the template, the template id.
    config String
    Config.
    name String
    Name.
    templateId String
    Used for the argument, if the configuration comes to the template, the template id.

    MonitorTmpTkeTemplateTemplateRecordRule, MonitorTmpTkeTemplateTemplateRecordRuleArgs

    Config string
    Config.
    Name string
    Name.
    TemplateId string
    Used for the argument, if the configuration comes to the template, the template id.
    Config string
    Config.
    Name string
    Name.
    TemplateId string
    Used for the argument, if the configuration comes to the template, the template id.
    config String
    Config.
    name String
    Name.
    templateId String
    Used for the argument, if the configuration comes to the template, the template id.
    config string
    Config.
    name string
    Name.
    templateId string
    Used for the argument, if the configuration comes to the template, the template id.
    config str
    Config.
    name str
    Name.
    template_id str
    Used for the argument, if the configuration comes to the template, the template id.
    config String
    Config.
    name String
    Name.
    templateId String
    Used for the argument, if the configuration comes to the template, the template id.

    MonitorTmpTkeTemplateTemplateServiceMonitor, MonitorTmpTkeTemplateTemplateServiceMonitorArgs

    Config string
    Config.
    Name string
    Name.
    TemplateId string
    Used for the argument, if the configuration comes to the template, the template id.
    Config string
    Config.
    Name string
    Name.
    TemplateId string
    Used for the argument, if the configuration comes to the template, the template id.
    config String
    Config.
    name String
    Name.
    templateId String
    Used for the argument, if the configuration comes to the template, the template id.
    config string
    Config.
    name string
    Name.
    templateId string
    Used for the argument, if the configuration comes to the template, the template id.
    config str
    Config.
    name str
    Name.
    template_id str
    Used for the argument, if the configuration comes to the template, the template id.
    config String
    Config.
    name String
    Name.
    templateId String
    Used for the argument, if the configuration comes to the template, the template id.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack