Create Heartbeat Table
post
/services/{version}/connections/{connection}/tables/heartbeat
Create the heartbeat table for a database connection.
Request
Supported Media Types
- application/json
Path Parameters
-
connection: string
Minimum Length:
1
Maximum Length:61
Pattern:^[a-zA-Z][a-zA-Z0-9_#$]{1,29}([.][a-zA-Z][a-zA-Z0-9_#$]{1,29})?$
Connection name. For each alias in the credential store, a connection with the name 'domain.alias' exists.
-
version: string
Oracle GoldenGate Service API version.
Allowed Values:[ "v2" ]
Root Schema : Oracle GoldenGate Heartbeat Table
Type:
object
Title:
Show Source
Oracle GoldenGate Heartbeat Table
-
$schema(optional):
Allowed Values:
[ "ogg:tablesHeartbeat" ]
-
dbUniqueName(optional):
boolean
Default Value:
false
Whether current heartbeat table setup has db_unique_name column or not. -
frequency(optional):
integer
Minimum Value:
0
Maximum Value:7999
Default Value:60
Interval, in seconds, at which the heartbeat table is updated. -
partitioned(optional):
boolean
Default Value:
false
Whether the heartbeat history table is partitioned or not. -
purgeFrequency(optional):
integer
Minimum Value:
1
Maximum Value:199
Default Value:1
Interval, in days, at which the heartbeat history table is purged. -
retentionTime(optional):
integer
Minimum Value:
1
Maximum Value:2147483646
Default Value:30
Heartbeats older than this retention time (in days) will be deleted from the heartbeat table. -
targetOnly(optional):
boolean
Default Value:
false
Boolean value to enable or disable supplemental logging and the scheduler job for updating heartbeat seed and heartbeat tables. -
trackingExtractRestart(optional):
boolean
Default Value:
true
Whether current heartbeat table setup is tracking extract restart position or not. -
upgrade(optional):
boolean
Default Value:
false
Boolean value to detect when to upgrade the heartbeat tables.
Example Request (application/json)
{
"frequency":60
}
Response
Supported Media Types
- application/json
201 Response
Heartbeat table resources created successfully.
Root Schema : RESTful API Standard Response
Type:
object
Title:
RESTful API Standard Response
Standard Response for all Oracle GoldenGate RESTful API calls
Show Source
-
$schema(optional):
Allowed Values:
[ "api:standardResponse" ]
-
links:
array links
Minimum Number of Items:
0
Maximum Number of Items:16
Oracle GoldenGate links for the request -
messages:
array messages
Minimum Number of Items:
0
Maximum Number of Items:65535
Oracle GoldenGate messages issued during the request -
response(optional):
object response
Oracle GoldenGate document from the request
Nested Schema : links
Type:
array
Minimum Number of Items:
0
Maximum Number of Items:
16
Oracle GoldenGate links for the request
Show Source
Nested Schema : messages
Type:
array
Minimum Number of Items:
0
Maximum Number of Items:
65535
Oracle GoldenGate messages issued during the request
Show Source
Nested Schema : response
Type:
object
Oracle GoldenGate document from the request
Nested Schema : items
Type:
Show Source
object
-
$schema(optional):
Allowed Values:
[ "ogg:link" ]
-
description(optional):
string
Minimum Length:
1
Maximum Length:4095
A human-readable description that provides information and detail specific to this link. -
href:
string
Minimum Length:
2
Maximum Length:4095
Pattern:^[a-zA-Z][a-zA-Z0-9+-.]*:[^ \t]*$
An absolute URI for the link -
mediaType(optional):
string
Minimum Length:
6
Maximum Length:255
Pattern:^(text|application)/[a-zA-Z0-9!#$&.+-^_]+$
Media type - see RFC 4288 (https://tools.ietf.org/html/rfc4288) -
rel:
Allowed Values:
[ "alternate", "canonical", "current", "describedby", "describes", "enclosure", "parent", "related", "self", "first", "last", "next", "previous" ]
Relationship of href to the requested link
Nested Schema : items
Type:
Show Source
object
-
$schema(optional):
Allowed Values:
[ "ogg:message" ]
-
code:
string
Minimum Length:
9
Maximum Length:9
Pattern:^OGG[-][0-9]{5}$
The Oracle GoldenGate message code -
issued:
string
Minimum Length:
20
Maximum Length:32
Pattern:^[0-9]{4}[-](0[1-9]|1[0-2])[-](0[1-9]|[12][0-9]|3[01])[tT ]([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)([.][0-9]{1,6})?([zZ]|[+-][0-9][0-9]:[0-5][0-9])$
The date and time that the message was issued -
severity:
Allowed Values:
[ "INFO", "WARNING", "ERROR" ]
The severity of the message -
title:
string
Minimum Length:
1
Maximum Length:4095
A human-readable description that provides information and detail specific to this occurence of the information, warning or error. -
type:
string
Minimum Length:
2
Maximum Length:4095
Pattern:^[a-zA-Z][a-zA-Z0-9+-.]*:[^ \t]*$
An absolute URI [RFC3986] to a page that describes the info, warning or error type.
Example Response (application/json)
{
"$schema":"api:standardResponse",
"links":[
{
"href":"http://localhost:11001/services/v2/connections/OracleGoldenGate.oggadmin/tables/heartbeat",
"mediaType":"application/json",
"rel":"canonical"
},
{
"href":"http://localhost:11001/services/v2/connections/OracleGoldenGate.oggadmin/tables/heartbeat",
"mediaType":"application/json",
"rel":"self"
}
],
"messages":[
{
"$schema":"ogg:message",
"code":"OGG-14101",
"issued":"2021-07-13T16:36:59Z",
"severity":"INFO",
"title":"Successfully added heartbeat table.",
"type":"http://docs.oracle.com/goldengate/c2130/gg-winux/GMESG/oggus.htm#OGG-14101"
}
]
}