dynatrace.DirectShares
Explore with Pulumi AI
Dynatrace SaaS only
To utilize this resource, please define the environment variables
DT_CLIENT_ID
,DT_CLIENT_SECRET
,DT_ACCOUNT_ID
with an OAuth client including the following permissions: Read direct-shares (document:direct-shares:read
), Write direct-shares (document:direct-shares:write
), and Delete direct-shares (document:direct-shares:delete
).
This resource is currently not covered by the export utility.
Dynatrace Documentation
- Dynatrace Documents - https://########.apps.dynatrace.com/platform/swagger-ui/index.html?urls.primaryName=Document%20Service
Resource Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as dynatrace from "@pulumiverse/dynatrace";
const thisDocument = new dynatrace.Document("thisDocument", {
type: "dashboard",
content: JSON.stringify({
version: 13,
variables: [],
tiles: {
"0": {
type: "markdown",
title: "",
content: "![Image of a Dashboard](https://dt-cdn.net/wp-content/uploads/2022/09/pic1____Dashboard-Preset___PNG.png)",
},
"1": {
type: "data",
title: "",
query: "timeseries avg(dt.host.cpu.user)",
queryConfig: {
additionalFilters: {},
version: "4.3.1",
datatype: "metrics",
metricKey: "dt.host.cpu.user",
aggregation: "avg",
by: [],
},
subType: "dql-builder-metrics",
visualization: "lineChart",
visualizationSettings: {
thresholds: [],
chartSettings: {
gapPolicy: "connect",
circleChartSettings: {
groupingThresholdType: "relative",
groupingThresholdValue: 0,
valueType: "relative",
},
categoryOverrides: {},
fieldMapping: {
timestamp: "timeframe",
leftAxisValues: ["avg(dt.host.cpu.user)"],
leftAxisDimensions: [],
fields: [],
values: [],
},
},
singleValue: {
showLabel: true,
label: "",
prefixIcon: "",
autoscale: true,
alignment: "center",
colorThresholdTarget: "value",
},
table: {
rowDensity: "condensed",
enableSparklines: false,
hiddenColumns: [],
lineWrapIds: [],
columnWidths: {},
},
},
},
"2": {
type: "data",
title: "",
query: "timeseries avg(dt.host.memory.used)",
queryConfig: {
additionalFilters: {},
version: "4.3.1",
datatype: "metrics",
metricKey: "dt.host.memory.used",
aggregation: "avg",
by: [],
},
subType: "dql-builder-metrics",
visualization: "lineChart",
visualizationSettings: {
thresholds: [],
chartSettings: {
gapPolicy: "connect",
circleChartSettings: {
groupingThresholdType: "relative",
groupingThresholdValue: 0,
valueType: "relative",
},
categoryOverrides: {},
fieldMapping: {
timestamp: "timeframe",
leftAxisValues: ["avg(dt.host.memory.used)"],
leftAxisDimensions: [],
fields: [],
values: [],
},
categoricalBarChartSettings: {},
},
singleValue: {
showLabel: true,
label: "",
prefixIcon: "",
autoscale: true,
alignment: "center",
colorThresholdTarget: "value",
},
table: {
rowDensity: "condensed",
enableSparklines: false,
hiddenColumns: [],
lineWrapIds: [],
columnWidths: {},
},
},
},
},
layouts: {
"0": {
x: 0,
y: 0,
w: 24,
h: 14,
},
"1": {
x: 0,
y: 14,
w: 9,
h: 6,
},
"2": {
x: 15,
y: 14,
w: 9,
h: 6,
},
},
}),
});
const thisDirectShares = new dynatrace.DirectShares("thisDirectShares", {
documentId: thisDocument.id,
access: "read-write",
recipients: {
recipients: [
{
id: "441664f0-23c9-40ef-b344-18c02c23d787",
type: "user",
},
{
id: "441664f0-23c9-40ef-b344-18c02c23d788",
type: "group",
},
],
},
});
import pulumi
import json
import pulumiverse_dynatrace as dynatrace
this_document = dynatrace.Document("thisDocument",
type="dashboard",
content=json.dumps({
"version": 13,
"variables": [],
"tiles": {
"0": {
"type": "markdown",
"title": "",
"content": "![Image of a Dashboard](https://dt-cdn.net/wp-content/uploads/2022/09/pic1____Dashboard-Preset___PNG.png)",
},
"1": {
"type": "data",
"title": "",
"query": "timeseries avg(dt.host.cpu.user)",
"queryConfig": {
"additionalFilters": {},
"version": "4.3.1",
"datatype": "metrics",
"metricKey": "dt.host.cpu.user",
"aggregation": "avg",
"by": [],
},
"subType": "dql-builder-metrics",
"visualization": "lineChart",
"visualizationSettings": {
"thresholds": [],
"chartSettings": {
"gapPolicy": "connect",
"circleChartSettings": {
"groupingThresholdType": "relative",
"groupingThresholdValue": 0,
"valueType": "relative",
},
"categoryOverrides": {},
"fieldMapping": {
"timestamp": "timeframe",
"leftAxisValues": ["avg(dt.host.cpu.user)"],
"leftAxisDimensions": [],
"fields": [],
"values": [],
},
},
"singleValue": {
"showLabel": True,
"label": "",
"prefixIcon": "",
"autoscale": True,
"alignment": "center",
"colorThresholdTarget": "value",
},
"table": {
"rowDensity": "condensed",
"enableSparklines": False,
"hiddenColumns": [],
"lineWrapIds": [],
"columnWidths": {},
},
},
},
"2": {
"type": "data",
"title": "",
"query": "timeseries avg(dt.host.memory.used)",
"queryConfig": {
"additionalFilters": {},
"version": "4.3.1",
"datatype": "metrics",
"metricKey": "dt.host.memory.used",
"aggregation": "avg",
"by": [],
},
"subType": "dql-builder-metrics",
"visualization": "lineChart",
"visualizationSettings": {
"thresholds": [],
"chartSettings": {
"gapPolicy": "connect",
"circleChartSettings": {
"groupingThresholdType": "relative",
"groupingThresholdValue": 0,
"valueType": "relative",
},
"categoryOverrides": {},
"fieldMapping": {
"timestamp": "timeframe",
"leftAxisValues": ["avg(dt.host.memory.used)"],
"leftAxisDimensions": [],
"fields": [],
"values": [],
},
"categoricalBarChartSettings": {},
},
"singleValue": {
"showLabel": True,
"label": "",
"prefixIcon": "",
"autoscale": True,
"alignment": "center",
"colorThresholdTarget": "value",
},
"table": {
"rowDensity": "condensed",
"enableSparklines": False,
"hiddenColumns": [],
"lineWrapIds": [],
"columnWidths": {},
},
},
},
},
"layouts": {
"0": {
"x": 0,
"y": 0,
"w": 24,
"h": 14,
},
"1": {
"x": 0,
"y": 14,
"w": 9,
"h": 6,
},
"2": {
"x": 15,
"y": 14,
"w": 9,
"h": 6,
},
},
}))
this_direct_shares = dynatrace.DirectShares("thisDirectShares",
document_id=this_document.id,
access="read-write",
recipients={
"recipients": [
{
"id": "441664f0-23c9-40ef-b344-18c02c23d787",
"type": "user",
},
{
"id": "441664f0-23c9-40ef-b344-18c02c23d788",
"type": "group",
},
],
})
package main
import (
"encoding/json"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-dynatrace/sdk/go/dynatrace"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
tmpJSON0, err := json.Marshal(map[string]interface{}{
"version": 13,
"variables": []interface{}{},
"tiles": map[string]interface{}{
"0": map[string]interface{}{
"type": "markdown",
"title": "",
"content": "![Image of a Dashboard](https://dt-cdn.net/wp-content/uploads/2022/09/pic1____Dashboard-Preset___PNG.png)",
},
"1": map[string]interface{}{
"type": "data",
"title": "",
"query": "timeseries avg(dt.host.cpu.user)",
"queryConfig": map[string]interface{}{
"additionalFilters": map[string]interface{}{},
"version": "4.3.1",
"datatype": "metrics",
"metricKey": "dt.host.cpu.user",
"aggregation": "avg",
"by": []interface{}{},
},
"subType": "dql-builder-metrics",
"visualization": "lineChart",
"visualizationSettings": map[string]interface{}{
"thresholds": []interface{}{},
"chartSettings": map[string]interface{}{
"gapPolicy": "connect",
"circleChartSettings": map[string]interface{}{
"groupingThresholdType": "relative",
"groupingThresholdValue": 0,
"valueType": "relative",
},
"categoryOverrides": map[string]interface{}{},
"fieldMapping": map[string]interface{}{
"timestamp": "timeframe",
"leftAxisValues": []string{
"avg(dt.host.cpu.user)",
},
"leftAxisDimensions": []interface{}{},
"fields": []interface{}{},
"values": []interface{}{},
},
},
"singleValue": map[string]interface{}{
"showLabel": true,
"label": "",
"prefixIcon": "",
"autoscale": true,
"alignment": "center",
"colorThresholdTarget": "value",
},
"table": map[string]interface{}{
"rowDensity": "condensed",
"enableSparklines": false,
"hiddenColumns": []interface{}{},
"lineWrapIds": []interface{}{},
"columnWidths": map[string]interface{}{},
},
},
},
"2": map[string]interface{}{
"type": "data",
"title": "",
"query": "timeseries avg(dt.host.memory.used)",
"queryConfig": map[string]interface{}{
"additionalFilters": map[string]interface{}{},
"version": "4.3.1",
"datatype": "metrics",
"metricKey": "dt.host.memory.used",
"aggregation": "avg",
"by": []interface{}{},
},
"subType": "dql-builder-metrics",
"visualization": "lineChart",
"visualizationSettings": map[string]interface{}{
"thresholds": []interface{}{},
"chartSettings": map[string]interface{}{
"gapPolicy": "connect",
"circleChartSettings": map[string]interface{}{
"groupingThresholdType": "relative",
"groupingThresholdValue": 0,
"valueType": "relative",
},
"categoryOverrides": map[string]interface{}{},
"fieldMapping": map[string]interface{}{
"timestamp": "timeframe",
"leftAxisValues": []string{
"avg(dt.host.memory.used)",
},
"leftAxisDimensions": []interface{}{},
"fields": []interface{}{},
"values": []interface{}{},
},
"categoricalBarChartSettings": map[string]interface{}{},
},
"singleValue": map[string]interface{}{
"showLabel": true,
"label": "",
"prefixIcon": "",
"autoscale": true,
"alignment": "center",
"colorThresholdTarget": "value",
},
"table": map[string]interface{}{
"rowDensity": "condensed",
"enableSparklines": false,
"hiddenColumns": []interface{}{},
"lineWrapIds": []interface{}{},
"columnWidths": map[string]interface{}{},
},
},
},
},
"layouts": map[string]interface{}{
"0": map[string]interface{}{
"x": 0,
"y": 0,
"w": 24,
"h": 14,
},
"1": map[string]interface{}{
"x": 0,
"y": 14,
"w": 9,
"h": 6,
},
"2": map[string]interface{}{
"x": 15,
"y": 14,
"w": 9,
"h": 6,
},
},
})
if err != nil {
return err
}
json0 := string(tmpJSON0)
thisDocument, err := dynatrace.NewDocument(ctx, "thisDocument", &dynatrace.DocumentArgs{
Type: pulumi.String("dashboard"),
Content: pulumi.String(json0),
})
if err != nil {
return err
}
_, err = dynatrace.NewDirectShares(ctx, "thisDirectShares", &dynatrace.DirectSharesArgs{
DocumentId: thisDocument.ID(),
Access: pulumi.String("read-write"),
Recipients: &dynatrace.DirectSharesRecipientsArgs{
Recipients: dynatrace.DirectSharesRecipientsRecipientArray{
&dynatrace.DirectSharesRecipientsRecipientArgs{
Id: pulumi.String("441664f0-23c9-40ef-b344-18c02c23d787"),
Type: pulumi.String("user"),
},
&dynatrace.DirectSharesRecipientsRecipientArgs{
Id: pulumi.String("441664f0-23c9-40ef-b344-18c02c23d788"),
Type: pulumi.String("group"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Pulumi;
using Dynatrace = Pulumiverse.Dynatrace;
return await Deployment.RunAsync(() =>
{
var thisDocument = new Dynatrace.Document("thisDocument", new()
{
Type = "dashboard",
Content = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["version"] = 13,
["variables"] = new[]
{
},
["tiles"] = new Dictionary<string, object?>
{
["0"] = new Dictionary<string, object?>
{
["type"] = "markdown",
["title"] = "",
["content"] = "![Image of a Dashboard](https://dt-cdn.net/wp-content/uploads/2022/09/pic1____Dashboard-Preset___PNG.png)",
},
["1"] = new Dictionary<string, object?>
{
["type"] = "data",
["title"] = "",
["query"] = "timeseries avg(dt.host.cpu.user)",
["queryConfig"] = new Dictionary<string, object?>
{
["additionalFilters"] = new Dictionary<string, object?>
{
},
["version"] = "4.3.1",
["datatype"] = "metrics",
["metricKey"] = "dt.host.cpu.user",
["aggregation"] = "avg",
["by"] = new[]
{
},
},
["subType"] = "dql-builder-metrics",
["visualization"] = "lineChart",
["visualizationSettings"] = new Dictionary<string, object?>
{
["thresholds"] = new[]
{
},
["chartSettings"] = new Dictionary<string, object?>
{
["gapPolicy"] = "connect",
["circleChartSettings"] = new Dictionary<string, object?>
{
["groupingThresholdType"] = "relative",
["groupingThresholdValue"] = 0,
["valueType"] = "relative",
},
["categoryOverrides"] = new Dictionary<string, object?>
{
},
["fieldMapping"] = new Dictionary<string, object?>
{
["timestamp"] = "timeframe",
["leftAxisValues"] = new[]
{
"avg(dt.host.cpu.user)",
},
["leftAxisDimensions"] = new[]
{
},
["fields"] = new[]
{
},
["values"] = new[]
{
},
},
},
["singleValue"] = new Dictionary<string, object?>
{
["showLabel"] = true,
["label"] = "",
["prefixIcon"] = "",
["autoscale"] = true,
["alignment"] = "center",
["colorThresholdTarget"] = "value",
},
["table"] = new Dictionary<string, object?>
{
["rowDensity"] = "condensed",
["enableSparklines"] = false,
["hiddenColumns"] = new[]
{
},
["lineWrapIds"] = new[]
{
},
["columnWidths"] = new Dictionary<string, object?>
{
},
},
},
},
["2"] = new Dictionary<string, object?>
{
["type"] = "data",
["title"] = "",
["query"] = "timeseries avg(dt.host.memory.used)",
["queryConfig"] = new Dictionary<string, object?>
{
["additionalFilters"] = new Dictionary<string, object?>
{
},
["version"] = "4.3.1",
["datatype"] = "metrics",
["metricKey"] = "dt.host.memory.used",
["aggregation"] = "avg",
["by"] = new[]
{
},
},
["subType"] = "dql-builder-metrics",
["visualization"] = "lineChart",
["visualizationSettings"] = new Dictionary<string, object?>
{
["thresholds"] = new[]
{
},
["chartSettings"] = new Dictionary<string, object?>
{
["gapPolicy"] = "connect",
["circleChartSettings"] = new Dictionary<string, object?>
{
["groupingThresholdType"] = "relative",
["groupingThresholdValue"] = 0,
["valueType"] = "relative",
},
["categoryOverrides"] = new Dictionary<string, object?>
{
},
["fieldMapping"] = new Dictionary<string, object?>
{
["timestamp"] = "timeframe",
["leftAxisValues"] = new[]
{
"avg(dt.host.memory.used)",
},
["leftAxisDimensions"] = new[]
{
},
["fields"] = new[]
{
},
["values"] = new[]
{
},
},
["categoricalBarChartSettings"] = new Dictionary<string, object?>
{
},
},
["singleValue"] = new Dictionary<string, object?>
{
["showLabel"] = true,
["label"] = "",
["prefixIcon"] = "",
["autoscale"] = true,
["alignment"] = "center",
["colorThresholdTarget"] = "value",
},
["table"] = new Dictionary<string, object?>
{
["rowDensity"] = "condensed",
["enableSparklines"] = false,
["hiddenColumns"] = new[]
{
},
["lineWrapIds"] = new[]
{
},
["columnWidths"] = new Dictionary<string, object?>
{
},
},
},
},
},
["layouts"] = new Dictionary<string, object?>
{
["0"] = new Dictionary<string, object?>
{
["x"] = 0,
["y"] = 0,
["w"] = 24,
["h"] = 14,
},
["1"] = new Dictionary<string, object?>
{
["x"] = 0,
["y"] = 14,
["w"] = 9,
["h"] = 6,
},
["2"] = new Dictionary<string, object?>
{
["x"] = 15,
["y"] = 14,
["w"] = 9,
["h"] = 6,
},
},
}),
});
var thisDirectShares = new Dynatrace.DirectShares("thisDirectShares", new()
{
DocumentId = thisDocument.Id,
Access = "read-write",
Recipients = new Dynatrace.Inputs.DirectSharesRecipientsArgs
{
Recipients = new[]
{
new Dynatrace.Inputs.DirectSharesRecipientsRecipientArgs
{
Id = "441664f0-23c9-40ef-b344-18c02c23d787",
Type = "user",
},
new Dynatrace.Inputs.DirectSharesRecipientsRecipientArgs
{
Id = "441664f0-23c9-40ef-b344-18c02c23d788",
Type = "group",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.dynatrace.Document;
import com.pulumi.dynatrace.DocumentArgs;
import com.pulumi.dynatrace.DirectShares;
import com.pulumi.dynatrace.DirectSharesArgs;
import com.pulumi.dynatrace.inputs.DirectSharesRecipientsArgs;
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 thisDocument = new Document("thisDocument", DocumentArgs.builder()
.type("dashboard")
.content(serializeJson(
jsonObject(
jsonProperty("version", 13),
jsonProperty("variables", jsonArray(
)),
jsonProperty("tiles", jsonObject(
jsonProperty("0", jsonObject(
jsonProperty("type", "markdown"),
jsonProperty("title", ""),
jsonProperty("content", "![Image of a Dashboard](https://dt-cdn.net/wp-content/uploads/2022/09/pic1____Dashboard-Preset___PNG.png)")
)),
jsonProperty("1", jsonObject(
jsonProperty("type", "data"),
jsonProperty("title", ""),
jsonProperty("query", "timeseries avg(dt.host.cpu.user)"),
jsonProperty("queryConfig", jsonObject(
jsonProperty("additionalFilters", jsonObject(
)),
jsonProperty("version", "4.3.1"),
jsonProperty("datatype", "metrics"),
jsonProperty("metricKey", "dt.host.cpu.user"),
jsonProperty("aggregation", "avg"),
jsonProperty("by", jsonArray(
))
)),
jsonProperty("subType", "dql-builder-metrics"),
jsonProperty("visualization", "lineChart"),
jsonProperty("visualizationSettings", jsonObject(
jsonProperty("thresholds", jsonArray(
)),
jsonProperty("chartSettings", jsonObject(
jsonProperty("gapPolicy", "connect"),
jsonProperty("circleChartSettings", jsonObject(
jsonProperty("groupingThresholdType", "relative"),
jsonProperty("groupingThresholdValue", 0),
jsonProperty("valueType", "relative")
)),
jsonProperty("categoryOverrides", jsonObject(
)),
jsonProperty("fieldMapping", jsonObject(
jsonProperty("timestamp", "timeframe"),
jsonProperty("leftAxisValues", jsonArray("avg(dt.host.cpu.user)")),
jsonProperty("leftAxisDimensions", jsonArray(
)),
jsonProperty("fields", jsonArray(
)),
jsonProperty("values", jsonArray(
))
))
)),
jsonProperty("singleValue", jsonObject(
jsonProperty("showLabel", true),
jsonProperty("label", ""),
jsonProperty("prefixIcon", ""),
jsonProperty("autoscale", true),
jsonProperty("alignment", "center"),
jsonProperty("colorThresholdTarget", "value")
)),
jsonProperty("table", jsonObject(
jsonProperty("rowDensity", "condensed"),
jsonProperty("enableSparklines", false),
jsonProperty("hiddenColumns", jsonArray(
)),
jsonProperty("lineWrapIds", jsonArray(
)),
jsonProperty("columnWidths", jsonObject(
))
))
))
)),
jsonProperty("2", jsonObject(
jsonProperty("type", "data"),
jsonProperty("title", ""),
jsonProperty("query", "timeseries avg(dt.host.memory.used)"),
jsonProperty("queryConfig", jsonObject(
jsonProperty("additionalFilters", jsonObject(
)),
jsonProperty("version", "4.3.1"),
jsonProperty("datatype", "metrics"),
jsonProperty("metricKey", "dt.host.memory.used"),
jsonProperty("aggregation", "avg"),
jsonProperty("by", jsonArray(
))
)),
jsonProperty("subType", "dql-builder-metrics"),
jsonProperty("visualization", "lineChart"),
jsonProperty("visualizationSettings", jsonObject(
jsonProperty("thresholds", jsonArray(
)),
jsonProperty("chartSettings", jsonObject(
jsonProperty("gapPolicy", "connect"),
jsonProperty("circleChartSettings", jsonObject(
jsonProperty("groupingThresholdType", "relative"),
jsonProperty("groupingThresholdValue", 0),
jsonProperty("valueType", "relative")
)),
jsonProperty("categoryOverrides", jsonObject(
)),
jsonProperty("fieldMapping", jsonObject(
jsonProperty("timestamp", "timeframe"),
jsonProperty("leftAxisValues", jsonArray("avg(dt.host.memory.used)")),
jsonProperty("leftAxisDimensions", jsonArray(
)),
jsonProperty("fields", jsonArray(
)),
jsonProperty("values", jsonArray(
))
)),
jsonProperty("categoricalBarChartSettings", jsonObject(
))
)),
jsonProperty("singleValue", jsonObject(
jsonProperty("showLabel", true),
jsonProperty("label", ""),
jsonProperty("prefixIcon", ""),
jsonProperty("autoscale", true),
jsonProperty("alignment", "center"),
jsonProperty("colorThresholdTarget", "value")
)),
jsonProperty("table", jsonObject(
jsonProperty("rowDensity", "condensed"),
jsonProperty("enableSparklines", false),
jsonProperty("hiddenColumns", jsonArray(
)),
jsonProperty("lineWrapIds", jsonArray(
)),
jsonProperty("columnWidths", jsonObject(
))
))
))
))
)),
jsonProperty("layouts", jsonObject(
jsonProperty("0", jsonObject(
jsonProperty("x", 0),
jsonProperty("y", 0),
jsonProperty("w", 24),
jsonProperty("h", 14)
)),
jsonProperty("1", jsonObject(
jsonProperty("x", 0),
jsonProperty("y", 14),
jsonProperty("w", 9),
jsonProperty("h", 6)
)),
jsonProperty("2", jsonObject(
jsonProperty("x", 15),
jsonProperty("y", 14),
jsonProperty("w", 9),
jsonProperty("h", 6)
))
))
)))
.build());
var thisDirectShares = new DirectShares("thisDirectShares", DirectSharesArgs.builder()
.documentId(thisDocument.id())
.access("read-write")
.recipients(DirectSharesRecipientsArgs.builder()
.recipients(
DirectSharesRecipientsRecipientArgs.builder()
.id("441664f0-23c9-40ef-b344-18c02c23d787")
.type("user")
.build(),
DirectSharesRecipientsRecipientArgs.builder()
.id("441664f0-23c9-40ef-b344-18c02c23d788")
.type("group")
.build())
.build())
.build());
}
}
resources:
thisDirectShares:
type: dynatrace:DirectShares
properties:
documentId: ${thisDocument.id}
access: read-write
recipients:
recipients:
- id: 441664f0-23c9-40ef-b344-18c02c23d787
type: user
- id: 441664f0-23c9-40ef-b344-18c02c23d788
type: group
thisDocument:
type: dynatrace:Document
properties:
type: dashboard
content:
fn::toJSON:
version: 13
variables: []
tiles:
'0':
type: markdown
title:
content: '![Image of a Dashboard](https://dt-cdn.net/wp-content/uploads/2022/09/pic1____Dashboard-Preset___PNG.png)'
'1':
type: data
title:
query: timeseries avg(dt.host.cpu.user)
queryConfig:
additionalFilters: {}
version: 4.3.1
datatype: metrics
metricKey: dt.host.cpu.user
aggregation: avg
by: []
subType: dql-builder-metrics
visualization: lineChart
visualizationSettings:
thresholds: []
chartSettings:
gapPolicy: connect
circleChartSettings:
groupingThresholdType: relative
groupingThresholdValue: 0
valueType: relative
categoryOverrides: {}
fieldMapping:
timestamp: timeframe
leftAxisValues:
- avg(dt.host.cpu.user)
leftAxisDimensions: []
fields: []
values: []
singleValue:
showLabel: true
label:
prefixIcon:
autoscale: true
alignment: center
colorThresholdTarget: value
table:
rowDensity: condensed
enableSparklines: false
hiddenColumns: []
lineWrapIds: []
columnWidths: {}
'2':
type: data
title:
query: timeseries avg(dt.host.memory.used)
queryConfig:
additionalFilters: {}
version: 4.3.1
datatype: metrics
metricKey: dt.host.memory.used
aggregation: avg
by: []
subType: dql-builder-metrics
visualization: lineChart
visualizationSettings:
thresholds: []
chartSettings:
gapPolicy: connect
circleChartSettings:
groupingThresholdType: relative
groupingThresholdValue: 0
valueType: relative
categoryOverrides: {}
fieldMapping:
timestamp: timeframe
leftAxisValues:
- avg(dt.host.memory.used)
leftAxisDimensions: []
fields: []
values: []
categoricalBarChartSettings: {}
singleValue:
showLabel: true
label:
prefixIcon:
autoscale: true
alignment: center
colorThresholdTarget: value
table:
rowDensity: condensed
enableSparklines: false
hiddenColumns: []
lineWrapIds: []
columnWidths: {}
layouts:
'0':
x: 0
y: 0
w: 24
h: 14
'1':
x: 0
y: 14
w: 9
h: 6
'2':
x: 15
y: 14
w: 9
h: 6
Create DirectShares Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DirectShares(name: string, args: DirectSharesArgs, opts?: CustomResourceOptions);
@overload
def DirectShares(resource_name: str,
args: DirectSharesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DirectShares(resource_name: str,
opts: Optional[ResourceOptions] = None,
document_id: Optional[str] = None,
recipients: Optional[DirectSharesRecipientsArgs] = None,
access: Optional[str] = None)
func NewDirectShares(ctx *Context, name string, args DirectSharesArgs, opts ...ResourceOption) (*DirectShares, error)
public DirectShares(string name, DirectSharesArgs args, CustomResourceOptions? opts = null)
public DirectShares(String name, DirectSharesArgs args)
public DirectShares(String name, DirectSharesArgs args, CustomResourceOptions options)
type: dynatrace:DirectShares
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 DirectSharesArgs
- 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 DirectSharesArgs
- 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 DirectSharesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DirectSharesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DirectSharesArgs
- 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 directSharesResource = new Dynatrace.DirectShares("directSharesResource", new()
{
DocumentId = "string",
Recipients = new Dynatrace.Inputs.DirectSharesRecipientsArgs
{
Recipients = new[]
{
new Dynatrace.Inputs.DirectSharesRecipientsRecipientArgs
{
Id = "string",
Type = "string",
},
},
},
Access = "string",
});
example, err := dynatrace.NewDirectShares(ctx, "directSharesResource", &dynatrace.DirectSharesArgs{
DocumentId: pulumi.String("string"),
Recipients: &dynatrace.DirectSharesRecipientsArgs{
Recipients: dynatrace.DirectSharesRecipientsRecipientArray{
&dynatrace.DirectSharesRecipientsRecipientArgs{
Id: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
},
Access: pulumi.String("string"),
})
var directSharesResource = new DirectShares("directSharesResource", DirectSharesArgs.builder()
.documentId("string")
.recipients(DirectSharesRecipientsArgs.builder()
.recipients(DirectSharesRecipientsRecipientArgs.builder()
.id("string")
.type("string")
.build())
.build())
.access("string")
.build());
direct_shares_resource = dynatrace.DirectShares("directSharesResource",
document_id="string",
recipients={
"recipients": [{
"id": "string",
"type": "string",
}],
},
access="string")
const directSharesResource = new dynatrace.DirectShares("directSharesResource", {
documentId: "string",
recipients: {
recipients: [{
id: "string",
type: "string",
}],
},
access: "string",
});
type: dynatrace:DirectShares
properties:
access: string
documentId: string
recipients:
recipients:
- id: string
type: string
DirectShares 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 DirectShares resource accepts the following input properties:
- Document
Id string - Document ID
- Recipients
Pulumiverse.
Dynatrace. Inputs. Direct Shares Recipients - Recipients of the direct share
- Access string
- Access grants. Possible values are
read
andread-write
- Document
Id string - Document ID
- Recipients
Direct
Shares Recipients Args - Recipients of the direct share
- Access string
- Access grants. Possible values are
read
andread-write
- document
Id String - Document ID
- recipients
Direct
Shares Recipients - Recipients of the direct share
- access String
- Access grants. Possible values are
read
andread-write
- document
Id string - Document ID
- recipients
Direct
Shares Recipients - Recipients of the direct share
- access string
- Access grants. Possible values are
read
andread-write
- document_
id str - Document ID
- recipients
Direct
Shares Recipients Args - Recipients of the direct share
- access str
- Access grants. Possible values are
read
andread-write
- document
Id String - Document ID
- recipients Property Map
- Recipients of the direct share
- access String
- Access grants. Possible values are
read
andread-write
Outputs
All input properties are implicitly available as output properties. Additionally, the DirectShares 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 DirectShares Resource
Get an existing DirectShares 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?: DirectSharesState, opts?: CustomResourceOptions): DirectShares
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access: Optional[str] = None,
document_id: Optional[str] = None,
recipients: Optional[DirectSharesRecipientsArgs] = None) -> DirectShares
func GetDirectShares(ctx *Context, name string, id IDInput, state *DirectSharesState, opts ...ResourceOption) (*DirectShares, error)
public static DirectShares Get(string name, Input<string> id, DirectSharesState? state, CustomResourceOptions? opts = null)
public static DirectShares get(String name, Output<String> id, DirectSharesState 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.
- Access string
- Access grants. Possible values are
read
andread-write
- Document
Id string - Document ID
- Recipients
Pulumiverse.
Dynatrace. Inputs. Direct Shares Recipients - Recipients of the direct share
- Access string
- Access grants. Possible values are
read
andread-write
- Document
Id string - Document ID
- Recipients
Direct
Shares Recipients Args - Recipients of the direct share
- access String
- Access grants. Possible values are
read
andread-write
- document
Id String - Document ID
- recipients
Direct
Shares Recipients - Recipients of the direct share
- access string
- Access grants. Possible values are
read
andread-write
- document
Id string - Document ID
- recipients
Direct
Shares Recipients - Recipients of the direct share
- access str
- Access grants. Possible values are
read
andread-write
- document_
id str - Document ID
- recipients
Direct
Shares Recipients Args - Recipients of the direct share
- access String
- Access grants. Possible values are
read
andread-write
- document
Id String - Document ID
- recipients Property Map
- Recipients of the direct share
Supporting Types
DirectSharesRecipients, DirectSharesRecipientsArgs
- Recipients
List<Pulumiverse.
Dynatrace. Inputs. Direct Shares Recipients Recipient> - Recipient of the direct share
- Recipients
[]Direct
Shares Recipients Recipient - Recipient of the direct share
- recipients
List<Direct
Shares Recipients Recipient> - Recipient of the direct share
- recipients
Direct
Shares Recipients Recipient[] - Recipient of the direct share
- recipients
Sequence[Direct
Shares Recipients Recipient] - Recipient of the direct share
- recipients List<Property Map>
- Recipient of the direct share
DirectSharesRecipientsRecipient, DirectSharesRecipientsRecipientArgs
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatrace
Terraform Provider.