Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions plugins/OracleCloudInfrastructure/v1/configValidation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"steps": [
{
"displayName": "Authenticate",
"dataStream": {
"name": "tenancy"
},
"required": true,
"error": "Could not authenticate. Check the tenancy OCID, user OCID, fingerprint, private key and home region match the API key's configuration file preview, and that the API key is added to this user.",
"success": "Connected successfully."
},
{
"displayName": "Check inventory access",
"dataStream": {
"name": "compartments"
},
"required": false,
"error": "Authenticated, but compartments could not be listed. Check the user's group has the policy: Allow group <group> to inspect all-resources in tenancy.",
"success": "Compartments accessible."
},
{
"displayName": "Check cost access",
"dataStream": {
"name": "costSummary"
},
"required": false,
"error": "Authenticated, but cost data could not be read. Check the user's group has the policy: Allow group <group> to read usage-report in tenancy.",
"success": "Cost and usage data accessible."
}
]
}
114 changes: 114 additions & 0 deletions plugins/OracleCloudInfrastructure/v1/custom_types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
[
{
"name": "Region",
"sourceType": "Region",
"icon": "globe",
"singular": "Region",
"plural": "Regions"
},
{
"name": "Compartment",
"sourceType": "Compartment",
"icon": "folder-tree",
"singular": "Compartment",
"plural": "Compartments"
},
{
"name": "Compute Instance",
"sourceType": "Compute Instance",
"icon": "server",
"singular": "Compute instance",
"plural": "Compute instances"
},
{
"name": "Block Volume",
"sourceType": "Block Volume",
"icon": "hard-drive",
"singular": "Block volume",
"plural": "Block volumes"
},
{
"name": "Boot Volume",
"sourceType": "Boot Volume",
"icon": "hard-drive",
"singular": "Boot volume",
"plural": "Boot volumes"
},
{
"name": "VCN",
"sourceType": "VCN",
"icon": "network-wired",
"singular": "VCN",
"plural": "VCNs"
},
{
"name": "Subnet",
"sourceType": "Subnet",
"icon": "sitemap",
"singular": "Subnet",
"plural": "Subnets"
},
{
"name": "Load Balancer",
"sourceType": "Load Balancer",
"icon": "scale-balanced",
"singular": "Load balancer",
"plural": "Load balancers"
},
{
"name": "Network Load Balancer",
"sourceType": "Network Load Balancer",
"icon": "scale-balanced",
"singular": "Network load balancer",
"plural": "Network load balancers"
},
{
"name": "Autonomous Database",
"sourceType": "Autonomous Database",
"icon": "database",
"singular": "Autonomous database",
"plural": "Autonomous databases"
},
{
"name": "DB System",
"sourceType": "DB System",
"icon": "database",
"singular": "DB system",
"plural": "DB systems"
},
{
"name": "Bucket",
"sourceType": "Bucket",
"icon": "bucket",
"singular": "Bucket",
"plural": "Buckets"
},
{
"name": "Kubernetes Cluster",
"sourceType": "Kubernetes Cluster",
"icon": "dharmachakra",
"singular": "Kubernetes cluster",
"plural": "Kubernetes clusters"
},
{
"name": "File System",
"sourceType": "File System",
"icon": "folder-open",
"singular": "File system",
"plural": "File systems"
},
{
"name": "Functions Application",
"sourceType": "Functions Application",
"icon": "cubes",
"singular": "Functions application",
"plural": "Functions applications"
},
{
"name": "Function",
"sourceType": "Function",
"icon": "code",
"singular": "Function",
"plural": "Functions"
}
]
119 changes: 119 additions & 0 deletions plugins/OracleCloudInfrastructure/v1/dataStreams/alarmStatus.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
{
"name": "alarmStatus",
"displayName": "Alarm Status",
"description": "Current status of Monitoring alarms in the tenancy (including all compartments) for a region",
"tags": [
"Alerts"
],
"baseDataSourceName": "httpRequestScopedSingle",
"config": {
"httpMethod": "get",
"endpointPath": "telemetry/{{object.rawId}}/20180401/alarms/status",
"getArgs": [
{
"key": "compartmentId",
"value": "{{dataSource.tenancyOcid.trim()}}"
},
{
"key": "compartmentIdInSubtree",
"value": "true"
}
],
"paging": {
"mode": "token",
"pageSize": {
"realm": "queryArg",
"path": "limit",
"value": "1000"
},
"in": {
"realm": "header",
"path": "opc-next-page"
},
"out": {
"realm": "queryArg",
"path": "page"
}
},
"postRequestScript": "alarmStatus.js"
},
"matches": {
"sourceType": {
"type": "oneOf",
"values": [
"Region"
]
}
},
"metadata": [
{
"name": "id",
"displayName": "OCID",
"shape": "string",
"role": "id",
"visible": false
},
{
"name": "displayName",
"displayName": "Name",
"shape": "string",
"role": "label"
},
{
"name": "severity",
"displayName": "Severity",
"shape": "string"
},
{
"name": "status",
"displayName": "Status",
"shape": "string"
},
{
"name": "health",
"displayName": "Health",
"computed": true,
"valueExpression": "{{ $['status'] === 'FIRING' ? (['CRITICAL','ERROR'].includes($['severity']) ? 'error' : 'warning') : ($['status'] === 'OK' ? 'success' : 'unknown') }}",
"shape": [
"state",
{
"map": {
"success": [
"success"
],
"warning": [
"warning"
],
"error": [
"error"
],
"unknown": [
"unknown"
]
}
}
]
},
{
"name": "timestampTriggered",
"displayName": "Last triggered",
"shape": "date"
},
{
"name": "alarmSummary",
"displayName": "Summary",
"shape": "string"
},
{
"name": "suppression",
"displayName": "Suppression",
"shape": "json"
},
{
"name": "region",
"displayName": "Region",
"shape": "string"
}
],
"timeframes": false
}
Loading
Loading