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

tencentcloud.getOceanusJobEvents

Explore with Pulumi AI

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

    Use this data source to query detailed information of oceanus job_events

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = tencentcloud.getOceanusJobEvents({
        endTimestamp: 1631232466,
        jobId: "cql-6w8eab6f",
        startTimestamp: 1630932161,
        types: [
            "1",
            "2",
        ],
        workSpaceId: "space-6w8eab6f",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.get_oceanus_job_events(end_timestamp=1631232466,
        job_id="cql-6w8eab6f",
        start_timestamp=1630932161,
        types=[
            "1",
            "2",
        ],
        work_space_id="space-6w8eab6f")
    
    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.GetOceanusJobEvents(ctx, &tencentcloud.GetOceanusJobEventsArgs{
    			EndTimestamp:   1631232466,
    			JobId:          "cql-6w8eab6f",
    			StartTimestamp: 1630932161,
    			Types: []string{
    				"1",
    				"2",
    			},
    			WorkSpaceId: "space-6w8eab6f",
    		}, nil)
    		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 example = Tencentcloud.GetOceanusJobEvents.Invoke(new()
        {
            EndTimestamp = 1631232466,
            JobId = "cql-6w8eab6f",
            StartTimestamp = 1630932161,
            Types = new[]
            {
                "1",
                "2",
            },
            WorkSpaceId = "space-6w8eab6f",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetOceanusJobEventsArgs;
    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) {
            final var example = TencentcloudFunctions.getOceanusJobEvents(GetOceanusJobEventsArgs.builder()
                .endTimestamp(1631232466)
                .jobId("cql-6w8eab6f")
                .startTimestamp(1630932161)
                .types(            
                    "1",
                    "2")
                .workSpaceId("space-6w8eab6f")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: tencentcloud:getOceanusJobEvents
          arguments:
            endTimestamp: 1.631232466e+09
            jobId: cql-6w8eab6f
            startTimestamp: 1.630932161e+09
            types:
              - '1'
              - '2'
            workSpaceId: space-6w8eab6f
    

    Using getOceanusJobEvents

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getOceanusJobEvents(args: GetOceanusJobEventsArgs, opts?: InvokeOptions): Promise<GetOceanusJobEventsResult>
    function getOceanusJobEventsOutput(args: GetOceanusJobEventsOutputArgs, opts?: InvokeOptions): Output<GetOceanusJobEventsResult>
    def get_oceanus_job_events(end_timestamp: Optional[float] = None,
                               id: Optional[str] = None,
                               job_id: Optional[str] = None,
                               result_output_file: Optional[str] = None,
                               start_timestamp: Optional[float] = None,
                               types: Optional[Sequence[str]] = None,
                               work_space_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetOceanusJobEventsResult
    def get_oceanus_job_events_output(end_timestamp: Optional[pulumi.Input[float]] = None,
                               id: Optional[pulumi.Input[str]] = None,
                               job_id: Optional[pulumi.Input[str]] = None,
                               result_output_file: Optional[pulumi.Input[str]] = None,
                               start_timestamp: Optional[pulumi.Input[float]] = None,
                               types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                               work_space_id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetOceanusJobEventsResult]
    func GetOceanusJobEvents(ctx *Context, args *GetOceanusJobEventsArgs, opts ...InvokeOption) (*GetOceanusJobEventsResult, error)
    func GetOceanusJobEventsOutput(ctx *Context, args *GetOceanusJobEventsOutputArgs, opts ...InvokeOption) GetOceanusJobEventsResultOutput

    > Note: This function is named GetOceanusJobEvents in the Go SDK.

    public static class GetOceanusJobEvents 
    {
        public static Task<GetOceanusJobEventsResult> InvokeAsync(GetOceanusJobEventsArgs args, InvokeOptions? opts = null)
        public static Output<GetOceanusJobEventsResult> Invoke(GetOceanusJobEventsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetOceanusJobEventsResult> getOceanusJobEvents(GetOceanusJobEventsArgs args, InvokeOptions options)
    public static Output<GetOceanusJobEventsResult> getOceanusJobEvents(GetOceanusJobEventsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getOceanusJobEvents:getOceanusJobEvents
      arguments:
        # arguments dictionary

    The following arguments are supported:

    EndTimestamp double
    Filter condition:End Unix timestamp (seconds).
    JobId string
    Job ID.
    StartTimestamp double
    Filter condition:Start Unix timestamp (seconds).
    WorkSpaceId string
    Workspace SerialId.
    Id string
    ResultOutputFile string
    Used to save results.
    Types List<string>
    Event types. If not passed, data of all types will be returned.
    EndTimestamp float64
    Filter condition:End Unix timestamp (seconds).
    JobId string
    Job ID.
    StartTimestamp float64
    Filter condition:Start Unix timestamp (seconds).
    WorkSpaceId string
    Workspace SerialId.
    Id string
    ResultOutputFile string
    Used to save results.
    Types []string
    Event types. If not passed, data of all types will be returned.
    endTimestamp Double
    Filter condition:End Unix timestamp (seconds).
    jobId String
    Job ID.
    startTimestamp Double
    Filter condition:Start Unix timestamp (seconds).
    workSpaceId String
    Workspace SerialId.
    id String
    resultOutputFile String
    Used to save results.
    types List<String>
    Event types. If not passed, data of all types will be returned.
    endTimestamp number
    Filter condition:End Unix timestamp (seconds).
    jobId string
    Job ID.
    startTimestamp number
    Filter condition:Start Unix timestamp (seconds).
    workSpaceId string
    Workspace SerialId.
    id string
    resultOutputFile string
    Used to save results.
    types string[]
    Event types. If not passed, data of all types will be returned.
    end_timestamp float
    Filter condition:End Unix timestamp (seconds).
    job_id str
    Job ID.
    start_timestamp float
    Filter condition:Start Unix timestamp (seconds).
    work_space_id str
    Workspace SerialId.
    id str
    result_output_file str
    Used to save results.
    types Sequence[str]
    Event types. If not passed, data of all types will be returned.
    endTimestamp Number
    Filter condition:End Unix timestamp (seconds).
    jobId String
    Job ID.
    startTimestamp Number
    Filter condition:Start Unix timestamp (seconds).
    workSpaceId String
    Workspace SerialId.
    id String
    resultOutputFile String
    Used to save results.
    types List<String>
    Event types. If not passed, data of all types will be returned.

    getOceanusJobEvents Result

    The following output properties are available:

    EndTimestamp double
    Events List<GetOceanusJobEventsEvent>
    List of events within the specified range for this jobNote: This field may return null, indicating that no valid values can be obtained.
    Id string
    JobId string
    RunningOrderIds List<double>
    Array of running instance IDs.
    StartTimestamp double
    WorkSpaceId string
    ResultOutputFile string
    Types List<string>
    EndTimestamp float64
    Events []GetOceanusJobEventsEvent
    List of events within the specified range for this jobNote: This field may return null, indicating that no valid values can be obtained.
    Id string
    JobId string
    RunningOrderIds []float64
    Array of running instance IDs.
    StartTimestamp float64
    WorkSpaceId string
    ResultOutputFile string
    Types []string
    endTimestamp Double
    events List<GetOceanusJobEventsEvent>
    List of events within the specified range for this jobNote: This field may return null, indicating that no valid values can be obtained.
    id String
    jobId String
    runningOrderIds List<Double>
    Array of running instance IDs.
    startTimestamp Double
    workSpaceId String
    resultOutputFile String
    types List<String>
    endTimestamp number
    events GetOceanusJobEventsEvent[]
    List of events within the specified range for this jobNote: This field may return null, indicating that no valid values can be obtained.
    id string
    jobId string
    runningOrderIds number[]
    Array of running instance IDs.
    startTimestamp number
    workSpaceId string
    resultOutputFile string
    types string[]
    end_timestamp float
    events Sequence[GetOceanusJobEventsEvent]
    List of events within the specified range for this jobNote: This field may return null, indicating that no valid values can be obtained.
    id str
    job_id str
    running_order_ids Sequence[float]
    Array of running instance IDs.
    start_timestamp float
    work_space_id str
    result_output_file str
    types Sequence[str]
    endTimestamp Number
    events List<Property Map>
    List of events within the specified range for this jobNote: This field may return null, indicating that no valid values can be obtained.
    id String
    jobId String
    runningOrderIds List<Number>
    Array of running instance IDs.
    startTimestamp Number
    workSpaceId String
    resultOutputFile String
    types List<String>

    Supporting Types

    GetOceanusJobEventsEvent

    Description string
    Description text of the event type.
    Message string
    Some optional explanations of the eventNote: This field may return null, indicating that no valid values can be obtained.
    RunningOrderId double
    Running ID when the event occurredNote: This field may return null, indicating that no valid values can be obtained.
    SolutionLink string
    Troubleshooting manual link for the abnormal eventNote: This field may return null, indicating that no valid values can be obtained.
    Timestamp double
    Unix timestamp (seconds) when the event occurred.
    Type string
    Internally defined event type.
    Description string
    Description text of the event type.
    Message string
    Some optional explanations of the eventNote: This field may return null, indicating that no valid values can be obtained.
    RunningOrderId float64
    Running ID when the event occurredNote: This field may return null, indicating that no valid values can be obtained.
    SolutionLink string
    Troubleshooting manual link for the abnormal eventNote: This field may return null, indicating that no valid values can be obtained.
    Timestamp float64
    Unix timestamp (seconds) when the event occurred.
    Type string
    Internally defined event type.
    description String
    Description text of the event type.
    message String
    Some optional explanations of the eventNote: This field may return null, indicating that no valid values can be obtained.
    runningOrderId Double
    Running ID when the event occurredNote: This field may return null, indicating that no valid values can be obtained.
    solutionLink String
    Troubleshooting manual link for the abnormal eventNote: This field may return null, indicating that no valid values can be obtained.
    timestamp Double
    Unix timestamp (seconds) when the event occurred.
    type String
    Internally defined event type.
    description string
    Description text of the event type.
    message string
    Some optional explanations of the eventNote: This field may return null, indicating that no valid values can be obtained.
    runningOrderId number
    Running ID when the event occurredNote: This field may return null, indicating that no valid values can be obtained.
    solutionLink string
    Troubleshooting manual link for the abnormal eventNote: This field may return null, indicating that no valid values can be obtained.
    timestamp number
    Unix timestamp (seconds) when the event occurred.
    type string
    Internally defined event type.
    description str
    Description text of the event type.
    message str
    Some optional explanations of the eventNote: This field may return null, indicating that no valid values can be obtained.
    running_order_id float
    Running ID when the event occurredNote: This field may return null, indicating that no valid values can be obtained.
    solution_link str
    Troubleshooting manual link for the abnormal eventNote: This field may return null, indicating that no valid values can be obtained.
    timestamp float
    Unix timestamp (seconds) when the event occurred.
    type str
    Internally defined event type.
    description String
    Description text of the event type.
    message String
    Some optional explanations of the eventNote: This field may return null, indicating that no valid values can be obtained.
    runningOrderId Number
    Running ID when the event occurredNote: This field may return null, indicating that no valid values can be obtained.
    solutionLink String
    Troubleshooting manual link for the abnormal eventNote: This field may return null, indicating that no valid values can be obtained.
    timestamp Number
    Unix timestamp (seconds) when the event occurred.
    type String
    Internally defined event type.

    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