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

tencentcloud.getOceanusJobEvents

Explore with Pulumi AI

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",
});
Copy
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")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
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
Copy

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>
Copy
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]
Copy
func GetOceanusJobEvents(ctx *Context, args *GetOceanusJobEventsArgs, opts ...InvokeOption) (*GetOceanusJobEventsResult, error)
func GetOceanusJobEventsOutput(ctx *Context, args *GetOceanusJobEventsOutputArgs, opts ...InvokeOption) GetOceanusJobEventsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetOceanusJobEventsResult> getOceanusJobEvents(GetOceanusJobEventsArgs args, InvokeOptions options)
public static Output<GetOceanusJobEventsResult> getOceanusJobEvents(GetOceanusJobEventsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: tencentcloud:index/getOceanusJobEvents:getOceanusJobEvents
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

EndTimestamp This property is required. double
Filter condition:End Unix timestamp (seconds).
JobId This property is required. string
Job ID.
StartTimestamp This property is required. double
Filter condition:Start Unix timestamp (seconds).
WorkSpaceId This property is required. 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 This property is required. float64
Filter condition:End Unix timestamp (seconds).
JobId This property is required. string
Job ID.
StartTimestamp This property is required. float64
Filter condition:Start Unix timestamp (seconds).
WorkSpaceId This property is required. 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 This property is required. Double
Filter condition:End Unix timestamp (seconds).
jobId This property is required. String
Job ID.
startTimestamp This property is required. Double
Filter condition:Start Unix timestamp (seconds).
workSpaceId This property is required. 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 This property is required. number
Filter condition:End Unix timestamp (seconds).
jobId This property is required. string
Job ID.
startTimestamp This property is required. number
Filter condition:Start Unix timestamp (seconds).
workSpaceId This property is required. 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 This property is required. float
Filter condition:End Unix timestamp (seconds).
job_id This property is required. str
Job ID.
start_timestamp This property is required. float
Filter condition:Start Unix timestamp (seconds).
work_space_id This property is required. 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 This property is required. Number
Filter condition:End Unix timestamp (seconds).
jobId This property is required. String
Job ID.
startTimestamp This property is required. Number
Filter condition:Start Unix timestamp (seconds).
workSpaceId This property is required. 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 This property is required. string
Description text of the event type.
Message This property is required. string
Some optional explanations of the eventNote: This field may return null, indicating that no valid values can be obtained.
RunningOrderId This property is required. double
Running ID when the event occurredNote: This field may return null, indicating that no valid values can be obtained.
SolutionLink This property is required. string
Troubleshooting manual link for the abnormal eventNote: This field may return null, indicating that no valid values can be obtained.
Timestamp This property is required. double
Unix timestamp (seconds) when the event occurred.
Type This property is required. string
Internally defined event type.
Description This property is required. string
Description text of the event type.
Message This property is required. string
Some optional explanations of the eventNote: This field may return null, indicating that no valid values can be obtained.
RunningOrderId This property is required. float64
Running ID when the event occurredNote: This field may return null, indicating that no valid values can be obtained.
SolutionLink This property is required. string
Troubleshooting manual link for the abnormal eventNote: This field may return null, indicating that no valid values can be obtained.
Timestamp This property is required. float64
Unix timestamp (seconds) when the event occurred.
Type This property is required. string
Internally defined event type.
description This property is required. String
Description text of the event type.
message This property is required. String
Some optional explanations of the eventNote: This field may return null, indicating that no valid values can be obtained.
runningOrderId This property is required. Double
Running ID when the event occurredNote: This field may return null, indicating that no valid values can be obtained.
solutionLink This property is required. String
Troubleshooting manual link for the abnormal eventNote: This field may return null, indicating that no valid values can be obtained.
timestamp This property is required. Double
Unix timestamp (seconds) when the event occurred.
type This property is required. String
Internally defined event type.
description This property is required. string
Description text of the event type.
message This property is required. string
Some optional explanations of the eventNote: This field may return null, indicating that no valid values can be obtained.
runningOrderId This property is required. number
Running ID when the event occurredNote: This field may return null, indicating that no valid values can be obtained.
solutionLink This property is required. string
Troubleshooting manual link for the abnormal eventNote: This field may return null, indicating that no valid values can be obtained.
timestamp This property is required. number
Unix timestamp (seconds) when the event occurred.
type This property is required. string
Internally defined event type.
description This property is required. str
Description text of the event type.
message This property is required. str
Some optional explanations of the eventNote: This field may return null, indicating that no valid values can be obtained.
running_order_id This property is required. float
Running ID when the event occurredNote: This field may return null, indicating that no valid values can be obtained.
solution_link This property is required. str
Troubleshooting manual link for the abnormal eventNote: This field may return null, indicating that no valid values can be obtained.
timestamp This property is required. float
Unix timestamp (seconds) when the event occurred.
type This property is required. str
Internally defined event type.
description This property is required. String
Description text of the event type.
message This property is required. String
Some optional explanations of the eventNote: This field may return null, indicating that no valid values can be obtained.
runningOrderId This property is required. Number
Running ID when the event occurredNote: This field may return null, indicating that no valid values can be obtained.
solutionLink This property is required. String
Troubleshooting manual link for the abnormal eventNote: This field may return null, indicating that no valid values can be obtained.
timestamp This property is required. Number
Unix timestamp (seconds) when the event occurred.
type This property is required. 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.