1. Packages
  2. Harness
  3. API Docs
  4. platform
  5. MonitoredService
Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs

harness.platform.MonitoredService

Explore with Pulumi AI

harness logo
Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs

    Resource for creating a monitored service.

    Example Usage

    Coming soon!

    Coming soon!

    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.platform.MonitoredService;
    import com.pulumi.harness.platform.MonitoredServiceArgs;
    import com.pulumi.harness.platform.inputs.MonitoredServiceRequestArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    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 example = new MonitoredService("example", MonitoredServiceArgs.builder()        
                .accountId("account_id")
                .orgId("default")
                .projectId("default_project")
                .identifier("Terraform")
                .request(MonitoredServiceRequestArgs.builder()
                    .name("name")
                    .type("Application")
                    .description("description")
                    .serviceRef("service_ref")
                    .environmentRef("environment_ref")
                    .tags(                
                        "foo:bar",
                        "bar:foo")
                    .healthSources(MonitoredServiceRequestHealthSourceArgs.builder()
                        .name("name")
                        .identifier("identifier")
                        .type("ElasticSearch")
                        .spec(serializeJson(
                            jsonObject(
                                jsonProperty("connectorRef", "connectorRef"),
                                jsonProperty("feature", "feature"),
                                jsonProperty("queries", jsonArray(
                                    jsonObject(
                                        jsonProperty("name", "name"),
                                        jsonProperty("query", "query"),
                                        jsonProperty("index", "index"),
                                        jsonProperty("serviceInstanceIdentifier", "serviceInstanceIdentifier"),
                                        jsonProperty("timeStampIdentifier", "timeStampIdentifier"),
                                        jsonProperty("timeStampFormat", "timeStampFormat"),
                                        jsonProperty("messageIdentifier", "messageIdentifier")
                                    ), 
                                    jsonObject(
                                        jsonProperty("name", "name2"),
                                        jsonProperty("query", "query2"),
                                        jsonProperty("index", "index2"),
                                        jsonProperty("serviceInstanceIdentifier", "serviceInstanceIdentifier2"),
                                        jsonProperty("timeStampIdentifier", "timeStampIdentifier2"),
                                        jsonProperty("timeStampFormat", "timeStampFormat2"),
                                        jsonProperty("messageIdentifier", "messageIdentifier2")
                                    )
                                ))
                            )))
                        .build())
                    .changeSources(MonitoredServiceRequestChangeSourceArgs.builder()
                        .name("csName1")
                        .identifier("harness_cd_next_gen")
                        .type("HarnessCDNextGen")
                        .enabled(true)
                        .spec(serializeJson(
                            jsonObject(
    
                            )))
                        .category("Deployment")
                        .build())
                    .notificationRuleRefs(                
                        MonitoredServiceRequestNotificationRuleRefArgs.builder()
                            .notificationRuleRef("notification_rule_ref")
                            .enabled(true)
                            .build(),
                        MonitoredServiceRequestNotificationRuleRefArgs.builder()
                            .notificationRuleRef("notification_rule_ref1")
                            .enabled(false)
                            .build())
                    .enabled(true)
                    .build())
                .build());
    
        }
    }
    

    Coming soon!

    Coming soon!

    resources:
      example:
        type: harness:platform:MonitoredService
        properties:
          accountId: account_id
          orgId: default
          projectId: default_project
          identifier: Terraform
          request:
            name: name
            type: Application
            description: description
            serviceRef: service_ref
            environmentRef: environment_ref
            tags:
              - foo:bar
              - bar:foo
            healthSources:
              - name: name
                identifier: identifier
                type: ElasticSearch
                spec:
                  fn::toJSON:
                    connectorRef: connectorRef
                    feature: feature
                    queries:
                      - name: name
                        query: query
                        index: index
                        serviceInstanceIdentifier: serviceInstanceIdentifier
                        timeStampIdentifier: timeStampIdentifier
                        timeStampFormat: timeStampFormat
                        messageIdentifier: messageIdentifier
                      - name: name2
                        query: query2
                        index: index2
                        serviceInstanceIdentifier: serviceInstanceIdentifier2
                        timeStampIdentifier: timeStampIdentifier2
                        timeStampFormat: timeStampFormat2
                        messageIdentifier: messageIdentifier2
            changeSources:
              - name: csName1
                identifier: harness_cd_next_gen
                type: HarnessCDNextGen
                enabled: true
                spec:
                  fn::toJSON: {}
                category: Deployment
            notificationRuleRefs:
              - notificationRuleRef: notification_rule_ref
                enabled: true
              - notificationRuleRef: notification_rule_ref1
                enabled: false
            enabled: true
    

    Create MonitoredService Resource

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

    Constructor syntax

    new MonitoredService(name: string, args: MonitoredServiceArgs, opts?: CustomResourceOptions);
    @overload
    def MonitoredService(resource_name: str,
                         args: MonitoredServiceArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def MonitoredService(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         identifier: Optional[str] = None,
                         org_id: Optional[str] = None,
                         project_id: Optional[str] = None,
                         request: Optional[MonitoredServiceRequestArgs] = None)
    func NewMonitoredService(ctx *Context, name string, args MonitoredServiceArgs, opts ...ResourceOption) (*MonitoredService, error)
    public MonitoredService(string name, MonitoredServiceArgs args, CustomResourceOptions? opts = null)
    public MonitoredService(String name, MonitoredServiceArgs args)
    public MonitoredService(String name, MonitoredServiceArgs args, CustomResourceOptions options)
    
    type: harness:platform:MonitoredService
    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 MonitoredServiceArgs
    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 MonitoredServiceArgs
    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 MonitoredServiceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MonitoredServiceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MonitoredServiceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var monitoredServiceResource = new Harness.Platform.MonitoredService("monitoredServiceResource", new()
    {
        Identifier = "string",
        OrgId = "string",
        ProjectId = "string",
        Request = new Harness.Platform.Inputs.MonitoredServiceRequestArgs
        {
            EnvironmentRef = "string",
            Type = "string",
            ServiceRef = "string",
            Name = "string",
            Enabled = false,
            EnvironmentRefLists = new[]
            {
                "string",
            },
            HealthSources = new[]
            {
                new Harness.Platform.Inputs.MonitoredServiceRequestHealthSourceArgs
                {
                    Identifier = "string",
                    Name = "string",
                    Spec = "string",
                    Type = "string",
                },
            },
            ChangeSources = new[]
            {
                new Harness.Platform.Inputs.MonitoredServiceRequestChangeSourceArgs
                {
                    Category = "string",
                    Identifier = "string",
                    Name = "string",
                    Type = "string",
                    Enabled = false,
                    Spec = "string",
                },
            },
            NotificationRuleRefs = new[]
            {
                new Harness.Platform.Inputs.MonitoredServiceRequestNotificationRuleRefArgs
                {
                    Enabled = false,
                    NotificationRuleRef = "string",
                },
            },
            Description = "string",
            Tags = new[]
            {
                "string",
            },
            TemplateRef = "string",
            Dependencies = new[]
            {
                new Harness.Platform.Inputs.MonitoredServiceRequestDependencyArgs
                {
                    MonitoredServiceIdentifier = "string",
                    Type = "string",
                    DependencyMetadata = "string",
                },
            },
            VersionLabel = "string",
        },
    });
    
    example, err := platform.NewMonitoredService(ctx, "monitoredServiceResource", &platform.MonitoredServiceArgs{
    	Identifier: pulumi.String("string"),
    	OrgId:      pulumi.String("string"),
    	ProjectId:  pulumi.String("string"),
    	Request: &platform.MonitoredServiceRequestArgs{
    		EnvironmentRef: pulumi.String("string"),
    		Type:           pulumi.String("string"),
    		ServiceRef:     pulumi.String("string"),
    		Name:           pulumi.String("string"),
    		Enabled:        pulumi.Bool(false),
    		EnvironmentRefLists: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		HealthSources: platform.MonitoredServiceRequestHealthSourceArray{
    			&platform.MonitoredServiceRequestHealthSourceArgs{
    				Identifier: pulumi.String("string"),
    				Name:       pulumi.String("string"),
    				Spec:       pulumi.String("string"),
    				Type:       pulumi.String("string"),
    			},
    		},
    		ChangeSources: platform.MonitoredServiceRequestChangeSourceArray{
    			&platform.MonitoredServiceRequestChangeSourceArgs{
    				Category:   pulumi.String("string"),
    				Identifier: pulumi.String("string"),
    				Name:       pulumi.String("string"),
    				Type:       pulumi.String("string"),
    				Enabled:    pulumi.Bool(false),
    				Spec:       pulumi.String("string"),
    			},
    		},
    		NotificationRuleRefs: platform.MonitoredServiceRequestNotificationRuleRefArray{
    			&platform.MonitoredServiceRequestNotificationRuleRefArgs{
    				Enabled:             pulumi.Bool(false),
    				NotificationRuleRef: pulumi.String("string"),
    			},
    		},
    		Description: pulumi.String("string"),
    		Tags: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		TemplateRef: pulumi.String("string"),
    		Dependencies: platform.MonitoredServiceRequestDependencyArray{
    			&platform.MonitoredServiceRequestDependencyArgs{
    				MonitoredServiceIdentifier: pulumi.String("string"),
    				Type:                       pulumi.String("string"),
    				DependencyMetadata:         pulumi.String("string"),
    			},
    		},
    		VersionLabel: pulumi.String("string"),
    	},
    })
    
    var monitoredServiceResource = new MonitoredService("monitoredServiceResource", MonitoredServiceArgs.builder()        
        .identifier("string")
        .orgId("string")
        .projectId("string")
        .request(MonitoredServiceRequestArgs.builder()
            .environmentRef("string")
            .type("string")
            .serviceRef("string")
            .name("string")
            .enabled(false)
            .environmentRefLists("string")
            .healthSources(MonitoredServiceRequestHealthSourceArgs.builder()
                .identifier("string")
                .name("string")
                .spec("string")
                .type("string")
                .build())
            .changeSources(MonitoredServiceRequestChangeSourceArgs.builder()
                .category("string")
                .identifier("string")
                .name("string")
                .type("string")
                .enabled(false)
                .spec("string")
                .build())
            .notificationRuleRefs(MonitoredServiceRequestNotificationRuleRefArgs.builder()
                .enabled(false)
                .notificationRuleRef("string")
                .build())
            .description("string")
            .tags("string")
            .templateRef("string")
            .dependencies(MonitoredServiceRequestDependencyArgs.builder()
                .monitoredServiceIdentifier("string")
                .type("string")
                .dependencyMetadata("string")
                .build())
            .versionLabel("string")
            .build())
        .build());
    
    monitored_service_resource = harness.platform.MonitoredService("monitoredServiceResource",
        identifier="string",
        org_id="string",
        project_id="string",
        request=harness.platform.MonitoredServiceRequestArgs(
            environment_ref="string",
            type="string",
            service_ref="string",
            name="string",
            enabled=False,
            environment_ref_lists=["string"],
            health_sources=[harness.platform.MonitoredServiceRequestHealthSourceArgs(
                identifier="string",
                name="string",
                spec="string",
                type="string",
            )],
            change_sources=[harness.platform.MonitoredServiceRequestChangeSourceArgs(
                category="string",
                identifier="string",
                name="string",
                type="string",
                enabled=False,
                spec="string",
            )],
            notification_rule_refs=[harness.platform.MonitoredServiceRequestNotificationRuleRefArgs(
                enabled=False,
                notification_rule_ref="string",
            )],
            description="string",
            tags=["string"],
            template_ref="string",
            dependencies=[harness.platform.MonitoredServiceRequestDependencyArgs(
                monitored_service_identifier="string",
                type="string",
                dependency_metadata="string",
            )],
            version_label="string",
        ))
    
    const monitoredServiceResource = new harness.platform.MonitoredService("monitoredServiceResource", {
        identifier: "string",
        orgId: "string",
        projectId: "string",
        request: {
            environmentRef: "string",
            type: "string",
            serviceRef: "string",
            name: "string",
            enabled: false,
            environmentRefLists: ["string"],
            healthSources: [{
                identifier: "string",
                name: "string",
                spec: "string",
                type: "string",
            }],
            changeSources: [{
                category: "string",
                identifier: "string",
                name: "string",
                type: "string",
                enabled: false,
                spec: "string",
            }],
            notificationRuleRefs: [{
                enabled: false,
                notificationRuleRef: "string",
            }],
            description: "string",
            tags: ["string"],
            templateRef: "string",
            dependencies: [{
                monitoredServiceIdentifier: "string",
                type: "string",
                dependencyMetadata: "string",
            }],
            versionLabel: "string",
        },
    });
    
    type: harness:platform:MonitoredService
    properties:
        identifier: string
        orgId: string
        projectId: string
        request:
            changeSources:
                - category: string
                  enabled: false
                  identifier: string
                  name: string
                  spec: string
                  type: string
            dependencies:
                - dependencyMetadata: string
                  monitoredServiceIdentifier: string
                  type: string
            description: string
            enabled: false
            environmentRef: string
            environmentRefLists:
                - string
            healthSources:
                - identifier: string
                  name: string
                  spec: string
                  type: string
            name: string
            notificationRuleRefs:
                - enabled: false
                  notificationRuleRef: string
            serviceRef: string
            tags:
                - string
            templateRef: string
            type: string
            versionLabel: string
    

    MonitoredService Resource Properties

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

    Inputs

    The MonitoredService resource accepts the following input properties:

    Identifier string
    Identifier of the monitored service.
    OrgId string
    Identifier of the organization in which the monitored service is configured.
    ProjectId string
    Identifier of the project in which the monitored service is configured.
    Request Lbrlabs.PulumiPackage.Harness.Platform.Inputs.MonitoredServiceRequest
    Request for creating or updating a monitored service.
    Identifier string
    Identifier of the monitored service.
    OrgId string
    Identifier of the organization in which the monitored service is configured.
    ProjectId string
    Identifier of the project in which the monitored service is configured.
    Request MonitoredServiceRequestArgs
    Request for creating or updating a monitored service.
    identifier String
    Identifier of the monitored service.
    orgId String
    Identifier of the organization in which the monitored service is configured.
    projectId String
    Identifier of the project in which the monitored service is configured.
    request MonitoredServiceRequest
    Request for creating or updating a monitored service.
    identifier string
    Identifier of the monitored service.
    orgId string
    Identifier of the organization in which the monitored service is configured.
    projectId string
    Identifier of the project in which the monitored service is configured.
    request MonitoredServiceRequest
    Request for creating or updating a monitored service.
    identifier str
    Identifier of the monitored service.
    org_id str
    Identifier of the organization in which the monitored service is configured.
    project_id str
    Identifier of the project in which the monitored service is configured.
    request MonitoredServiceRequestArgs
    Request for creating or updating a monitored service.
    identifier String
    Identifier of the monitored service.
    orgId String
    Identifier of the organization in which the monitored service is configured.
    projectId String
    Identifier of the project in which the monitored service is configured.
    request Property Map
    Request for creating or updating a monitored service.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MonitoredService 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 MonitoredService Resource

    Get an existing MonitoredService 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?: MonitoredServiceState, opts?: CustomResourceOptions): MonitoredService
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            identifier: Optional[str] = None,
            org_id: Optional[str] = None,
            project_id: Optional[str] = None,
            request: Optional[MonitoredServiceRequestArgs] = None) -> MonitoredService
    func GetMonitoredService(ctx *Context, name string, id IDInput, state *MonitoredServiceState, opts ...ResourceOption) (*MonitoredService, error)
    public static MonitoredService Get(string name, Input<string> id, MonitoredServiceState? state, CustomResourceOptions? opts = null)
    public static MonitoredService get(String name, Output<String> id, MonitoredServiceState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    Identifier string
    Identifier of the monitored service.
    OrgId string
    Identifier of the organization in which the monitored service is configured.
    ProjectId string
    Identifier of the project in which the monitored service is configured.
    Request Lbrlabs.PulumiPackage.Harness.Platform.Inputs.MonitoredServiceRequest
    Request for creating or updating a monitored service.
    Identifier string
    Identifier of the monitored service.
    OrgId string
    Identifier of the organization in which the monitored service is configured.
    ProjectId string
    Identifier of the project in which the monitored service is configured.
    Request MonitoredServiceRequestArgs
    Request for creating or updating a monitored service.
    identifier String
    Identifier of the monitored service.
    orgId String
    Identifier of the organization in which the monitored service is configured.
    projectId String
    Identifier of the project in which the monitored service is configured.
    request MonitoredServiceRequest
    Request for creating or updating a monitored service.
    identifier string
    Identifier of the monitored service.
    orgId string
    Identifier of the organization in which the monitored service is configured.
    projectId string
    Identifier of the project in which the monitored service is configured.
    request MonitoredServiceRequest
    Request for creating or updating a monitored service.
    identifier str
    Identifier of the monitored service.
    org_id str
    Identifier of the organization in which the monitored service is configured.
    project_id str
    Identifier of the project in which the monitored service is configured.
    request MonitoredServiceRequestArgs
    Request for creating or updating a monitored service.
    identifier String
    Identifier of the monitored service.
    orgId String
    Identifier of the organization in which the monitored service is configured.
    projectId String
    Identifier of the project in which the monitored service is configured.
    request Property Map
    Request for creating or updating a monitored service.

    Supporting Types

    MonitoredServiceRequest, MonitoredServiceRequestArgs

    EnvironmentRef string
    Environment in which the service is deployed.
    Name string
    Name for the monitored service.
    ServiceRef string
    Service reference for the monitored service.
    Type string
    Type of the monitored service.
    ChangeSources List<Lbrlabs.PulumiPackage.Harness.Platform.Inputs.MonitoredServiceRequestChangeSource>
    Set of change sources for the monitored service.
    Dependencies List<Lbrlabs.PulumiPackage.Harness.Platform.Inputs.MonitoredServiceRequestDependency>
    Dependencies of the monitored service.
    Description string
    Description for the monitored service.
    Enabled bool
    Enable or disable the monitored service.
    EnvironmentRefLists List<string>
    Environment reference list for the monitored service.
    HealthSources List<Lbrlabs.PulumiPackage.Harness.Platform.Inputs.MonitoredServiceRequestHealthSource>
    Set of health sources for the monitored service.
    NotificationRuleRefs List<Lbrlabs.PulumiPackage.Harness.Platform.Inputs.MonitoredServiceRequestNotificationRuleRef>
    Notification rule references for the monitored service.
    Tags List<string>
    Tags for the monitored service. comma-separated key value string pairs.
    TemplateRef string
    Template reference for the monitored service.
    VersionLabel string
    Template version label for the monitored service.
    EnvironmentRef string
    Environment in which the service is deployed.
    Name string
    Name for the monitored service.
    ServiceRef string
    Service reference for the monitored service.
    Type string
    Type of the monitored service.
    ChangeSources []MonitoredServiceRequestChangeSource
    Set of change sources for the monitored service.
    Dependencies []MonitoredServiceRequestDependency
    Dependencies of the monitored service.
    Description string
    Description for the monitored service.
    Enabled bool
    Enable or disable the monitored service.
    EnvironmentRefLists []string
    Environment reference list for the monitored service.
    HealthSources []MonitoredServiceRequestHealthSource
    Set of health sources for the monitored service.
    NotificationRuleRefs []MonitoredServiceRequestNotificationRuleRef
    Notification rule references for the monitored service.
    Tags []string
    Tags for the monitored service. comma-separated key value string pairs.
    TemplateRef string
    Template reference for the monitored service.
    VersionLabel string
    Template version label for the monitored service.
    environmentRef String
    Environment in which the service is deployed.
    name String
    Name for the monitored service.
    serviceRef String
    Service reference for the monitored service.
    type String
    Type of the monitored service.
    changeSources List<MonitoredServiceRequestChangeSource>
    Set of change sources for the monitored service.
    dependencies List<MonitoredServiceRequestDependency>
    Dependencies of the monitored service.
    description String
    Description for the monitored service.
    enabled Boolean
    Enable or disable the monitored service.
    environmentRefLists List<String>
    Environment reference list for the monitored service.
    healthSources List<MonitoredServiceRequestHealthSource>
    Set of health sources for the monitored service.
    notificationRuleRefs List<MonitoredServiceRequestNotificationRuleRef>
    Notification rule references for the monitored service.
    tags List<String>
    Tags for the monitored service. comma-separated key value string pairs.
    templateRef String
    Template reference for the monitored service.
    versionLabel String
    Template version label for the monitored service.
    environmentRef string
    Environment in which the service is deployed.
    name string
    Name for the monitored service.
    serviceRef string
    Service reference for the monitored service.
    type string
    Type of the monitored service.
    changeSources MonitoredServiceRequestChangeSource[]
    Set of change sources for the monitored service.
    dependencies MonitoredServiceRequestDependency[]
    Dependencies of the monitored service.
    description string
    Description for the monitored service.
    enabled boolean
    Enable or disable the monitored service.
    environmentRefLists string[]
    Environment reference list for the monitored service.
    healthSources MonitoredServiceRequestHealthSource[]
    Set of health sources for the monitored service.
    notificationRuleRefs MonitoredServiceRequestNotificationRuleRef[]
    Notification rule references for the monitored service.
    tags string[]
    Tags for the monitored service. comma-separated key value string pairs.
    templateRef string
    Template reference for the monitored service.
    versionLabel string
    Template version label for the monitored service.
    environment_ref str
    Environment in which the service is deployed.
    name str
    Name for the monitored service.
    service_ref str
    Service reference for the monitored service.
    type str
    Type of the monitored service.
    change_sources Sequence[MonitoredServiceRequestChangeSource]
    Set of change sources for the monitored service.
    dependencies Sequence[MonitoredServiceRequestDependency]
    Dependencies of the monitored service.
    description str
    Description for the monitored service.
    enabled bool
    Enable or disable the monitored service.
    environment_ref_lists Sequence[str]
    Environment reference list for the monitored service.
    health_sources Sequence[MonitoredServiceRequestHealthSource]
    Set of health sources for the monitored service.
    notification_rule_refs Sequence[MonitoredServiceRequestNotificationRuleRef]
    Notification rule references for the monitored service.
    tags Sequence[str]
    Tags for the monitored service. comma-separated key value string pairs.
    template_ref str
    Template reference for the monitored service.
    version_label str
    Template version label for the monitored service.
    environmentRef String
    Environment in which the service is deployed.
    name String
    Name for the monitored service.
    serviceRef String
    Service reference for the monitored service.
    type String
    Type of the monitored service.
    changeSources List<Property Map>
    Set of change sources for the monitored service.
    dependencies List<Property Map>
    Dependencies of the monitored service.
    description String
    Description for the monitored service.
    enabled Boolean
    Enable or disable the monitored service.
    environmentRefLists List<String>
    Environment reference list for the monitored service.
    healthSources List<Property Map>
    Set of health sources for the monitored service.
    notificationRuleRefs List<Property Map>
    Notification rule references for the monitored service.
    tags List<String>
    Tags for the monitored service. comma-separated key value string pairs.
    templateRef String
    Template reference for the monitored service.
    versionLabel String
    Template version label for the monitored service.

    MonitoredServiceRequestChangeSource, MonitoredServiceRequestChangeSourceArgs

    Category string
    Identifier string
    Identifier of the monitored service.
    Name string
    Type string
    Enabled bool
    Spec string
    Category string
    Identifier string
    Identifier of the monitored service.
    Name string
    Type string
    Enabled bool
    Spec string
    category String
    identifier String
    Identifier of the monitored service.
    name String
    type String
    enabled Boolean
    spec String
    category string
    identifier string
    Identifier of the monitored service.
    name string
    type string
    enabled boolean
    spec string
    category str
    identifier str
    Identifier of the monitored service.
    name str
    type str
    enabled bool
    spec str
    category String
    identifier String
    Identifier of the monitored service.
    name String
    type String
    enabled Boolean
    spec String

    MonitoredServiceRequestDependency, MonitoredServiceRequestDependencyArgs

    MonitoredServiceRequestHealthSource, MonitoredServiceRequestHealthSourceArgs

    Identifier string
    Identifier of the monitored service.
    Name string
    Spec string
    Type string
    Identifier string
    Identifier of the monitored service.
    Name string
    Spec string
    Type string
    identifier String
    Identifier of the monitored service.
    name String
    spec String
    type String
    identifier string
    Identifier of the monitored service.
    name string
    spec string
    type string
    identifier str
    Identifier of the monitored service.
    name str
    spec str
    type str
    identifier String
    Identifier of the monitored service.
    name String
    spec String
    type String

    MonitoredServiceRequestNotificationRuleRef, MonitoredServiceRequestNotificationRuleRefArgs

    Import

    Import account level monitored_service

     $ pulumi import harness:platform/monitoredService:MonitoredService example <monitored_service_id>
    

    Import organization level monitored_service

     $ pulumi import harness:platform/monitoredService:MonitoredService example <org_id>/<monitored_service_id>
    

    Import project level monitored_service

     $ pulumi import harness:platform/monitoredService:MonitoredService example <org_id>/<project_id>/<monitored_service_id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    harness lbrlabs/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs