chronosphere.Dataset
Explore with Pulumi AI
Create Dataset Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Dataset(name: string, args: DatasetArgs, opts?: CustomResourceOptions);
@overload
def Dataset(resource_name: str,
args: DatasetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Dataset(resource_name: str,
opts: Optional[ResourceOptions] = None,
configuration: Optional[DatasetConfigurationArgs] = None,
name: Optional[str] = None,
description: Optional[str] = None,
slug: Optional[str] = None)
func NewDataset(ctx *Context, name string, args DatasetArgs, opts ...ResourceOption) (*Dataset, error)
public Dataset(string name, DatasetArgs args, CustomResourceOptions? opts = null)
public Dataset(String name, DatasetArgs args)
public Dataset(String name, DatasetArgs args, CustomResourceOptions options)
type: chronosphere:Dataset
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 DatasetArgs
- 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 DatasetArgs
- 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 DatasetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DatasetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DatasetArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var datasetResource = new Pulumi.Dataset("datasetResource", new()
{
Configuration = new Pulumi.Inputs.DatasetConfigurationArgs
{
Type = "string",
LogDataset = new Pulumi.Inputs.DatasetConfigurationLogDatasetArgs
{
MatchCriteria = new Pulumi.Inputs.DatasetConfigurationLogDatasetMatchCriteriaArgs
{
Query = "string",
},
},
TraceDataset = new Pulumi.Inputs.DatasetConfigurationTraceDatasetArgs
{
MatchCriteria = new Pulumi.Inputs.DatasetConfigurationTraceDatasetMatchCriteriaArgs
{
Spans = new[]
{
new Pulumi.Inputs.DatasetConfigurationTraceDatasetMatchCriteriaSpanArgs
{
Duration = new Pulumi.Inputs.DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationArgs
{
MaxSecs = 0,
MinSecs = 0,
},
Error = new Pulumi.Inputs.DatasetConfigurationTraceDatasetMatchCriteriaSpanErrorArgs
{
Value = false,
},
MatchType = "string",
Operation = new Pulumi.Inputs.DatasetConfigurationTraceDatasetMatchCriteriaSpanOperationArgs
{
InValues = new[]
{
"string",
},
Match = "string",
Value = "string",
},
ParentOperation = new Pulumi.Inputs.DatasetConfigurationTraceDatasetMatchCriteriaSpanParentOperationArgs
{
InValues = new[]
{
"string",
},
Match = "string",
Value = "string",
},
ParentService = new Pulumi.Inputs.DatasetConfigurationTraceDatasetMatchCriteriaSpanParentServiceArgs
{
InValues = new[]
{
"string",
},
Match = "string",
Value = "string",
},
Service = new Pulumi.Inputs.DatasetConfigurationTraceDatasetMatchCriteriaSpanServiceArgs
{
InValues = new[]
{
"string",
},
Match = "string",
Value = "string",
},
SpanCount = new Pulumi.Inputs.DatasetConfigurationTraceDatasetMatchCriteriaSpanSpanCountArgs
{
Max = 0,
Min = 0,
},
Tags = new[]
{
new Pulumi.Inputs.DatasetConfigurationTraceDatasetMatchCriteriaSpanTagArgs
{
Key = "string",
NumericValue = new Pulumi.Inputs.DatasetConfigurationTraceDatasetMatchCriteriaSpanTagNumericValueArgs
{
Comparison = "string",
Value = 0,
},
Value = new Pulumi.Inputs.DatasetConfigurationTraceDatasetMatchCriteriaSpanTagValueArgs
{
InValues = new[]
{
"string",
},
Match = "string",
Value = "string",
},
},
},
},
},
Trace = new Pulumi.Inputs.DatasetConfigurationTraceDatasetMatchCriteriaTraceArgs
{
Duration = new Pulumi.Inputs.DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationArgs
{
MaxSecs = 0,
MinSecs = 0,
},
Error = new Pulumi.Inputs.DatasetConfigurationTraceDatasetMatchCriteriaTraceErrorArgs
{
Value = false,
},
},
},
},
},
Name = "string",
Description = "string",
Slug = "string",
});
example, err := chronosphere.NewDataset(ctx, "datasetResource", &chronosphere.DatasetArgs{
Configuration: &chronosphere.DatasetConfigurationArgs{
Type: pulumi.String("string"),
LogDataset: &chronosphere.DatasetConfigurationLogDatasetArgs{
MatchCriteria: &chronosphere.DatasetConfigurationLogDatasetMatchCriteriaArgs{
Query: pulumi.String("string"),
},
},
TraceDataset: &chronosphere.DatasetConfigurationTraceDatasetArgs{
MatchCriteria: &chronosphere.DatasetConfigurationTraceDatasetMatchCriteriaArgs{
Spans: chronosphere.DatasetConfigurationTraceDatasetMatchCriteriaSpanArray{
&chronosphere.DatasetConfigurationTraceDatasetMatchCriteriaSpanArgs{
Duration: &chronosphere.DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationArgs{
MaxSecs: pulumi.Float64(0),
MinSecs: pulumi.Float64(0),
},
Error: &chronosphere.DatasetConfigurationTraceDatasetMatchCriteriaSpanErrorArgs{
Value: pulumi.Bool(false),
},
MatchType: pulumi.String("string"),
Operation: &chronosphere.DatasetConfigurationTraceDatasetMatchCriteriaSpanOperationArgs{
InValues: pulumi.StringArray{
pulumi.String("string"),
},
Match: pulumi.String("string"),
Value: pulumi.String("string"),
},
ParentOperation: &chronosphere.DatasetConfigurationTraceDatasetMatchCriteriaSpanParentOperationArgs{
InValues: pulumi.StringArray{
pulumi.String("string"),
},
Match: pulumi.String("string"),
Value: pulumi.String("string"),
},
ParentService: &chronosphere.DatasetConfigurationTraceDatasetMatchCriteriaSpanParentServiceArgs{
InValues: pulumi.StringArray{
pulumi.String("string"),
},
Match: pulumi.String("string"),
Value: pulumi.String("string"),
},
Service: &chronosphere.DatasetConfigurationTraceDatasetMatchCriteriaSpanServiceArgs{
InValues: pulumi.StringArray{
pulumi.String("string"),
},
Match: pulumi.String("string"),
Value: pulumi.String("string"),
},
SpanCount: &chronosphere.DatasetConfigurationTraceDatasetMatchCriteriaSpanSpanCountArgs{
Max: pulumi.Int(0),
Min: pulumi.Int(0),
},
Tags: chronosphere.DatasetConfigurationTraceDatasetMatchCriteriaSpanTagArray{
&chronosphere.DatasetConfigurationTraceDatasetMatchCriteriaSpanTagArgs{
Key: pulumi.String("string"),
NumericValue: &chronosphere.DatasetConfigurationTraceDatasetMatchCriteriaSpanTagNumericValueArgs{
Comparison: pulumi.String("string"),
Value: pulumi.Float64(0),
},
Value: &chronosphere.DatasetConfigurationTraceDatasetMatchCriteriaSpanTagValueArgs{
InValues: pulumi.StringArray{
pulumi.String("string"),
},
Match: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
},
},
Trace: &chronosphere.DatasetConfigurationTraceDatasetMatchCriteriaTraceArgs{
Duration: &chronosphere.DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationArgs{
MaxSecs: pulumi.Float64(0),
MinSecs: pulumi.Float64(0),
},
Error: &chronosphere.DatasetConfigurationTraceDatasetMatchCriteriaTraceErrorArgs{
Value: pulumi.Bool(false),
},
},
},
},
},
Name: pulumi.String("string"),
Description: pulumi.String("string"),
Slug: pulumi.String("string"),
})
var datasetResource = new Dataset("datasetResource", DatasetArgs.builder()
.configuration(DatasetConfigurationArgs.builder()
.type("string")
.logDataset(DatasetConfigurationLogDatasetArgs.builder()
.matchCriteria(DatasetConfigurationLogDatasetMatchCriteriaArgs.builder()
.query("string")
.build())
.build())
.traceDataset(DatasetConfigurationTraceDatasetArgs.builder()
.matchCriteria(DatasetConfigurationTraceDatasetMatchCriteriaArgs.builder()
.spans(DatasetConfigurationTraceDatasetMatchCriteriaSpanArgs.builder()
.duration(DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationArgs.builder()
.maxSecs(0)
.minSecs(0)
.build())
.error(DatasetConfigurationTraceDatasetMatchCriteriaSpanErrorArgs.builder()
.value(false)
.build())
.matchType("string")
.operation(DatasetConfigurationTraceDatasetMatchCriteriaSpanOperationArgs.builder()
.inValues("string")
.match("string")
.value("string")
.build())
.parentOperation(DatasetConfigurationTraceDatasetMatchCriteriaSpanParentOperationArgs.builder()
.inValues("string")
.match("string")
.value("string")
.build())
.parentService(DatasetConfigurationTraceDatasetMatchCriteriaSpanParentServiceArgs.builder()
.inValues("string")
.match("string")
.value("string")
.build())
.service(DatasetConfigurationTraceDatasetMatchCriteriaSpanServiceArgs.builder()
.inValues("string")
.match("string")
.value("string")
.build())
.spanCount(DatasetConfigurationTraceDatasetMatchCriteriaSpanSpanCountArgs.builder()
.max(0)
.min(0)
.build())
.tags(DatasetConfigurationTraceDatasetMatchCriteriaSpanTagArgs.builder()
.key("string")
.numericValue(DatasetConfigurationTraceDatasetMatchCriteriaSpanTagNumericValueArgs.builder()
.comparison("string")
.value(0)
.build())
.value(DatasetConfigurationTraceDatasetMatchCriteriaSpanTagValueArgs.builder()
.inValues("string")
.match("string")
.value("string")
.build())
.build())
.build())
.trace(DatasetConfigurationTraceDatasetMatchCriteriaTraceArgs.builder()
.duration(DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationArgs.builder()
.maxSecs(0)
.minSecs(0)
.build())
.error(DatasetConfigurationTraceDatasetMatchCriteriaTraceErrorArgs.builder()
.value(false)
.build())
.build())
.build())
.build())
.build())
.name("string")
.description("string")
.slug("string")
.build());
dataset_resource = chronosphere.Dataset("datasetResource",
configuration={
"type": "string",
"log_dataset": {
"match_criteria": {
"query": "string",
},
},
"trace_dataset": {
"match_criteria": {
"spans": [{
"duration": {
"max_secs": 0,
"min_secs": 0,
},
"error": {
"value": False,
},
"match_type": "string",
"operation": {
"in_values": ["string"],
"match": "string",
"value": "string",
},
"parent_operation": {
"in_values": ["string"],
"match": "string",
"value": "string",
},
"parent_service": {
"in_values": ["string"],
"match": "string",
"value": "string",
},
"service": {
"in_values": ["string"],
"match": "string",
"value": "string",
},
"span_count": {
"max": 0,
"min": 0,
},
"tags": [{
"key": "string",
"numeric_value": {
"comparison": "string",
"value": 0,
},
"value": {
"in_values": ["string"],
"match": "string",
"value": "string",
},
}],
}],
"trace": {
"duration": {
"max_secs": 0,
"min_secs": 0,
},
"error": {
"value": False,
},
},
},
},
},
name="string",
description="string",
slug="string")
const datasetResource = new chronosphere.Dataset("datasetResource", {
configuration: {
type: "string",
logDataset: {
matchCriteria: {
query: "string",
},
},
traceDataset: {
matchCriteria: {
spans: [{
duration: {
maxSecs: 0,
minSecs: 0,
},
error: {
value: false,
},
matchType: "string",
operation: {
inValues: ["string"],
match: "string",
value: "string",
},
parentOperation: {
inValues: ["string"],
match: "string",
value: "string",
},
parentService: {
inValues: ["string"],
match: "string",
value: "string",
},
service: {
inValues: ["string"],
match: "string",
value: "string",
},
spanCount: {
max: 0,
min: 0,
},
tags: [{
key: "string",
numericValue: {
comparison: "string",
value: 0,
},
value: {
inValues: ["string"],
match: "string",
value: "string",
},
}],
}],
trace: {
duration: {
maxSecs: 0,
minSecs: 0,
},
error: {
value: false,
},
},
},
},
},
name: "string",
description: "string",
slug: "string",
});
type: chronosphere:Dataset
properties:
configuration:
logDataset:
matchCriteria:
query: string
traceDataset:
matchCriteria:
spans:
- duration:
maxSecs: 0
minSecs: 0
error:
value: false
matchType: string
operation:
inValues:
- string
match: string
value: string
parentOperation:
inValues:
- string
match: string
value: string
parentService:
inValues:
- string
match: string
value: string
service:
inValues:
- string
match: string
value: string
spanCount:
max: 0
min: 0
tags:
- key: string
numericValue:
comparison: string
value: 0
value:
inValues:
- string
match: string
value: string
trace:
duration:
maxSecs: 0
minSecs: 0
error:
value: false
type: string
description: string
name: string
slug: string
Dataset 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 Dataset resource accepts the following input properties:
- Configuration
Chronosphere.
Pulumi. Inputs. Dataset Configuration - Name string
- Description string
- Slug string
- Configuration
Dataset
Configuration Args - Name string
- Description string
- Slug string
- configuration
Dataset
Configuration - name String
- description String
- slug String
- configuration
Dataset
Configuration - name string
- description string
- slug string
- configuration Property Map
- name String
- description String
- slug String
Outputs
All input properties are implicitly available as output properties. Additionally, the Dataset 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 Dataset Resource
Get an existing Dataset 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?: DatasetState, opts?: CustomResourceOptions): Dataset
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
configuration: Optional[DatasetConfigurationArgs] = None,
description: Optional[str] = None,
name: Optional[str] = None,
slug: Optional[str] = None) -> Dataset
func GetDataset(ctx *Context, name string, id IDInput, state *DatasetState, opts ...ResourceOption) (*Dataset, error)
public static Dataset Get(string name, Input<string> id, DatasetState? state, CustomResourceOptions? opts = null)
public static Dataset get(String name, Output<String> id, DatasetState 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.
- Configuration
Chronosphere.
Pulumi. Inputs. Dataset Configuration - Description string
- Name string
- Slug string
- Configuration
Dataset
Configuration Args - Description string
- Name string
- Slug string
- configuration
Dataset
Configuration - description String
- name String
- slug String
- configuration
Dataset
Configuration - description string
- name string
- slug string
- configuration Property Map
- description String
- name String
- slug String
Supporting Types
DatasetConfiguration, DatasetConfigurationArgs
DatasetConfigurationLogDataset, DatasetConfigurationLogDatasetArgs
DatasetConfigurationLogDatasetMatchCriteria, DatasetConfigurationLogDatasetMatchCriteriaArgs
- Query string
- Query string
- query String
- query string
- query str
- query String
DatasetConfigurationTraceDataset, DatasetConfigurationTraceDatasetArgs
DatasetConfigurationTraceDatasetMatchCriteria, DatasetConfigurationTraceDatasetMatchCriteriaArgs
DatasetConfigurationTraceDatasetMatchCriteriaSpan, DatasetConfigurationTraceDatasetMatchCriteriaSpanArgs
- Duration
Chronosphere.
Pulumi. Inputs. Dataset Configuration Trace Dataset Match Criteria Span Duration - Error
Chronosphere.
Pulumi. Inputs. Dataset Configuration Trace Dataset Match Criteria Span Error - Match
Type string - Operation
Chronosphere.
Pulumi. Inputs. Dataset Configuration Trace Dataset Match Criteria Span Operation - Parent
Operation Chronosphere.Pulumi. Inputs. Dataset Configuration Trace Dataset Match Criteria Span Parent Operation - Parent
Service Chronosphere.Pulumi. Inputs. Dataset Configuration Trace Dataset Match Criteria Span Parent Service - Service
Chronosphere.
Pulumi. Inputs. Dataset Configuration Trace Dataset Match Criteria Span Service - Span
Count Chronosphere.Pulumi. Inputs. Dataset Configuration Trace Dataset Match Criteria Span Span Count - List<Chronosphere.
Pulumi. Inputs. Dataset Configuration Trace Dataset Match Criteria Span Tag>
- Duration
Dataset
Configuration Trace Dataset Match Criteria Span Duration - Error
Dataset
Configuration Trace Dataset Match Criteria Span Error - Match
Type string - Operation
Dataset
Configuration Trace Dataset Match Criteria Span Operation - Parent
Operation DatasetConfiguration Trace Dataset Match Criteria Span Parent Operation - Parent
Service DatasetConfiguration Trace Dataset Match Criteria Span Parent Service - Service
Dataset
Configuration Trace Dataset Match Criteria Span Service - Span
Count DatasetConfiguration Trace Dataset Match Criteria Span Span Count - []Dataset
Configuration Trace Dataset Match Criteria Span Tag
- duration
Dataset
Configuration Trace Dataset Match Criteria Span Duration - error
Dataset
Configuration Trace Dataset Match Criteria Span Error - match
Type String - operation
Dataset
Configuration Trace Dataset Match Criteria Span Operation - parent
Operation DatasetConfiguration Trace Dataset Match Criteria Span Parent Operation - parent
Service DatasetConfiguration Trace Dataset Match Criteria Span Parent Service - service
Dataset
Configuration Trace Dataset Match Criteria Span Service - span
Count DatasetConfiguration Trace Dataset Match Criteria Span Span Count - List<Dataset
Configuration Trace Dataset Match Criteria Span Tag>
- duration
Dataset
Configuration Trace Dataset Match Criteria Span Duration - error
Dataset
Configuration Trace Dataset Match Criteria Span Error - match
Type string - operation
Dataset
Configuration Trace Dataset Match Criteria Span Operation - parent
Operation DatasetConfiguration Trace Dataset Match Criteria Span Parent Operation - parent
Service DatasetConfiguration Trace Dataset Match Criteria Span Parent Service - service
Dataset
Configuration Trace Dataset Match Criteria Span Service - span
Count DatasetConfiguration Trace Dataset Match Criteria Span Span Count - Dataset
Configuration Trace Dataset Match Criteria Span Tag[]
- duration
Dataset
Configuration Trace Dataset Match Criteria Span Duration - error
Dataset
Configuration Trace Dataset Match Criteria Span Error - match_
type str - operation
Dataset
Configuration Trace Dataset Match Criteria Span Operation - parent_
operation DatasetConfiguration Trace Dataset Match Criteria Span Parent Operation - parent_
service DatasetConfiguration Trace Dataset Match Criteria Span Parent Service - service
Dataset
Configuration Trace Dataset Match Criteria Span Service - span_
count DatasetConfiguration Trace Dataset Match Criteria Span Span Count - Sequence[Dataset
Configuration Trace Dataset Match Criteria Span Tag]
DatasetConfigurationTraceDatasetMatchCriteriaSpanDuration, DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationArgs
DatasetConfigurationTraceDatasetMatchCriteriaSpanError, DatasetConfigurationTraceDatasetMatchCriteriaSpanErrorArgs
- Value bool
- Value bool
- value Boolean
- value boolean
- value bool
- value Boolean
DatasetConfigurationTraceDatasetMatchCriteriaSpanOperation, DatasetConfigurationTraceDatasetMatchCriteriaSpanOperationArgs
DatasetConfigurationTraceDatasetMatchCriteriaSpanParentOperation, DatasetConfigurationTraceDatasetMatchCriteriaSpanParentOperationArgs
DatasetConfigurationTraceDatasetMatchCriteriaSpanParentService, DatasetConfigurationTraceDatasetMatchCriteriaSpanParentServiceArgs
DatasetConfigurationTraceDatasetMatchCriteriaSpanService, DatasetConfigurationTraceDatasetMatchCriteriaSpanServiceArgs
DatasetConfigurationTraceDatasetMatchCriteriaSpanSpanCount, DatasetConfigurationTraceDatasetMatchCriteriaSpanSpanCountArgs
DatasetConfigurationTraceDatasetMatchCriteriaSpanTag, DatasetConfigurationTraceDatasetMatchCriteriaSpanTagArgs
DatasetConfigurationTraceDatasetMatchCriteriaSpanTagNumericValue, DatasetConfigurationTraceDatasetMatchCriteriaSpanTagNumericValueArgs
- Comparison string
- Value double
- Comparison string
- Value float64
- comparison String
- value Double
- comparison string
- value number
- comparison str
- value float
- comparison String
- value Number
DatasetConfigurationTraceDatasetMatchCriteriaSpanTagValue, DatasetConfigurationTraceDatasetMatchCriteriaSpanTagValueArgs
DatasetConfigurationTraceDatasetMatchCriteriaTrace, DatasetConfigurationTraceDatasetMatchCriteriaTraceArgs
DatasetConfigurationTraceDatasetMatchCriteriaTraceDuration, DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationArgs
DatasetConfigurationTraceDatasetMatchCriteriaTraceError, DatasetConfigurationTraceDatasetMatchCriteriaTraceErrorArgs
- Value bool
- Value bool
- value Boolean
- value boolean
- value bool
- value Boolean
Package Details
- Repository
- chronosphere chronosphereio/pulumi-chronosphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
chronosphere
Terraform Provider.